Skip to main content
10-Marble
January 26, 2024
Solved

File Upload event on Dependencies.xml file upload

  • January 26, 2024
  • 1 reply
  • 688 views

Hi!

Is there any event that triggers when the Dependencies.xml file is uploaded by the Axeda Agent upon service restart? I have a use case is to trigger an SCM download based on the content of the Dependencies.xml file. I am thinking I can hook up a subscription based on an event that should get fired upon the file upload. Could you please point me towards one.

 

Thanks,

Ashish Tamhane

Best answer by nmutter

You'll need to add a FileTransfer subscription and validate if the FileTransfer is finished (eventData.isComplete) and if it contains the mentioned file (eventData.metadata). And then extract and parse the uploaded .xml file for you needed logic.

1 reply

nmutter16-PearlAnswer
16-Pearl
January 30, 2024

You'll need to add a FileTransfer subscription and validate if the FileTransfer is finished (eventData.isComplete) and if it contains the mentioned file (eventData.metadata). And then extract and parse the uploaded .xml file for you needed logic.