I have the following Flow that runs a report of Field trips from Sharepoint lists and then emails an HTML table (see Flow-overview.PNG)
I am then trying to do 2 things which are not working:
I'm trying to use substitute to separate out people's names from a long string that looks like this:
Joe Louis ; WARREN SMITH; Timothy Idesfelt ; Thomas Jones; * *
I would like it to look like: Joe Louis, WARREN SMITH, Timothy Idesfelt, Thomas Jones
My code looks like this and is not working at all:
<td>& " Substitute(Substitute(Substitute(@{items('Apply_to_each_2')?['officers']},";",""),"* *","")," "," ")" &</td>
The 2nd thing I am trying to achieve is to format the status cell with a red background and bold white font color IF the value of status is equal to Pending - this the code I have for that one:
<td & if equals item()?['@{items('Apply_to_each_2')?['status/Value']}'],'Pending',style=''background-color:red; color:white; font-weight:bold''','')>@{items('Apply_to_each_2')?['status/Value']}</td> see Flow-detail.PNG as well
any assistance greatly appreciated thank you