Workgroup Names using POST method in Postman

Which IIQ version are you inquiring about?

Version 8.3

Share all details related to your problem, including any error messages you may have received.

I am getting Postman Response (POST Method) like this “output”: [
{
“value”: “"uz9y:API IAM WorkGroup, Head of IAM", "uzxb:IAM - Engineering, IAM - Operations"”,
“key”: “output”
}

But actual Postman Response output I should get like this "uz9y:API IAM WorkGroup, Head of IAM", “uzxb:IAM - Engineering, IAM - Operations”

Is there any way to remove "" slash in Postman Response output ?

As per your shared response body it seems to have multiple string, and this is why it is giving multiple quotes in the beginning.

You may try the formatting given in postman like “raw”,“pretty” etc.

Are you looking for some way to use this value in some other call?

Thanks

@manikanda_vanguard
Can you provide the endpoint you are calling, are you launching a workflow within SailPoint, if so can you please share the workflow code

If you are just concerned about the output in postman and dont bother about the actual output

try keeping below in Tests tab, this will remove all double quotes

let response = pm.response.json();
let value = response.output[0].value;
value = value.replace(/"/g, '');
console.log(value);

The API is returning list of values as String. You can update your API to return the workgroup names as List, which will provide the output as below.

{
  "value": [
    "uz9y:API IAM WorkGroup, Head of IAM",
    "uzxb:IAM - Engineering, IAM - Operations"
  ],
  "key": "output"
}

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