mid server script files and third party integration

LePhucTanT
Giga Expert

Hey community! 
Have a question about how other people might be processing commands being sent to a third party application. 

Currently, there is a record producer in my clients environment, which has a function that uploads a file to the mid server scripts location. 

once submitted, a business rule is triggered which then triggers a script that would take the file uploaded into the mid server and upload it to a third party application. 

That logic, currently is having a timing issue (as multiple people could trigger this script at the same time causing a error on the server and failing to upload.) 

To fix this, I have been trying to make a process, that would take the file uploaded to mid server, move it to another folder in the mid server, and use task scheduler to try and queue all the files that are moved into this new folder. Which would be moved into a "done" folder to make a clean progress for the uploaded files. 

Wanting to ask if anyone has done similar things in their own experience and could share some insights on examples of what they have done or are doing currently. 

Look forward to hearing from everyone. 

Thank you in advance. 

Regards

Tim

1 REPLY 1

Sukraj Raikhraj
Kilo Sage

To prevent timeout, please add a 15 secs wait period between the files upload.