- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 06:33 AM
Hi,
In a Scheduled Data Export on a table, I want to replace the exported values of a choice field (install_status) :
for example:
"In use" → Active
"Retired" → Decommissioned
I tried using a Pre-export script with row.setValue() or setDisplayValue(), but it doesn't change the exported CSV values. Is there a way to override the display value in the export only, Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 06:54 AM
that's not how it will work.
you will have to somehow handle this in post export script, get the attachment record sysId, get the csv file
Parse it and then manipulate and store it again
It's somewhat complex.
check these links
Scheduled Data Export-customized csv file
Scheduled/Export file/records to attachment to a mid server folder
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 06:54 AM
that's not how it will work.
you will have to somehow handle this in post export script, get the attachment record sysId, get the csv file
Parse it and then manipulate and store it again
It's somewhat complex.
check these links
Scheduled Data Export-customized csv file
Scheduled/Export file/records to attachment to a mid server folder
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 03:37 PM - edited 06-17-2025 03:51 PM
Hi, thanks for your input.
I followed your suggestion by creating a post-export script that triggers a MID Server script include to open and modify the CSV file (attached to the ecc_agent_attachment table). However, I keep hitting the following error:
It seems like ServiceNow requires a digital signature (KMF Signature record) to manipulate files tied to ecc_agent_attachment for mid_script purposes.
Unfortunately, I can't bypass the MID Server export process because the client requires the files to be transferred via MID Server.
Have you ever had to deal with this KMF Signature restriction? Did you sign your script and/or attachment somehow, or was it handled differently in your case?
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 08:03 PM
I haven't encountered any such issue in the past.
may be some security part is blocking the manipulation.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader