- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 01:13 PM - edited 02-27-2024 01:16 PM
I am trying to update a field on a CI form based on the current value using fd.data object, but I am getting an error:
"Flow Designer: attempting to use undefined input = 'current' from Append Comment: no thrown error"
var today = new Date().toLocaleDateString();
var shortDesc = fd_data.trigger.current.short_description;
shortDesc = shortDesc + "/n" + " ---Good bye " + today;
I did see a similar issue where "current" is not available under subflows, but I am getting the same error when using it under the main Flows.,
Any directions OR guidance greatly appreciated.
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 07:32 AM
Hey James - Thank you for calling out the missing ingredient.
I was not using Insert/Update under the trigger section of the flow. Once I changed the trigger to insert, it works like a charm.
Thank you again!
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 09:48 PM
Hi @runfast ,
there are couple of solved articles available, Refer those , that might help you.
Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.
Thanks
AJ
Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/
ServiceNow Community Rising Star 2024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 07:21 AM
Thanks Ajay for providing these useful links. I already removed some of these articles, but I will make sure I am not missing anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 11:35 PM
Hey @runfast,
What is the trigger for your Flow?
I think you should be able to use the 'current' object if the trigger is 'created', 'updated', or 'create or updated'.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 07:32 AM
Hey James - Thank you for calling out the missing ingredient.
I was not using Insert/Update under the trigger section of the flow. Once I changed the trigger to insert, it works like a charm.
Thank you again!
thank you