cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RameshMukka
Post Prodigy
Post Prodigy

Generate hyperlink to Shared Mailbox Email and reference in planner task

I am triggering a flow when a new email is arrived in a Shared mailbox and creating a planner task accordingly. I would like to generate a hyperlink to the email which triggered the flow and add it as a reference to the planner task. 

 

I have followed below wonderful article for Outlook personal mailbox and it worked like a charm but the same solution for Shared Mailbox isn't working. Can someone please help with the solution?

 

https://c11n.space/2020/01/attach-outlook-email-to-planner-tasks-via-power-automate/#:~:text=Microso... 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @RameshMukka 

 

Thank you very much for reply.

 

According to your further queries, they all focus on ‘update task details’.

1.Can you show me your uriComponent Formula?

 

Yes, here is the details for my ‘update task details’ action.

In ‘reference resource’ area, I input as below(you could refer the article you found before):

  • uriComponent(outputs('Create_a_task')?['body/id'])

The whole expression in reference resource area is:

v-duann-msft_0-1611907412334.png

 

 

It comes from my email URL. That’s how I get this resource link:

Open O365 mailbox on the web and select any of your emails.

v-duann-msft_1-1611907412339.png

 

Then I realize there is a fixed format for each email. In my case, the text between ‘id/’ and ‘%3D’ is the uri of this message.

https://outlook.office.com/mail/inbox/id/AAQkAGI5ZDk5NjdlLTEzMWEtNGI5MC04MmMxLWFmNzg3ZWVmN2I3ZQAQAFP...

2.Are you open email from planner without problem?

Yes, I can open with no problem. I tested on it many times.

 

Thanks

Anna

View solution in original post

4 REPLIES 4
v-duann-msft
Community Support
Community Support

Hi @RameshMukka 

 

Thank you very much for posting.

 

Accordingly to your description, you would like to create tasks based on received email in mailbox. It works fine for user mailbox but it failed with a shared mailbox.

 

Actually, I tried two types of mailbox and it works with no problem.

Here is my flow:

v-duann-msft_0-1611825520802.png

 

 

v-duann-msft_1-1611825520806.png

 

 

My tasks are created successfully.

v-duann-msft_2-1611825520810.png

 

 

 

Please kindly check and reply me if any confusion.

 

Hope the content above may help you.

 

Thanks

Anna

@v-duann-msft Thank you so much for looking into it.

 

1. Can you show me your uriComponent Formula?

2. Are you open email from planner without problem?

 

Thanks,

Ramesh

Hi @RameshMukka 

 

Thank you very much for reply.

 

According to your further queries, they all focus on ‘update task details’.

1.Can you show me your uriComponent Formula?

 

Yes, here is the details for my ‘update task details’ action.

In ‘reference resource’ area, I input as below(you could refer the article you found before):

  • uriComponent(outputs('Create_a_task')?['body/id'])

The whole expression in reference resource area is:

v-duann-msft_0-1611907412334.png

 

 

It comes from my email URL. That’s how I get this resource link:

Open O365 mailbox on the web and select any of your emails.

v-duann-msft_1-1611907412339.png

 

Then I realize there is a fixed format for each email. In my case, the text between ‘id/’ and ‘%3D’ is the uri of this message.

https://outlook.office.com/mail/inbox/id/AAQkAGI5ZDk5NjdlLTEzMWEtNGI5MC04MmMxLWFmNzg3ZWVmN2I3ZQAQAFP...

2.Are you open email from planner without problem?

Yes, I can open with no problem. I tested on it many times.

 

Thanks

Anna

Kristen5491
New Member

Help!! I am having this same problem.  I followed the directions posted in the solution and everything is working except the hyperlink to the email only links to the inbox, not the actual email.  I want the hyperlink to go to the email instead of the inbox.  I originally used the article that the first poster used and was able to do this with an individual mailbox, but as the first poster mentioned, it didn't work for a shared mailbox.  

 

I followed the instructions here and everything is working beautifully except it does not link to the actual email, only the inbox.  Please help?!?!?

 

Flow below, and my reference resource link:

 

https://outlook.office.com/mail/inbox/id

uriComponent(outputs('Create_a_task')?['body/id'])
%3D

 

Kristen5491_1-1645724125750.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,046)