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.

Get Export Set generated file

apires
Tera Contributor

Hi all,

 

I need to fetch the file generated in an Export Set and send it to an external system via REST.

 

Is there a way to get the file after the export set runs?

 

Or do I need to replicate the export set in a different tool like flow designer? If so, how can I achieve this?

 

Thank you

 

 

1 REPLY 1

Alexander Mart1
Tera Contributor

Hello,

When the Export Set successfully transfers the generated file to the MID server, a record is being created inside this table MID Server Attachment [ecc_agent_attachment] and on that record the file is set as an attachment. Respectively the file is also added as a record inside the Attachment [sys_attachment] table, then based on your desires you can retrieve all the needed data of the attachment (export file).