Flow designer always returning as 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi I made a inbound flow where I am checking how many client visbility the user has on that basis I am actually sending an email if it is greater than 1 we are not creating a case and sending an email. I tried everything script include action everything this is my screenshot of the script include code and below that in the flow how I am calling it. When the flow is triggering via inbound action then this value is alwys 0 but when I am testing the flow using the same record or any other record its coming as 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
if your script include is server side then where is initialize() method.
your syntax for script include is wrong.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
No its not i tried in the background script its working and also returning value. And I tried without the script include in flow I hard coded this code in the flow to a flow variable its still returning 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
when flow runs it's running with system user or other user?
did you add logs and see if script include got called when flow runs?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Its running as system user in the flow and I put logs in both flow and script its returning 0 from the script also
