Hello community,
I am quite new to Power Automate Workflow builds and some times I am struggling with my thoughts 🙂
Maybe you can help me out with the following automation: An E-Mail comes in with the following structure
E-Mail Header (to trigger the automation) |
+++ The header of a story is provided within three plus symbols (+) +++ After the word wrap, the text area begins with multiple words and multiple lines of text. |
Is it possible to filter the text in between the "+++ " and " +++", to save this text as "Headline" for a word press post and the rest of the text as "Text part" for the same word press post?
I tried with compose and "replace()" but this does not solve the "extracting" and separation of the two text items within the body of the e-mail.
Solved! Go to Solution.
Hi @Tobias_S ,
Do you mean you have emails sent in with below structure?
If so, please see below flow that I made for the test:
split(replace(outputs('Html_to_text')?['body'],variables('enter'),''),'+++')
Test result as follows:
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @Tobias_S ,
Do you mean you have emails sent in with below structure?
If so, please see below flow that I made for the test:
split(replace(outputs('Html_to_text')?['body'],variables('enter'),''),'+++')
Test result as follows:
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Thank you for your support, @v-jefferni
I tried to re-build your proposed workflow but unfortunately I get stuck 😞 in the beginning I got the notice about mismatching in "String" and "Array"...so I tried also to copy your workflow one by one.
I still get an error message.
Hi @Tobias_S ,
The enter variable is for get the string of "New line" so you need to input the Enter on your keyboard. Leave it blank will get the error because string variable could not be null.
Hope this help.
Best regards,
Jeffer Ni
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Sometimes you cannot see a tree while standing in the forest. That's why I love coding 😄 Result: Now it's working 🙂 thank you @v-jefferni