use json array in liquid #5427
Replies: 1 comment
-
Yes, the string you've provided is already in JSON array format, which is a common way to represent a list of objects in JSON (JavaScript Object Notation). You can use this JSON array in loops or email templates within a workflow designed with Elsa Workflow Designer. To use this JSON array in a loop, you would typically use a "ForEach" activity to iterate over each item in the array. Within the loop, you can access the properties of the current item, such as "COD", "DESC", and "EMAIL". For email templates, you can use the values from the JSON array to dynamically populate fields in the email, such as the recipient's email address or the email body content. Here's a general outline of how you might use this JSON array in Elsa Workflow Designer:
Remember to ensure that the JSON is valid and properly formatted for use in the workflow. If you encounter any issues or errors while setting this up in Elsa Workflow Designer, you can refer to the Elsa documentation or seek help from the community forums or support channels. Would you like a more detailed example of how to set this up in Elsa Workflow Designer, or do you need assistance with a specific part of the process? This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
i've a string like this "[ {"COD": "001", "DESC": "Direttore commerciale","EMAIL": "prova@dimasi.it"}, { "COD": "01", "DESC": "Cesare Dimasi", "EMAIL": "mail@ordini.it" } ]"
is it possible to convert into a Json array? so it could be used i loops or email template?
keep in mind that i'm using Workflow Designer
Beta Was this translation helpful? Give feedback.
All reactions