Hi,
no one is working with the JOBS Rest Job?
Does anyone know how it is possible to insert Parameters (in a prompt set f. e.) in die direct input field of the Rest job?
I tried to assign the Parameter Market and Agency to direct input field. Values are coming from a Prompt Set. Its not working.
If i check the created *.json file the command is like:
So i guess i have to work with PUT_ATT or something like this in Process Tab. But i dont know how.
For the Connection and the Method (PUT, POST, GET) its working. For those ones i know the Name to use. (See picture)
Anyone who is able to help?
Thanks,
regards,
Benedikt
Original Message:
Sent: 07-12-2019 03:49 AM
From: Benedikt Weiler
Subject: REST JOB, API call
Dear all,
i try to execute an Webservice request to an external api interface with Automic REST Job.
For very simple calls its working fine, f.e.
REST JOB as part of a workflow:
Pre-Process tab in REST JOB
set RestConnection and Method -> get data from Prompt Set
override URI Endpoint -> get data from Prompt Set
But now i have a parameter as we execute this request for different markets.
Currently i am executing it via powershell like this:
"
$Body = @{
"MarketId"="3"
}
Invoke-WebRequest -Uri http://xxx.xxx.xxxx.xxxxx:7080/xxxxxxxxxxx/xxxxxxxxxxxx/StatementsGenerated -Method POST -Body (ConvertTo-Json $Body)
"
Anyone here, who knows how to setup the rest job in Automic with an addtional "parameter" so that i execute this request just for MarketID=3?
Thanks in advance for your help.
regards,
Ben