Can I pass an array to a collection parameter via script task
Hi,
Let's say that I use a script task to get a request from a third party application and that request sends creatio a json with arrays.
What I need to do is to insert that data into some tables.
Can I pass the array to a collection parameter and then use it in my business process or do I need to insert the data via sql in the script task?
Thanks,
Raz
Like
Hi Raz,
In fact, an array will work almost the same as a collection, so it doesn't make any sense to pass array into collection, but in this case you need to read this json data and then pass it through the collection for your further actions.
Please check out some practical examples of how to read and update data in script task:
https://community.creatio.com/questions/use-script-task-update-column-r…
https://community.creatio.com/questions/use-collection-parameter-script…
https://community.creatio.com/articles/solved-code-how-send-http-post-r…
Regards,
Bogdan L.