Developer forum

Forum » Dynamicweb 10 » Run job with custom file source

Run job with custom file source

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
In DW9, I was able to create a URL that allowed me to pass the source file for an integration job as a URL parameter (SourceFile).
Is this something I can do with the Management API?
I have reviewed the Management API but it's not clear what I should be using.

Thank you,
Adrian


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Adrian,
yes, the same functionality as it was in DW9 is present in DW10.
You can pass the job parameters as the query string parameters as it was in DW9 in the requests.
You can use the ActivityRunCommand command from the Management Api
(https://solution.url/admin/api/docs/index.html?url=/admin/api/api.json#/Dynamicweb.Integration.UI.Commands/ActivityRunCommand)
to run the job or use the url (like it was in DW9 with the same parameters from DW9):
https://solution.url/admin/public/webservices/integrationv2/JobRunnerBackground.aspx?jobsToRun=dw%20to%20xml

BR, Dmitrij

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Dmitrij,

Thank you very much. I will give it a try.

Adrian

 

You must be logged in to post in the forum