Camunda 8 webhook intermediate connector not passing workflow variable values to json response

Hi, I wish to pass the workflow variable value through Webhook JSON response expression. hardcoded values as string is visible but variable data is reflecting as null. The said variables are reflecting correct value in the workflow though. Is there a syntax issue? Please advise.

Response expression-
{
“body”:
{
“statusCode”: 200,
“inputData”:
{
“approverName”: approverName,
“invoiceId”:invoiceId,
“amount”: amount,
“approverEmail”:approverEmail
}
}
}

API tool response-
{
“statusCode”: 200,
“inputData”: {
“approverEmail”: null,
“invoiceId”: null,
“amount”: null,
“approverName”: null
}
}

Hello @sneha02,
A Webhook is a simplified way of correlating a message to a process instance.
Accessing and returning process variables is not the intention of it.
You can return only data from the request object, the correlation object or the document object that you have passed to the webhook.

Best, McAlm

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.