Hi,
Please help to extract value from the link as mentioned below from response.
caller_id is a look up value , after patch I get a response as below.
Now I should compare the actual value with expected value .
I have pasted the full response below .
"caller_id": {
"link": "https://dev75644.service-now.com/api/now/table/sys_user/a8f98bb0eb32010045e1a5115206fe3a",
"value": "a8f98bb0eb32010045e1a5115206fe3a"
},
Thanks
Karthik
Response body :
{
“result”: {
“parent”: “”,
“made_sla”: “true”,
“caused_by”: “”,
“watch_list”: “”,
“upon_reject”: “cancel”,
“sys_updated_on”: “2022-09-02 04:18:30”,
“child_incidents”: “0”,
“hold_reason”: “”,
“origin_table”: “”,
“task_effective_number”: “INC0010097”,
“approval_history”: “”,
“number”: “INC0010097”,
“resolved_by”: “”,
“sys_updated_by”: “admin”,
“opened_by”: {
“link”: “https://dev75644.service-now.com/api/now/table/sys_user/6816f79cc0a8016401c5a33be04be441”,
“value”: “6816f79cc0a8016401c5a33be04be441”
},
“user_input”: “”,
“sys_created_on”: “2022-09-02 04:18:30”,
“sys_domain”: {
“link”: “https://dev75644.service-now.com/api/now/table/sys_user_group/global”,
“value”: “global”
},
“state”: “1”,
“route_reason”: “”,
“sys_created_by”: “admin”,
“knowledge”: “false”,
“order”: “”,
“calendar_stc”: “”,
“closed_at”: “”,
“cmdb_ci”: “”,
“delivery_plan”: “”,
“contract”: “”,
“impact”: “3”,
“active”: “true”,
“work_notes_list”: “”,
“business_service”: “”,
“business_impact”: “”,
“priority”: “5”,
“sys_domain_path”: “/”,
“rfc”: “”,
“time_worked”: “”,
“expected_start”: “”,
“opened_at”: “2022-09-02 04:18:30”,
“business_duration”: “”,
“group_list”: “”,
“work_end”: “”,
“caller_id”: {
“link”: “https://dev75644.service-now.com/api/now/table/sys_user/a8f98bb0eb32010045e1a5115206fe3a”,
“value”: “a8f98bb0eb32010045e1a5115206fe3a”
},
“reopened_time”: “”,
“resolved_at”: “”,
“approval_set”: “”,
“subcategory”: “”,
“work_notes”: “”,
“universal_request”: “”,
“short_description”: “”,
“close_code”: “”,
“correlation_display”: “”,
“delivery_task”: “”,
“work_start”: “”,
“assignment_group”: “”,
“additional_assignee_list”: “”,
“business_stc”: “”,
“cause”: “”,
“description”: “caller_id validation”,
“origin_id”: “”,
“calendar_duration”: “”,
“close_notes”: “”,
“notify”: “1”,
“service_offering”: “”,
“sys_class_name”: “incident”,
“closed_by”: “”,
“follow_up”: “”,
“parent_incident”: “”,
“sys_id”: “c513edbb97691110477f71571153af5b”,
“contact_type”: “”,
“reopened_by”: “”,
“incident_state”: “1”,
“urgency”: “3”,
“problem_id”: “”,
“company”: “”,
“reassignment_count”: “0”,
“activity_due”: “”,
“assigned_to”: “”,
“severity”: “3”,
“comments”: “”,
“approval”: “not requested”,
“sla_due”: “”,
“comments_and_work_notes”: “”,
“due_date”: “”,
“sys_mod_count”: “0”,
“reopen_count”: “0”,
“sys_tags”: “”,
“escalation”: “0”,
“upon_approval”: “proceed”,
“correlation_id”: “”,
“location”: “”,
“category”: “inquiry”
}
}