Variable in child workflow

:bangbang: Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.

In the child workflow, the input is taken from the parent workflow using $.trigger.input.myPassedVariable. This variable basically holds the ID of the identity.

When testing the workflow, the child workflow is executed. However, although the HTTPS request step returns success in the child workflow, it does not display any output.

The request URL is:

https://BaseURL/v2026/accounts

with the filter:

identityId eq "{{$.trigger.input.myPassedVariable}}"

→ Status: Success, but no output is displayed.

Step Output
{
“body”: ,
“headers”: {
“Content-Type”: [
“application/json;charset=utf-8”
]
},
“responseTime”: “0.038469 seconds”,
“statusCode”: 200
}

When the variable is hardcoded with an ID value, it returns the output correctly.

Not sure , why passing the variable in request URL is not displaying the output ?

Thanks,
Anirban

Hello @AllIT , I doubt that variable doesn’t hold nay value. Try to print the value of the variable, you can use “send email” action for the same

If the value is getting printed, then I would recommend trying the URL as https://BaseURL/v2026/accounts/?filters=identityId eq “{{$.trigger.input.myPassedVariable}}” rather than putting the filter in parameters

Also, make sure you are using the correct variable. Check once if it should be $.trigger.myPassedVariable

Hi @AllIT

  1. Can you check if in the api call you are passing filter or filters ? Because most the time we miss the “s” at the end.
  2. Can you also check the child workflow input, do you see the variable that you passed and its ID there in the input??