- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2021 05:51 AM
I have created an Action in Flow designer to trigger an event which will send out a notification. With in that notification I need to pass the date variable that the user inputs. I have created a template and use the mail script to print this value, but it is coming back as undefined. Here are screen shots of the Action and mail script. Not sure what I am doing wrong and any assistance would be helpful.
Action:
Flow:
Mail Script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2021 09:39 PM
Hi,
your event is on sc_req_item table
but in the event log the table is different
Unless the event triggers on the sc_req_item table it won't work
Can you check the inputs.template object belongs to which table
try adding this log
gs.info(inputs.template.sys_class_name); // check the table name
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2021 06:47 AM
Hi,
So it means the RITM object is not sent properly.
That is what I mentioned in my earlier comment that the object of RITM is not valid
can you share the event log for that event
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2021 06:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2021 07:13 AM
Hi,
your event name and the name of event in screenshot is different
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2021 07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2021 09:39 PM
Hi,
your event is on sc_req_item table
but in the event log the table is different
Unless the event triggers on the sc_req_item table it won't work
Can you check the inputs.template object belongs to which table
try adding this log
gs.info(inputs.template.sys_class_name); // check the table name
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader