FlowmageDocs

Call a service method

BetaChanges data

Calls any OTYS web-service method directly.

Settings

SettingWhat it is
ConnectionRequiredThe OTYS connection the step signs in with.
ServiceRequiredtext
MethodRequiredAny method the service publishes — setStatus, retrieveDuplicateInfo, createToken, wrapRequest. This node declares effect write, so the run never blind-retries it.
ParametersEverything after the session token. An array is spread into the call's parameters; anything else is sent as a single one.
LanguageSets the language for THIS call only, through LanguageService.wrapRequest. The connection's own language is never changed.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `otys`)
servicetext
methodtext
paramsany JSON
languagetext

Output

FieldType
resultOTYS answerany
methodThe full method that was calledstring
Sample output, and the expression for each field
  • method"Otys.Services.CandidateService.getDetail"
  • resultnull

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "language": "",
    "method": "<method>",
    "service": "<service>"
  },
  "label": "Call a service method",
  "type": "otys.call",
  "version": 1
}