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 Apps / Include Attachment Com...
Power Apps
Unanswered

Include Attachment Comment with Attachment Upload

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I managed to get the attachment to load to the library with the following.

How do I include the attachment comments to the same attachment item on upload. My attempt kicks back and error.

Phineas_1-1695652594613.png

 

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @Phineas , I am sure you must have used Shane Young video for this feature: https://www.youtube.com/watch?v=3QaiM8SeWfM

     

    So, in order to add a comments, you can do one thing by modifying your flow.

    Frist, please get the comments as 3rd input parameter of your Flow of type text as shown below,. I hope you are using PowerApps (v2) trigger.

    ANB_1-1695657002327.png

     

    Then once Create File action in your flow is done, please add below action Update file properties, which will take the Items Id as dynamic field from Create file action.

    ANB_0-1695656943493.png

    And then add the comments from the flow trigger. So with this you will add the comments also to your file with flow itself.

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,
    ANB

  • Phineas Profile Picture
    5,331 Moderator on at

    My flow now looks like the following, but I am getting an error.

    Error: Flow.Run failed - Request did not match is schema definition. Required properties are missing from object:
    Updatefileproperties_Attachment_Comments,
    Updatefileproperties_Document_Name,
    Updatefileproperties_Client_ID

    Phineas_1-1695658923216.png

     

    Phineas_0-1695658478323.png

     

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @Phineas , I see that you havent pass the comments as 3rd parameter in your flow. Please add TextInput1_3.Text as your 3rd input parameter in flow.

     

    And please do not update any other columns in Update File properties. You just need to update the Comments column.

     

    Donot update Client_ID and Document_Name as it is already taken in previous action.

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,
    ANB

     

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @Phineas , I mean use this

     

    Set(varFileLink, Upload_Client_Drivers_License_Flow.Run(Last(Client_Attachments_Control_2.Attachments).Name, varBase64Only,TextInput1_3.Text).sharepointfilelink);

     

    Considering that TextInput1_3.Text is the control which hold comments.

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,
    ANB

  • Phineas Profile Picture
    5,331 Moderator on at

    Same error -

    Also, I found the ability to use Power Apps (V2). This option doesn't allow me to select the 'Ask Power Apps' for the file name or file content.

    Phineas_0-1695663381661.png

     

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    HI @Phineas , I see 2 screenshot, In one there is error and in 2ndi don't see the error. Can you confirm if it is working or not. 

     

    Thanks,

    ANB

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    HI @Phineas , Change the order of input parameter as below:

     

    Set(varFileLink, Upload_Client_Drivers_License_Flow.Run(TextInput1_3.Text,Last(Client_Attachments_Control_2.Attachments).Name, varBase64Only).sharepointfilelink);

     

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,
    ANB

  • Phineas Profile Picture
    5,331 Moderator on at

    I was trying to capture the error red so you can see where it appears. One view would let me the other wouldn't, so I provided both.

    As stated, I found the V2 trigger, but it won't let me make the 'Ask Power Apps' default selections (circled below) the other Power Apps trigger does.

    Phineas_4-1695666264802.png

     

     

    Phineas_2-1695666054302.png

     


    No matter the order, the edited Set(varFileLink...) returns an error.

    Set(varFileLink, Upload_Client_Drivers_License_Flow.Run(Last(Client_Attachments_Control_2.Attachments).Name, varBase64Only,TextInput1_3.Text).sharepointfilelink);

     

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @Phineas , 'Ask Power Apps' is applicable for older trigger, with PowerApps (V2), you need to create the parameter as below:

    ANB_0-1695666819200.png

    You will get parameter in Dynamic content section.

    And then use this in PowerApps:

     

     

    Set(varFileLink, Upload_Client_Drivers_License_Flow.Run(Last(Client_Attachments_Control_2.Attachments).Name, varBase64Only,TextInput1_3.Text).sharepointfilelink);

     

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,
    ANB

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @Phineas , 'Ask Power Apps' is applicable for older trigger, with PowerApps (V2), you need to create the parameter as below:

    ANB_1-1695667048969.png

     

    You will get parameter in Dynamic content section.

    And then use this in PowerApps:

     

     

    Set(varFileLink, Upload_Client_Drivers_License_Flow.Run(Last(Client_Attachments_Control_2.Attachments).Name, varBase64Only,TextInput1_3.Text).sharepointfilelink);

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,
    ANB

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard