Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to add approvers record data with requested item table data csv import

jituksingh
Kilo Guru

Hi,

I am downloading all the records from requested item table (sc_req_item) in a CSV format but with data I also want to include all approver data record, like who were the approvers, when and who approved the request. I don't know how to achieve that. Can someone please help with my query, I see approval history but many items where we do have approvers data but approval history field is empty.

Please let me know if I need to provide some more data.

 

Regards,

Jitendra Singh

7 REPLIES 7

jituksingh
Kilo Guru

Please consider csv export instead of import.

Alp Utku
Mega Sage

You can report on sysapproval_approver table to get approval / approver data.

 

 

Ankur Bawiskar
Tera Patron
Tera Patron

@jituksingh 

that's correct because RITM doesn't hold Approver data.

You can create custom fields on RITM table to store Approver, Who Approved and When Approved.

You can use after update BR on sysapproval_approver table to update these custom fields when Approval is Approved. 

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thank you for the reply! I am new to Snow. Can you please help me with steps to follow?