Is it possible to export the table records daily through schedule job?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 01:26 AM
I need to run a job daily, which needs to export the data(in incident table) as an XML and needs to trigger an email to x,y persons with that attachment..
is it possible>?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 08:21 PM
Hi,
you can get the record sysId of "ecc_agent_attachment" and query in "sys_export_set_run" and from there you can know which export set it is.
You can use after insert BR on ecc_agent_attachment table and use event based notification. In that BR script you check which export set it is and based on that trigger the relevant email.
I believe the attachment is there in sys_attachment and a reference is just placed in that field.
Did you open the record into ECC_Agent_attachment and check file is attached to that record?
If yes then include attachment checkbox on notification on this table should work fine.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2025 12:51 AM
Hope you are doing good.
Did my reply answer your question?
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