Skip to main content

When using a web request control, as part of the result I get the following json

{
"result": [
{
"u_unlisted_configuration_item": "",
"upon_reject": "cancel",
"sys_updated_on": "2022-02-24 21:36:09",
"type": "normal",
"approval_history": "",
"skills": "",
"number": "CHG0032579",
"test_plan": "Perform Smoke Tests",
"sys_created_by": "mflores",
"knowledge": "false",
"order": "",
"phase": "requested",
"u_ci_not_listed": "false",
"cmdb_ci": {
"link": "https://mydomain.mydomain.com/api/now/table/cmdb_ci/6f439f111b4f7c90a5e0eb1dbc4bcb97",
"value": "6f439f111b4f7c90a5e0eb1dbc4bcb97"
},
"assigned_to": {
"link": "https://mydomain.mydomain.com/api/now/table/sys_user/8996ac2adbb29f80ab673c8f9d9619ea",
"value": "8996ac2adbb29f80ab673c8f9d9619ea"
},
"start_date": "2022-03-04 16:00:00",
"opened_by": {
"link": "https://mydomain.mydomain.com/api/now/table/sys_user/8996ac2adbb29f80ab673c8f9d9619ea",
"value": "8996ac2adbb29f80ab673c8f9d9619ea"
},
"risk": "4",
"category": "Other",
"risk_impact_analysis": "None"
}
]
}

 

I can display perfectly the values at the first level i.e. I can display the value for fields like

 

$.result.upon_reject     >>> displays  cancel

$.result.type  >>>>>>>>>> displays  normal

 

but when I try displaying one of the items with nested values, i.e  opened_by link or assigned_to link , it won't display

I already tried 

$.result.assigned_to.link

$.result.assigned_to.0].link

$.result.assigned_to

  • .link

     

    and they are nor working

  • It looks like RESULT is actually an array - perhaps try ;



    $.result

  • .assigned_to.link


  • Reply