Publicado Tue, 07 Nov 2023 08:27:59 GMT por Mayra Rossi
Hi, 

I'm trying to retrive an array from a rest call in a workflow.

{
  "approversList": [
    {
      "username": "user1"
    },
    {
      "username": "user2"
    },
    {
      "username": "user3"
    }
  ]
}


There is any solution to get all usernames and save it into a keyword field? Otherwise, how to get approversList items count?

Thanks
Publicado Tue, 07 Nov 2023 10:02:25 GMT por Gerardo Lisanti Team Leader Product Management
Hi Mayra,

in the Data Assign tab, try to manually replace the index by an asterisk "*", like this:
$.approversList[*].username


Viele Grüße / With best regards,
--
Gerardo Lisanti
Team Leader Product Management  |  DocuWare GmbH
Publicado Tue, 07 Nov 2023 10:19:25 GMT por Mayra Rossi
Thank you very much, I confirm it works :-)
Publicado Wed, 15 Nov 2023 15:58:02 GMT por Bruno Villa Real Document Solution
Hi Gerardo,

is it possible to also write on a Table field?

You must be signed in to post in this forum.