cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

I need to insert the body of an email into Planner task

Hello,

 

I've built a flow to create a Planner task from an email, using the email subject as the title and received time as the task start date.

 

I also want/need to include the body of the email in the task itself.

 

Is there a way to do that other than manually?

11 REPLIES 11
Highlighted
Community Support
Community Support

Hi @Anonymous,

 

Where do you want the email body to be filled in Planner? Here are all the available fields currently in Planner - Create task action:

Capture.PNG

 

If you want to fill the email body in other fields in Planner, you could post this idea in the Flow Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Regards,

Mona Li

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Anonymous
Not applicable

Thanks for the reply.

 

So, I'd like to get the body of the email somewhere into the task, not into the title.

 

The overall Flow I'm trying to build is this: When I receive an email from a specific email address (aircomserver@airnz.co.nz), I want the Flow to create a Planner Task, using the subject of the email as the title of the task, with a start date time of the email receipt date. I've been able to create this much, but have yet to get it to execute consistently. 

 

In addition, I'd like the due date to be automatically generated for 2 days after receipt of the email, and for the body of the email to appear in the task's description field. I've tried to do this by Update Task Details flow step, but it requires the unique ID of the new task, which I don't know how to bring into the flow step.

 

Any help is appreciated.

 

Highlighted

I accomplished this by adding a new action.  For the task ID, I used the dynamic content and clicked "ID" and it worked. 

 

For the description, I clicked the dynamic content "Body" and it filled in the body of the email, almost like you were trying to do.

 

My problem is that it puts the HTML version of the email and not just the text.

Highlighted
Anonymous
Not applicable

Re: HTML, let it run overnight. It may correct itself. A collegue had the same issue, and it resolved over time.

Highlighted

You can convert the HTML body of the email by adding an action and choosing HTML to Text,  then I've been doing another Action to translate that text to english, not sure if helps but then I take and do another action and grab my Planner Task and update the description with the translated text.  

 

Capture.PNG

Highlighted

I'm getting errors with your workflow at the last step: Update Task Details. it seems that the Dynamic Content "Id" is failing. Any tips on how to resolve that?

 

 Screen Shot 2018-01-25 at 11.54.41 AM.png

Highlighted

I don't, strangely I had the same error pop up out of no where. One day I went to show a co-worker how to use flow and I used this one as my example and that error was gone.  I enabled it and it started working.  No idea what changed.  Sorry I can't help there.

Highlighted

Thanks for the quick reply. I found the fix in another thread. It seems a bug was introduced in Flow and now you have to add a "Delay" action between the Task creation step and the Task Details editing step. See this post:

https://powerusers.microsoft.com/t5/Building-Flows/Planner-Get-Task/m-p/79219

Highlighted

NICE! good find.  I'll throw that in mine right now.

Highlighted
Anonymous
Not applicable

I get an error when running update task details:

"Schema validation has failed. Validation for field 'Description', on entity 'TaskDetails' has failed: The field cannot be longer than 32768 characters
 
I am populating the body of the mail in the description.  Is there a way to truncate the body message so it can be less than the character allowance?
 
Also/alternatively, is there a way to create a dynamic link back to the email message.  It would be fine to link to either the webmail or the local client.
Highlighted

Hello I have the same problem, email thread/body should be in planner, but email is too long. Any way to link to email or add email itself as attachment via flow.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,148)