Need to pass ritm field values to work flow which is calling from the script

Indup
Tera Expert

I am creating a request from inbound action. And I am creating corresponding ritm using business rule. In the business rule after creating the ritm, I am calling a workflow which is on requested item table. There is only one run script activity in the workflow. In that run script activity, I want the ritm number and requested for values in a scratchpad variable. Workflow is triggering but the related ritm number and requested for is not coming . I checked with log messages also. Can someone help me here. It's a bit urgent

For my code, please see this link

https://community.servicenow.com/community?id=community_question&sys_id=b1745ecd1b946410305fea89bd4bcb41

 

 

Regards,

Indup

21 REPLIES 21

 

1. the details you are filling from inbound, are they getting updated in request?

2. Can you provide a screenshot of request from top to bottom

Yes they are getting populated on Request form.

The fields i am populating are:

Title, Request Type, Requested for & Opened by

find_real_file.png

Have you created Catalog item and attach workflow in it ?

Can you put logs for rc.number, please check if details are getting updated into same request.

As i told you, it is not creating Request now. I have attached the workflow in that catalog item. 

 

 

Regards,

Indup

Shivani,

Actually i have passed wrong sys_id, in the code, and i have corrected it now. But once i corrected it, the Request is not getting created like earlier

find_real_file.png