Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to pass RITM number in script action Flow designer

Divya57
Tera Expert

 

Hi guys,

I have requirement to update few variables of an RITM record. I want pass this RITM number in script action query condition so that i can edit this record.

I Tried below code. The below code is working fine when i use addEncodedQuery condition for testing purpose.

Any inputs where am doing wrong over here.

IMG_3841.jpeg

IMG_3842.jpeg

IMG_3843.jpeg

1 ACCEPTED SOLUTION

Fixed it by added inputs.requested_number.number

 

thanks for your efforts

@Rajesh Mushke 

View solution in original post

4 REPLIES 4

Rajesh Mushke
Mega Sage

Hi @Divya57,

 

Have you tried the same script in the background script.

Also, add a log to print the inputs.requested_number, may you can see if the error is in the encoded query or something else by adding few more logs in the action script. 



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

In the log for inputs.requested_number am getting [object GlideRecord] error

@Rajesh Mushke 

can you share the screenshot for the input variables ?

 



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Fixed it by added inputs.requested_number.number

 

thanks for your efforts

@Rajesh Mushke