Hi all,
Not sure what happened to my last post but it seems to have not been posted. Anyway this is my second attempt.
I am trying to check for the same record (First name, Last name and email) in Compose outputs.
I have some data here as an example and as you can see 'Jane Tonkin' appears twice in the results:
[
"Jane,Tonkin,jane@gmail.com",
"John,Bravo,john@gmail.com",
"Ben,Simons,ben@hotmail.com",
"Jane,Tonkin,jane@gmail.com"
]
My flow current has an 'Apply to each' where it will check each record from the results and then a function to split each record.
Example of Jane Tonkin record when split:
[
"Jane",
"Tonkin",
"jane@gmail.com"
]
I have then used a formula to determine which line of the split record I would like to use. So if I wanted to use the First name of the split record, it would be something like this:
replace(split(variables('recordLine'),',')[0],'"','')
As mentioned in the beginning of this post, I need to determine whether Jane's record has the same record (more than once) in the Compose output results above. I'm thinking I could create an expression/formula that would search for Janes First name, Last name, email (in the Compose output results) and then show how many times that record occurs. This also needs to be dynamic because it needs to check for multiple records that may have the same result.
Off topic but I have used something similar to iterate through a set of outputs and check for false (credit to @grantjenkins ).
Example:
length(xpath(xml(json(concat('{"root": { values:', outputs('compose'), '}}'))), '//root/values[normalize-space(iio_answer)="false"]'))
I'm hoping someone can help me write this as it's a little out of my league.
Thank you in advance !!