I have a flow set up to create a planner task from an email that comes into my inbox. It creates the task just fine, but it titles the task as the subject of the email where I want it to title the task based on certain text in the body of the email.
Here is my currently flow:
The body of the email that comes in looks like this:
I want the title of the Planner task to be whatever is after the first sentence (ending in "safe.") but before the email signature which starts with ("---").
So in this case - the task that is created in Planner from this flow should be called "Coca-Cola".
Thanks in advance for your help!
Below is the body of the email:
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Sent using the Google Assistant
@dshipley here you have friend
I made this solution to be dinamic, so no maters what you have before --- you are going to be able to get it.
Hope this can helps
Thank you so much for the quick response. I am getting the following error, however:
Unable to process template language expressions in action 'Compose_2' inputs at line '1' and column '2877': 'The template language expression 'uriComponentToString(replace(uriComponent(outputs('Get_Title')),'%0A',''))' cannot be evaluated because array index '1' is outside bounds (0, 0) of array. Please see https://aka.ms/logicexpressions for usage details.'.
Could you help?
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
Check out the community blog page where you can find valuable learning material from community and product team members!