Hi Community!!!
I used built in web service configuration to configure an integration with third party app.
The JSON that third party app receives looks like this:
{
"url": "https://test",
"events": ["a","b"]
}
The configuration for the events parameter into web service is as shown in the image below:
My issue is when I try to call this Web Service/Method from a Business Process. I cannot send the correct values for the events parameter. I tried several options for example: read a lookup values, create list or collection in a script task, etc. but I couldn't achive the goal.
The image below shows how the parameter is requested on the business process:
Below I show the trace with an example of the values I try to pass to the paramter:
"Parameter": "Events",
"Value": {
"Before execution": [
{
"Name": "invitee.created"
},
{
"Name": "invitee.canceled"
}
],
Any recomendation?
Regards.
Like
Hello,
You can send your values using a collection.
The values of collection parameters of a [ Call web service ] process element can be mapped to the nested parameters of another collection of a [ Read data ] or [ Call web service ] process element .Additionally, each item of the collection can be mapped to an individual subprocess instance in the [ Subprocess ] element.
You can find more detailed information on the academy website:
https://academy.creatio.com/docs/user/bpm_tools/process_elements_refere…
Cherednichenko Nikita,
Thank you! I tried it but the result is something like this:
[
{
"Name": "invitee.created"
},
{
"Name": "invitee.canceled"
}
],
The expected value is
[invitee.created","invitee.canceled"]
How can I achive this?
Regards.
Hello,
The code
[
{
"Name": "invitee.created"
},
{
"Name": "invitee.canceled"
}
],
Is seen like : [{"Name": "invitee.created"}, {"Name": "invitee.canceled"}].
But, in your case, I believe you can use the parameter value "Collection of values"