Hi Leah,
Thanks for providing those links. I just tried the "format data by examples" but it appears that the output I'm getting based on the examples I've supplied is relying on knowing the expected length of the string (event name). This doesn't feel like the correct approach to me, since I'd like to account for events of varying length.
if(equals(length(split(outputs('Compose'), '{')), 2), split(outputs('Compose'), '"')[1], if(equals(length(split(outputs('Compose'), '-')), 2), concat(split(outputs('Compose'), '"')[1], '; ', split(outputs('Compose'), '"')[5], '; ', split(outputs('Compose'), '"')[9], '; ', split(outputs('Compose'), '"')[13]), concat(split(outputs('Compose'), '"')[1], '; ', split(outputs('Compose'), '"')[5], '; ', split(outputs('Compose'), '"')[9])))
Here's more information about the table and the steps of the flow.
The table itself is called "Event Lists" and serves as a database of event lists. The "Name" column is used to name the event. Then there are columns for basic information about attendees, such as First Name, Last Name, Email, and Company. For example, when I receive an Excel spreadsheet that has the list of attendees for Event A 2024, I import that list into this table. Every row in that list is named Event A 2024 and there is 1 row per attendee. This same table stores information from past events, such as Event A 2023, Event A 2022, and so on.
When I import the list, I want to analyze the list to see what previous events the individuals have attended and list them out in a field called Previous Events, so when I am looking at the Event A 2024 list I can see who attends events regularly and who is a first-time attendee. The flow is as follows:
Look to see if that individual's email appears on a previous event list in the table.
Select the Name(s) of the matching events. Could be one or more, depending on what previous events were attended.
Join those event names together, separated by semi-colon
(Details of the Join expression)
Update the record that was added (and triggered the flow) with the list of previous events the individual attended.
I appreciate any advice you can provide. Thank you!