how to get status code when we are getting response from API in journey.
same status code as what we have in API Event Data explorer.
e.g. : 200, 502, 400, err, etc.
how to get status code when we are getting response from API in journey.
same status code as what we have in API Event Data explorer.
e.g. : 200, 502, 400, err, etc.
ymLib.args.apiResponse.statusCode
This should do.
so i just need to create new function after api call isnt it?
i need to do this in cloud platform
Yes. you need to create a function and apply the code