Happy Business Starts Here

Zuora Staff

Connect Workflow App: How do I specify input parameter for POST API call?

Problem Statement:

 

When I create a required input parameter, how do I specify it in a POST request?

 

Example:

I made Account Number a required parameter:

The standard request URL to kick off the workflow is:

https://workflow.apps.zuora.com/api/v1/workflows/10/run

 

wf.png



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Zuora Staff

Re: Connect Workflow App: How do I specify input parameter for POST API call?

Solution:

 

This can be done by simply do a post request with the field in the body:

 

{ "Example": "value"}



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post

2 REPLIES 2
Highlighted
Zuora Staff

Re: Connect Workflow App: How do I specify input parameter for POST API call?

Solution:

 

This can be done by simply do a post request with the field in the body:

 

{ "Example": "value"}



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post

Highlighted
Advanced Tutor

Re: Connect Workflow App: How do I specify input parameter for POST API call?

If I'm not in control of the structure of the JSON that is within the callout that triggers a workflow, is it possible to map from a nested object?

 

e.g. my data is:

 

{ "data": { "object": { "key": "value" } } }

 

I'd like to descend the AST and map "value" to a Zuora object. e.g.