How to add users in to AD group by taking attachement data from the sc_task

mastan babu ko1
Tera Contributor

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..

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@mastan babu ko1 

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 

Read Excel File Using Script 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I need from the flowdesigner custom action, How can we read the values from the attachement in Action?