We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Parse an excel which we receive via email

Qamrain Peerzad
Tera Contributor

if I have to parse an excel sheet which we we receive via email that email will end up  in sys_email table and its attachment will reside in sys_attachment table. The Excel contains details about terminated users and that users need to be removed from multiple groups how can i achieve that. i have added the format of excel screenshot for reference. 

QamrainPeerzad_0-1779079006986.png

 

 
6 REPLIES 6

Ankur Bawiskar
Tera Patron

@Qamrain Peerzad 

you can use ExcelParser API for this and iterate over each row and then query and deactivate the user

check below links

GlideExcelParser - Scoped, Global 

How to populate Manager field(reference type) and effective date from excel sheet when using Glide E... 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Qamrain Peerzad 

Just a quick follow-up—were you able to review the links above and try the suggested approach?
Please let me know if you need any assistance.

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