Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Planner task with attachments from Channel Message

(0) ShareShare
ReportReport
Posted on by

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

 

  • pontyfractbooks Profile Picture
    2 on at
    Re: Planner task with attachments from Channel Message

    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.

  • Community Power Platform Member Profile Picture
    on at
    Re: Planner task with attachments from Channel Message

    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']

  • v-bacao-msft Profile Picture
    on at
    Re: Planner task with attachments from Channel Message

     

    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
    on at
    Re: Planner task with attachments from Channel Message

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

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Planner task with attachments from Channel Message

     

    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,

  • ChristianAbata Profile Picture
    8,947 Most Valuable Professional on at
    Re: Planner task with attachments from Channel Message

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

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >