Attempting to use undefined input

James Rostron2
Mega Expert

Hi Community,

I've created a flow to send approval reminders after 7 days and later close RITMs if still not approved after 14 days.

I have an issue in the script to return the RITM record and update the fields.

I'm not sure why this is failing.

The Trigger is "Created" on table "sysapproval_approver" with condition
- State = Requested
- Source = sc_req_item

find_real_file.png

find_real_file.png

Appreciate any help.

Thanks,

James

6 REPLIES 6

Allen Andreas
Administrator
Administrator

Hi,

Are you trying to return the record you just retrieved? Or the JavaScript variable "ritm" which you defined already from the flow data?

Do you need to return: rec

Instead of: ritm

?

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen,

You're right small typo on my part it is the rec.

I've adjusted this but it is still failing with the same error 😞

Thanks,

James

What kind of error are you seeing? Can you post the Execution log screenshot for the subflow after it runs? That may have more details.

Frank

Hi Frank,

The error is shown in the R/H corner of screenshot above.

The flow won't activate first and foremost so won't even run at this point.

Thanks,

James