Good day,
My flow runs on email attachments if they have the words confirmation or nomination in them. Saves the attachment in a folder named after part of the attachment name.
eg1. 21141202SING - AQUARIUS CONFIDENCE Confirmation.pdf saved in folder 21141202SING - AQUARIUS CONFIDENCE
eg 2. 21141402OPL - DAY Nomination.pdf saved in folder 21141402OPL - DAY
I am struggling to remove the words confirmation or nomination (or any words past that) from the folder name
I have tried using
first(split(variables('varAttachmentName'), 'Confirmation'))
but the flow just seems to run indefinately
i have also tried using
replace(outputs('Compose_2'),'Confirmation',' ')
but the flow doesnt want to replace "confirmation" with a blank value
any help?