- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 11:04 PM - edited 07-26-2023 01:06 AM
I have created an Action, where I am trying to fetch the Incident's assignment group members email ID,
incident number is the input and in script section i am fetching the value from sys_user_grmember table. in the end of script part, I have added a log to print- "output.user_emailID", and can see email ID values are populating. however when i see the execution of Action, its shows blank.
My question is, in the above screenshot, are all email IDs from group should show in front of User Ids field ?? as Further I am using this action into a for each loop in a flow, it's not working.
Thanks in advance for help,
Kumar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 12:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 11:25 PM
you should have return type of array/object.
Did you check that?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:11 AM
Now i tried Array.object, but still same issue.
Thanks,
Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 11:27 PM
Try to query sys_user_grmember table it will list all users of that group and you can get the email ids
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 12:14 AM
no issue here. I am using "sys_user_grmember" only, it was a typo, my bad.