Attempting to use undefined input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2021 06:41 AM
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
Appreciate any help.
Thanks,
James
- Labels:
-
flow designer
-
Workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2021 06:47 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2021 07:41 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2021 07:50 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2021 07:56 AM
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