web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cant put the "from" an...
Power Automate
Answered

Cant put the "from" and "body of the message" from outlook email to show on planner when email is flagged

(0) ShareShare
ReportReport
Posted on by 10

Im using Create planner tasks for flagged emails in Office 365 and I want to show on Planner from who the email is and the body of the message or preview at least...but is always getting an error 400:  "Schema validation has failed. Validation for field 'PlanId', on entity 'Task' has failed: The specified identifier is invalid. Validation for field 'Title', on entity 'Task' has failed: The field cannot be longer than 255 characters. Validation for field 'BucketId', on entity 'Task' has failed: The specified identifier is invalid" HELP?
image1.jpgimage2.jpg

Categories:
I have the same question (0)
  • Verified answer
    eric-cheng Profile Picture
    5,171 on at

    Hi @nandayellow ,

     

    There are a few issues here.  First you have exceeded the 255 character limit.  Second, you also have a bunch of HTML tags from the email body.

     

    Please refer to the below flow.   I have purposely split up the steps into separate actions to make it easier to understand.  

     

    1. Convert the HTML body to text

     

    2. Use concat() to join the from address and email body text  

    concat(triggerOutputs()?['body/from'],outputs('Html_to_text')?['body'])
     
    3. Check the output from step 2 to see if it is 255 characters or more, if so, only get the first 255 characters, otherwise, just pass the entire string
     
    if(lessOrEquals(length(outputs('Compose')),255),outputs('Compose'),substring(outputs('Compose'),0,255))

     

    Please refer to this link for the details of the above formula.

     

    ericcheng_0-1631273761144.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

  • nandayellow Profile Picture
    10 on at

    THANK YOU 😊

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard