Any way to upload files from MID Server to Amazon S3 without S3 spoke?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 03:30 AM
We have some files in a folder in MID Server. The files are sent from ServiceNow regularly.
What we would like to do is to upload the files to Amazon S3 triggered by Flow Designer. Is there any way to achieve this?
*We understand that ServiceNow offers "Amazon S3 Spoke", but it's not an option for us since it needs IntegrationHub Enterprise subscription which we don't have.
Best Regards,
Aki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 02:26 AM
Hi @Amit Verma ,
The reference article assumes that the trigger is Business Rule, but I can take the same approach in Flow Designer, right?
Can we set the same JavaScript as the article to Script step in Flow Designer Action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 09:01 PM
Yes. Whatever code you have inside the Business Rule function, you can use as it is. Remember to exclude the Business Rule function though and change the param variables of the PowerShell script as per your flow designer input variables.
(function executeRule(current, previous /*null when async*/ ) {}
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2024 11:50 PM
Hi @Amit Verma ,
Thank you for your reply. We will give it a try following your advice.