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 / Getting a link to a fl...
Power Automate
Unanswered

Getting a link to a flagged email

(1) ShareShare
ReportReport
Posted on by

Hello all- 

The sample Flow "Create planner tasks for flagged emails in Office 365" creates a Planner task from a flagged Outlook email. I'm looking for a way to grab the URL of the flagged email in outlook and place that in the body of the Planner task, so I can reach the email and its associated conversation with one click. Is there a way to do this? 


Thank you!

Categories:
I have the same question (0)
  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Sorry for there is no any way to achieve the requirement in Microsoft flow currently.

     

    Best regards,

    Alice       

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • efialttes Profile Picture
    14,756 on at
    Hi
    Would the following workaround match your requirements? I am running a flow that is triggered when an email is flagged and:
    -cretate the task in planner
    -archive the email in sharepoint (.eml extension)
    -adds it as a link to the planner task
    Hooe this helps
  • Community Power Platform Member Profile Picture
    on at

    Hi, yes, I think this would work!!

  • efialttes Profile Picture
    14,756 on at

    @Anonymous 

    The good news is that I have the suggested workaround up and running since beginning of this month. If you find any issues implementing it please let us know

    In this link you will find an example of how can you archive an email in .eml format (please refer to method#1):

    https://www.enovapoint.com/blog/post/2-ways-to-autosave-emails-to-sharepoint-online

    Happy Flowing!

     

  • bradcannell Profile Picture
    5 on at

    Hi @Anonymous ,

     

    I was trying to do something similar. I think I managed to figure out a work around that may or may not meet your needs. 

     

    1. Use the When a new to-do in a specific folder is created (V2) trigger to create a new to-do in your Flagged Emails to-do list.

    Screen Shot 2022-10-02 at 8.13.30 AM.png

    2. Use Get my profile (V2) to get your profile (if you want to assign the task to yourself).

    3. Use Initialize variable to create a string that will hold the link when we parse from the JSON below. I'm naming my string variable linkToEmail.

    Screen Shot 2022-10-02 at 8.18.46 AM.png

    4. Parse the body dynamic content from the trigger step using a Parse JSON step.

    Screen Shot 2022-10-02 at 8.22.08 AM.png

    Here is the schema I used. I may work for you as well.

    {
     "type": "object",
     "properties": {
     "@@odata.context": {
     "type": "string"
     },
     "@@odata.etag": {
     "type": "string"
     },
     "importance": {
     "type": "string"
     },
     "isReminderOn": {
     "type": "boolean"
     },
     "status": {
     "type": "string"
     },
     "title": {
     "type": "string"
     },
     "createdDateTime": {
     "type": "string"
     },
     "lastModifiedDateTime": {
     "type": "string"
     },
     "hasAttachments": {
     "type": "boolean"
     },
     "categories": {
     "type": "array"
     },
     "id": {
     "type": "string"
     },
     "linkedResources@odata.context": {
     "type": "string"
     },
     "linkedResources": {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "webUrl": {
     "type": "string"
     },
     "applicationName": {
     "type": "string"
     },
     "displayName": {
     "type": "string"
     },
     "externalId": {
     "type": "string"
     },
     "id": {
     "type": "string"
     }
     },
     "required": [
     "webUrl",
     "applicationName",
     "displayName",
     "externalId",
     "id"
     ]
     }
     },
     "body": {
     "type": "object",
     "properties": {
     "content": {
     "type": "string"
     },
     "contentType": {
     "type": "string"
     }
     }
     }
     }
    }

    5. Add the webUrl dynamic content from step 4 to the string variable you created in step 3. Even though there is only one URL, it is stored in an array. So, we have to "loop" through the array and convert it to a string that we can use in the body of the planner task.

    Screen Shot 2022-10-02 at 8.23.45 AM.png

    6. Create a new planner task using a Create a task step. As you can see, I'm grabbing the title from the trigger and I'm assigning it to myself using the returned value from step 2.

    Screen Shot 2022-10-02 at 8.26.38 AM.png

    7. Add an Update task details step. Use the ID dynamic content from step 6 as the input value to the Task ID field. Add the variable containing the URL you created in steps 3/5 to the Description field. 

     

    8. (Optional) Delete the to-do item created by the trigger using a Delete to-do (V2) step. I don't new a to-do item and a planner task.

    Screen Shot 2022-10-02 at 8.32.37 AM.png

    Warning: Step 8 will also remove the flag from the email. I haven't figured out a way around this, but for me this ins't a dealbreaker. 

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard