I have created a flow that saves attachments from incoming emails with specific filenames. For the filename, I've implemented an expression to extract the desired name. However, it's saving the file with unnecessary additional content, such as
(trim(slice(triggerOutputs()?['body/body'], add(indexOf(triggerOutputs()?['body/body'], 'Brand:'), 6), add(add(indexOf(triggerOutputs()?['body/body'], 'Brand:'), 6), indexOf(slice(triggerOutputs()?['body/body'], add(indexOf(triggerOutputs()?['body/body'], 'Brand:'), 6)), 'Campaign:')))))
but its saving the file with some un-nessary thing that is Defined filename__span___strong___p___td___tr__tr__td style=_border_solid black 1.0pt; border-top_none; padding_.75pt .75pt .75pt red highlighted things are getting extra.
Despite my attempts to remove this extra content using string functions, the issue persists.