Currently having a little trouble taking data from an excel sheet from my organization and converting it to a formatted list as requested. The below is part of an email blast for 500+ users and we need to take the data in the Excel by grabbing the values and create a formatted list of Funds and Clients underneath. Notice that the Clients are separated by a ";" and so I tried to create a compose and add the function replace(outputs('Compose'),';','<br>') but this doesn't seem to have worked as expected.
Is there a better way to add all these Funds/Clients via Power Automate? Some of the excel columns are empty so I do not expect data to populate.
Below is the table being read from the excel sheet:
|Fund 1||Clients in Fund 1||Fund 2||Clients in Fund 2||Fund 3||Clients in Fund 3||Fund 4||Clients in Fund 4|
|Email1||Fund 1||Client 1;Client 2;Client 3||Fund 2||Client 1; Client 2;Client 3||Fund 3||Client 1||Fund 4||Client 1;Client 2|
|Email2||Fund 1||Client 1||Fund 2||Client 1; Client 2;Client 3||Fund 3|
|Email3||Fund 1||Client 1;Client 2||Fund 2||Client 1||Fund 3||Client 1; Client 2;Client 3||Fund 4||Client 1;Client 2|
Below is the output that should go in the body of the Email:
Do let me know what i should do. Your Help is appreciated
Currently the maximum number of Funds is 14, I only put limited amount here as an example.
Do know Rows may have anywhere between 1 to 14 funds so not all columns will be full for each email.
Thanks for your quick reply.
What you need is filter the excel by each fund. Collect the the results and append to an array. Finally get the results into email.
See below blog about how to filter excel rows.
If you need any further help please let me know.
I am not sure how filtering the results will help into convert the variables in each row into a list.
Apologies I just started working on Flows so i am fairly new on what needs to be done. Could you possibly further explain how i would be able to add them to an array and convert them into the organized list shown?
If possible i would like to limit a screen share as there is sensitive info in the actual excel. Please let me know how i can elaborate the above as i would like to get this done. Id be happy to provide more detail
Each row in the excel sheet is an Email that is being sent out. I am current reading the values from the excel using List of Rows Present in Table then i am applying to each by using Send an Email V2.
The issue here is that each excel row has a max of 14 Funds but x number of clients. I need a function/formula or some way to turn the list of Clients in Fund # into a bullet list for the email. As you can see the Clients are seperated by a semicolon ";" and the number of Funds and clients varies by row so it wont always be the same set. All other values like email are already defined.
See image here of my current flow https://ibb.co/wRRYNVX
Try the below
Above expressions are as follows:
Add another IF statement for next Fund2,3,...etc and so on.
Finally add the below step
Thanks for that. Unfortunately I am still having errors. A few things to note
The condition always comes out False so I had to move everything to the No side. When it goes through the flow it stores the variable stores information from the previous row and adds it to each email instead of just grabbing the Fund for that row.
Thanks. Your help is appreciated
You must have some spaces coming out from Excel cells. So try the Trim$() function to eliminate the trailing spaces. Don't understand how it gets from the previous row which you mentioned. For each iteration the dynamic value should refer to the current row.
If you could mock another flow without showing your real data (Take a copy of the current excel sheet and change the data) I could help you via screen share.