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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Planner task with atta...
Power Automate
Answered

Planner task with attachments from Channel Message

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to create a flow that triggers on a new team channel message and outputs a planner task with any attachments from the message. Anyone know how to do this?

I tried a bunch of different ways, but it keeps failing at the same spot because the contentUrl keeps coming back null and I can't figure out why. screenshots and errors below.

Untitled-1.jpg

 

Untitled-1_error.png

 

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    hi @Anonymous  it looks like you are using equals(Data) and you need to use it like equals(Dada,Data) to compare.

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    I always get contentUrl of the attachment, please check the run history:

    167.PNG

    Please try to check the Files tab and see if the files have stored in SharePoint Library.

     

    Besides, if you can get the file name, we could get the url of file through the file name.

    166.PNG

    Hope this helps.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I ended up combining a few methods along with the name expression and got something that seems to work. thanks!

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    Would you please provide the method in this similar thread for the users who have the same problem as yours?

    https://powerusers.microsoft.com/t5/Building-Flows/Attaching-files-documents-using-Get-file-using-path/m-p/496882#M61791

    Thank you in advance!

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Functioning flow is below - it takes a few minutes for the task to be updated, but it works! expressions are as follows:

     

    flowthatworks.jpg

     

    name - items('Apply_to_each')?['name']

    contentUrl - items('Apply_to_each')?['contentUrl']

  • pontyfractbooks Profile Picture
    2 on at

    Hello,

     

    Thank you for this - I am trying to copy this flow but I get stuck at 'append to array variable' stage.

     

    I am a beginner, and not a coder and do not have an IT background, and I can't find a way to replicate what you have in the 'value' field - please could someone explain to me how to enter it? I cannot see dynamic content named either 'name' or 'contentUrl' - I can see you've posted additional expressions about these beneath the flow but I'm afraid with my level of knowledge I don't understand where to put it/what to do with it. I'd be very grateful for any assistance.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard