- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 12:18 PM
I've seen similar posts, but haven't found an answer.
I have an Export Set that sends a .CSV file to our Mid Server. Works beautifully. But the requirement put upon me is to remove the double quotes(" ") from each field, so it ends up as a purely comma delimited CSV file.
Current file displays: "Julie", "Gordon", "Company"
Preferred file display: Julie, Gordon, Company
I'm thinking it has to be a pre-export script, but I'm newish to scripts & even newer to APIs. Usually I can Frankenstein something together from prior posts, but would appreciate any help anyone can offer.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 08:10 AM - edited 10-24-2023 08:12 AM
Anvesh- Thank you for your reply! I had found that article, but it did send me down a different path. Ultimately here's my solution.
1. Export Set to MID server
2. Symbolic link from MID server location to Network location(my requirement; also on my MID)
3. MID server script file as an attachment = powershell to take the CSV on the MID, remove quotes & replace.
4. Post Export Script on the Scheduled Export Set to trigger the powershell on the MID to run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 07:27 PM
You can use post script to modify the contents of file in mid server to your desired format.
Refer the following article where they change the file name, you can follow similar approach to replace the file content.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 08:10 AM - edited 10-24-2023 08:12 AM
Anvesh- Thank you for your reply! I had found that article, but it did send me down a different path. Ultimately here's my solution.
1. Export Set to MID server
2. Symbolic link from MID server location to Network location(my requirement; also on my MID)
3. MID server script file as an attachment = powershell to take the CSV on the MID, remove quotes & replace.
4. Post Export Script on the Scheduled Export Set to trigger the powershell on the MID to run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 08:34 AM
Hello Julie,
I also have a similar requirement, could you please help me with the script that you have used and steps to modify the header of csv file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 08:56 AM
On your Scheduled Data Export > Execute post-export script: