How to pass "Collection type" Parameter from Client Code to Business Process.
Hi Community,
Any idea what went wrong on how i am passing "Collection type" Parameter from Client Code to Business Process.
Client Code:
Below is my payload and it seems fine:
{"schemaName":"UsrWEKAddFacRoute","parameterValues":[{"name":"RouteId","value":"3706a818-cab1-43b0-9a46-58115bb5026c"},{"name":"Facilities","value":[{"FacilityId":"449373f8-3091-4537-a79f-42645bdac2a9"},{"FacilityId":"6d06008f-71d0-4633-b5bb-a395e775a26f"}]}]}
Here is my Business Process input parameters:
However, I am getting this error
Like
Hi.
Please upgrade your app to 8.2.1 and use the option to run the process upon clicking the button upon selecting specific records in some specific list (I used banking details list for tests):
I've checked OOB - works properly and the collection of Ids is passed to the process. Here is the part of the code that triggers the process upon button click:
You can see an article on the approach mentioned by Oleg here https://customerfx.com/article/launching-a-process-for-multiple-records-in-a-creatio-list/
Note, this is only available in 8.1.3 and higher.
Ryan
Ryan Farley,
The OOB approach above is static, it passing only 1 paramater which is the recod Id. I need to pass, record Id and data from the detail grid (2 parameters), that's is why i shifted to coding.
Fulgen Ninofranco,
You can use the "Read data" element and calling a sub-process to get the data from the passed collection of Ids and then pass this data to the sub-process for additional processing.
Oleg Drobina,
Hi thanks for your reply. But the grid actually grid actaully does not have direct relationship to the record id the reason i cannot use read element as well.
I really need to pass 2 parameters
1. RecordId paramater
2. Collection type parameter
This is 100% possible in calssic ui. What is the counterpart in freedom ui?
Fulgen Ninofranco,
I don't understand how it's impossible to retrieve needed data from the list records using their IDs that are passed when clicking the button using no-code tools. Please study the approach described.
Oleg Drobina,
Hi Oleg, thank you for your reply. The data on the grid is not linked to the record. It is a grid data coming from external source. Therefore I could not use read process element from buisness process.
I need pass the all parameters from client side. In Classic UI this is posible, we are able to manage to pass 1 or more input paramaters from client code to business process, including Guid or Collection Type.