Request for Assistance with REST Service Calls trigger button parameter issue

0
Dear community,   We want to run two REST Service call API's in one Microflow. So far, we've managed to get one of the APIs working. This API successfully generates a token when we send a request (and this part works fine).   However, we're running into trouble with the second API. We're unable to test it because the button that triggers fails and seems to expect a parameter from the first API within the same microflow. Our main challenge is figuring out how to trigger two REST calls from a single button—fetching the token from the first API and then using it to write some data with the second API.    
asked
3 answers
1

Hello Fouad,

 

Your flow behind the button is expecting two parameters, RootMC(Request) and Root(Root) check if these parameters are available on the page where you have your button, if so you can click on the button and activate(refresh) them in the button details if not add the parameters or delete one of the parameters and retrieve it in the flow.

 

Hope this helps,

 

Good luck!

answered
1

Fouad,

The error message you see indicates that the microflow expects 2 parameters but only one parameter is available on the page.  Is the parameter Root (of type Root) used in the microflow?  If not, you can delete that from the microflow and the error message you are seeing will be eliminated.

Hope that helps,

Mike

answered
0

I found the solution! Instead of using the Root entity, I transferred all its data into RootMC. This way, I only needed one parameter instead of two. By filtering the Export Mapping based on attributes, there was no need to use two objects and divide them across multiple Export Mappings. I wasn’t aware of this approach before, but now I know!

answered