Hello,
I am new to postman, but I have the basics down, as far as setting up the keys, variables, and making a Call.
I’m hoping someone could guide me - if this is even possible - do I use “pre-request scripts” or set some kind of dynamic/array variables, or use ‘Runner’, or what approach exactly?
Here is what I’m trying to do:
when I make a call to one endpoint, I get a bunch of output like this
],
“approvalSchemes”: “none”,
“deniedCommentsRequired”: false,
“description”: “Role for I.T.”,
“disabled”: false,
“displayName”: “Developer Role”,
“id”: “3c918286759540f70175c7a8025x401b”,
“identityCount”: 0,
“name”: “Developer Role”,
“owner”: “services”,
“requestCommentsRequired”: false,
“requestable”: false,
“revokeRequestApprovalSchemes”: null,
“selector”: null
},
{
If I take that id value, and enter that into a different CALL like this
{{api-url}}/cc/api/role/get/?id=3c918286759540f70175c7a8025x401b
I get a bunch of output like this
“children”: [
{
“children”: ,
“key”: {
“property”: “attribute.jobTitle”,
“sourceId”: “”,
“type”: “IDENTITY”
},
“operation”: “EQUALS”,
“value”: “Developer level 2”
},
All this output… all I really want is one thing from the first call, and two from the second call.
“displayName”: “Developer Role”
“property”: “attribute.jobTitle”,
value": “Developer level 2”
But also - I have a bunch of these, is there any way to automatically put the ID from one call to the other?