inputs empty when calling a subflow into legacy workflow run script activity

HanumanthaRR
Giga Contributor

Hello Team,

I calling my subflow in a runscript activity of a legacy workflow which trigger upon a catalog item submission. I am passing the ritm number as input. Lable of input is 'RITM' and intrenal name is 'ritm'. when i added logs into runscript activity. i can see the ritm number. but its being passed to subflow.the run time value keep remaining as empty. please see below screen shots. Please help me

HanumanthaRR_0-1791826979562.png

HanumanthaRR_1-1791827158191.png

 

 

3 REPLIES 3

Hemanth M
Tera Sage

Hi @HanumanthaRR ,

 

1)Have you copied this code snippet from the subflow? if not please do and use it in your workflow

2)Have you verified the RITM number is fetched correctly from your run script activity?

3)Test the subflow using "Test" option to see subflow works without any issues.

4)verify that you are looking at the correct subflow execution context(triggered from the run flow activity)

5)you can verify subflow trigger from the background script by passing a static RITM number (use the code snippet)

 

Please try these and will investigate further !

 

example:

HemanthM_0-1791864492710.png

HemanthM_1-1791864517483.png

 

 

Hope it helps!

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026

Ehab Pilloor
Giga Sage

@HanumanthaRR,

 

Why not use Glide Record Object for RITM? 

 

Regards,

Ehab Pilloor

Hemanth M
Tera Sage

Hi @HanumanthaRR ,

 

If this response helped you, please accept or feel free to ask a follow up question.

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026