Response Header count value in Workflow

Hi Everyone,

We have a workflow from where we are calling Http Request action and trying to get the header count and set in variable, but despite of setting the count value the variable is showing as “X-Total-Count” array… Is there a way to get the headers count numeric value only??

Here is the screenshot of Workflow step where we are fetching the counts.

After execution of Workflow the value of variable “uncAccCount” is coming as -
“variableA”:{“X-Total-Count”:[“162”]}
Instead we want only the count numeric (162) value to be stored in the variable “uncAccCount”.

Please let us know if we can achieve this by Workflow or not, your help here will be much appreciated.Thanks.

You can further parse the json - $.hTTPRequest.headers to fetch you only 162 value from it.

This json tool can help you get the json to be used.

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