not able to connect the sc_req_item to sc_task

Siddharth30
Giga Contributor

I am not able to connect the sc_req_item to sc_task? 

 

I did this way, by postman
1. I invoked sc_request API and got sys id
2. Passed the sys_id of sc_request response to sc_req_item API in "request" field
3. Passed the sys_id of sc_request response AND sys_id of sc_req_item response to sc_task API in "request" and "request_item" fields

In ServiceNow, request and request_item are linked. But sc_task in not linked.
Not sure, what mistake i did.

2 REPLIES 2

Ivan Betev
Mega Sage
Mega Sage

Hi @Siddharth30 ,

 

I think you don't need to associate request with sc_task, it will be automatically linked via requested item. What is the response you get when you try to associate sc_task with sc_request? Do you have any data policies for mandatory field that you may not consider in your update?

 

Regards, Ivan

Anand Kumar P
Giga Patron
Giga Patron

Hi @Siddharth30 ,

Make sure if The sys_id of the sc_request or sc_req_item is incorrect and you are using the correct sys_id. The sc_task API may not be correctly linking the request and request_item.

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand