How to add users in to AD group by taking attachement data from the sc_task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 11:16 PM
We have a variable in the task which is attachement type, End User will add the attachement (contains User Id's), we need to add them in to AD groups by using flow designer.
I know we need to create custom action in flow, In that need to write some script to get data in attachement field that added into task (variable).
Please help..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 11:58 PM
you will require custom action which parses that file and then return those user IDs back to flow
Then iterate over those and Add those users to group
refer below links on how to parse csv or excel file
Read .CSV formatted files in ServiceNow
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
03-18-2025 12:55 AM
I need from the flowdesigner custom action, How can we read the values from the attachement in Action?