Problem with accessing response from callback #1345
Unanswered
Matys-check
asked this question in
Help
Replies: 1 comment
-
Hi, There is currently no helper allowing access to the response properties.
But a series of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I need to create a mock for an asynchronous service with callback. Everything would be fine if not for the problem I encountered namely
In the response that the mock generates I have the generation of correlationId, which I then need to send via callback in order to map the queries.
My response definition:
{ "expTime": "2020-05-05", "replayTo": "{{body 'element.0.replayTo' 'default'}}", "correlationId": "{{ faker 'string.uuid' }}" }
And my callback definition:
{ "name": "It's callback", "correlationId": "{{ response.correlationId }}", "returnUrl": "{{body 'element.0.replayTo' 'default'}}", "log": "{{ response }}" }
I have tried many solutions unfortunately I have no idea how from the callback level I can get to the variables in the response.
The pasted solutions generates empty values, the response object is also empty.
Beta Was this translation helpful? Give feedback.
All reactions