Can ServiceNow delete a file it has retrieved using SFTP after it grabs the file?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 09:35 AM
We are looking to setup a data source using SFTP to grab a file each day and then run an import and transform of that file to create records from the file. This would repeat everyday. My question is that after the file is retrieved is there a way for ServiceNow to delete that file off of that server so we are 100% positive the same file is not picked up the next day if there were any issues out of our control?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 11:13 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 11:34 AM
Thanks Raj. I did take a look at that and it requires the Integration Hub Professional Pack subscription which we currently do not have. If we did have it, that appears to be a good solution so thank you for sharing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2023 01:20 AM
I guess it's a bit late, but it might be useful for other people.
After an import, you can delete the data on the sftp using the field property with the following property : remove_file=true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2023 02:28 AM
Can you let me know where we can give this property?