Invalid object in scoped script while triggering flow through UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 03:41 AM
A error message is being displayed while we are trying to trigger a flow from an UI action. Not able to identify what is the issue since all the scripts in the flow are in the same scope.
Any reference to fix this issue. Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 03:50 AM
Did you check if that flow is active and published?
UI action and flow both are in same scope?
Did you copy the script from the Create code snippet feature from flow?
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-2025 05:27 AM
@Ankur Bawiskar Yes both are in same scope. Flow is active and published.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 06:51 AM
Is this happening when admin clicks or non-admin clicks?
Is this happening all the time?
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-2025 07:11 AM
Happening all the time.