Flow designer giving error: Value of field record is not a GlideRecord

Kaustubh k
Tera Contributor

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

 

KARANVATAKAR_0-1704889213083.png

 

KARANVATAKAR_1-1704889457232.png

 

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

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Kaustubh k 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Unique45
Mega Sage

Hello @Kaustubh k ,

I think you have given wrong record reference in 'Delete Record' activity.

Unique45_0-1704892220998.png

 

Please check reference that you have given.

Which record you need to delete ? can you please provide more details about your requirement?

 

 

Please mark correct/helpful if this helps you!

Amit Verma
Kilo Patron
Kilo Patron

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.

Rahul Talreja
Mega Sage
Mega Sage

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.

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul

Ankur Bawiskar
Tera Patron
Tera Patron

@Kaustubh k 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader