- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-15-2022 11:15 PM
Hi all,
I have problem and I would like please you for help.
My target is, from API (via postman) run some playbook with own data. For example, call playbook, where I added into playbook Inputs property "Left".
How I tried set $Input.Left from my API, there are free version in one, - in data, in args, and in inputs. Nothing works, $Input.Left is empty when playbook run.
Url: https://ourtestserver.com:443/entry/
And json body:
{
"investigationId":"2939",
"data":"!setPlaybook incidentId=2939 name=test-playbook {inputs={Left=5}}",
"args": {
"Left": {
"Simple": "1"
}
},
"inputs":{
"Left": "5"
}
}
I know, that method /Entry has property ARGS, but how to use it in Playbook, is it possible?
Playbook has Input/Outputs, I can add new input in playbook designer and set new property "Left", and set default value. Then, in tasks I'm able work with it.
But exist same way, how to fill playbook inputs from API /entry please?
Thank you for your ideas.
Michal
06-16-2022 10:03 PM
Hi @michal.grznar, I dont think this is possible. Playbook input can be passed as a part of the context only.
I would recommend this method. Configure the playbook like this.
You can then send a postman request like this.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!