Hello,
I have to create a flow where at email receive with {} brackets in the subject, they have to be replaced with [] brackets but to not triger when there's {Support}. Let's say the email subject is {Hello there}, the {} brackets have to be replaced with [Hello there] but if it's {Support}, no action should be taken. I'm a newbie and I'm totaly lost and I'll be grateful for any help. Thanks in advance!
Hello,
Please tell me if I should post a new topic or something?
Please help me with the last step. To clarify - now, with this flow, I'm sending an email with subject {whatever} and nothing happens. I'm missing the last step where an email with replaced {} brackets to [] brackets should be sent to a certain mailbox.
Thank you!
While I'm waiting for the answer I decided to test it with a Teams chat instead of email becouse I don't know what to put for a subjekt as you can see in my previous post. The bad thing is it skips the "Set variable" action and the "Post message in a chat or channel" action. I sent an email with subject {Sys}. It doesn't fail but it's just skipped.
Now it have to send an email with the replaced charaters subject to a certain email. What I shold put in the Subject field here:
It should send the fixed email (with the {} replaced) to a certain email.
Ah, yes, it saves now, thank you a LOT!
Hi @Mozo78 !
The "Replace {} with []" action is a "Set variable" action not "Initialize variable" action. Hence the error occurs since you cannot use initialize variables in a loop.
Please use this action:
Hello,
Now I can try and it gives me this error:
Flow save failed with code 'InvalidVariableInitialization' and message 'The variable action 'Replace_{}_with_[]' of type 'InitializeVariable' cannot be nested in an action of type 'Condition'.'.
The condition is this:
It gives me this error even with your example:
Here's a screenshot of the problematic component:
Hey @Mozo78
Hope the previous condition will work. When you are available just Try once. Let me know if you face any issues.
------------------------------------------------------------------------------------------------------------------------------
Thanks,
Sayan Patra | RPA Developer
Thank you very much, you're great!
I'm talking somewhat blindly for my boss is at vacation and I can't try it in the moment, accept my sincere excuses.
Will it work with my condition I posted earlier?
Hey @Mozo78
Then also this whole solution will work just you need to change the condition.
------------------------------------------------------------------------------------------------------------------------------
if my suggestion helps you, please gives it a Thumbs up 👍 and Marks as a Solution ✔️. Which motivates to solve more problems.
Thanks,
Sayan Patra | RPA Developer
------------------------------------------------------------------------------------------------------------------------------
Ah, and I just saw it - the subject will never start with { or ends with }. The brackets will be somewhere in the subject text.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492