- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 04:26 AM
Hello All,
Need help for the issue we are facing for the Delete action on the flow which is giving out the error as Value of field record is not a GlideRecord.
The field referred in the flow to delete from the table is lookup select box type attached image of the flow action
The flow executes as;
We have a variable on form to select the custom table which is selected, then there are multiple If conditions for actions of Create , update and Delete record from the selected table.
for this custom table Create/update works but delete gives error as above.
It would be highly appreciable for the review and feedback on the same.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 05:27 AM
delete record action expects a GlideRecord object of a table.
But in your flow you are passing choice value so it won't work.
which record you want to delete? you need to use Lookup Record action and then use Output of this into your Delete Record action
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 05:11 AM - edited 01-10-2024 05:13 AM
Hello @Kaustubh k ,
I think you have given wrong record reference in 'Delete Record' activity.
Please check reference that you have given.
Which record you need to delete ? can you please provide more details about your requirement?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 05:16 AM
Hi @Kaustubh k
From the screenshot, I can see catalog variable customer_id_5 as of type choice. Can you please check and assign the right variable to fix this issue ?
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 05:21 AM
Hi @Kaustubh k ,
Most Probably issue stands with the parameter you are passing. Try passing a "Record" type parameter, If you don't have a one, add a step before deletion to search the record and get the output.
Thanks and Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 05:27 AM
delete record action expects a GlideRecord object of a table.
But in your flow you are passing choice value so it won't work.
which record you want to delete? you need to use Lookup Record action and then use Output of this into your Delete Record action
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader