How to merge lists in Business Process
Hello,
I have a method in an operation wich return a list of %String (listId).
I call it multiple time in a Business Process and want to have all the lists I get put into one.
Not having "set context.listIdProcess = callresponse.listId" , but a way to add the elements of listId in context.listIdProcess.
There is an other way than append each element of the list?
Thanks for yours answers,
Corentin
Comments
Have you tried InsertList method?
https://docs.intersystems.com/iris20232/csp/documatic/%25CSP.Documatic…
I obtain this error : Erreur Cache: <LIST>zInsertList+5^%Collection.ListOfDT.1 when I call the InsertList method :
do context.listIdProcess.InsertList(callresponse.listId)Thanks for your answer
Is listIdProcess initialized?
Yes
Try with the following code:
do context.listIdProcess.InsertList(callresponse.listId.Serialize())It works !!!
Thanks you
Furthermore, listIdProcess doesn't need to be initialized
Hi Corentin! Here you can see how to initialize ListOfDataTypes objects:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…