List ToString will allow you to create a string from a list that can contain different data types and can be created with the aid of a data model.
The example requires a process with just the List ToString action with the following configuration.
Step 1. Create a new process and give it a name.
Step 2. Drag the List ToString action action to the canvas and link it to the other actions.
Step 3. Create the data model.
We can use different data types for our attributes, depending on your requirements.
Step 4. Add the needed variables.
- <%inputList%> - the input variable of type list, created with the data model book created at the previous step.
- <%Result%> - the output string variable that will hold the result of the List Totring action.
The input list variable can be created without the aid of a data model, but it will only use one data type inside the list.
Step 5. Click the List ToString action to access its configurations.
Step 5. Save and Validate and Run the process.
Step 6. Each time you will run the process you are expected to add the list you wish to process, if you entered a default value you can edit it at this point and click Run.
Step 7. Click Check instance to see the result in the outputted variable.
As you can see the single value variable of type String will contain the input data.