Getting [object GlideRecord] for some of Input variables in Script Step of Action payload
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 09:01 PM
Hi,
Getting [object GlideRecord] for some of Input variables in Script Step of Action called from Flow.
Payload which i got {"sintCompanyCode":1,"strAssetCode":"89411DU8","strCategory":"[object GlideRecord]","strSubCategory":"laptop"}.
Here Category is reference variable, reference to model category table
SCRIPT STEP ;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 09:07 PM
Hello
Can you show in the action, how you are passing the category?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 09:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 09:08 PM
Hello @Avinash Kumar K ,
This could be because your input category is reference.
You can set field like input.sys_id or input.number.
Can you share screen shot of inputs for your flow action.
Thanks,
Valmik Patil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 09:18 PM
Hello @Avinash Kumar K ,
Please verify once that input you are passing from flow is not reference and should be string.
Thanks,
Valmik Patil