Hi,
An "Employees" field from Sharepoint list returns an array of JSON datatype, as follows:
[{
"DisplayName": "John Doe",
"Department": null,
"JobTitle": null
}, {
"DisplayName": "Mary Jane",
"Department": null,
"JobTitle": null
}]
In the next step, this field value inserted in Excel.
What I need is to join in one string only DisplayName values separated by a semicolon, like: "John Doe, Mary Jane"
I am able to get DisplayName value using index numbers:
triggerBody()?['Employees'][0]?['DisplayName']
// returns: John Doe
I can also concatenate several array indexes, but I don't know in advance how many elements will be in an array.
How can I join values from an array using expressions (formulas) only? Maybe some additions to join function will help? I tried the next one, but it didn't work
join(triggerBody()?['Employees']?['DisplayName'], ';')