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 / Patching attachments t...
Power Apps
Unanswered

Patching attachments to Sharepoint

(0) ShareShare
ReportReport
Posted on by 12

Hi Team,
I have 2 collections in PowerApps called Sketches and Photos which are storing the signature from pen control and photos from Camera control and I want to patch these to the Attachment column of Sharepoint list but Whenever I'm trying to add a code for attachments I'm getting an error "the type of this argument '{Attachments}' does not match the expected type 'Table (Attachment)'. Found type 'Table'." Please help me resolve this issue
My code:

Patch('Meeting Details',Defaults('Meeting Details'),{
 Title: SelectedMeeting.Subject,
 MeetingDate: Text(
 SelectedMeeting.Start,
 "[$-en-US]mmm. dd, yyyy"
 ),
 StartTime:Lower(Text(
 SelectedMeeting.Start,
 "[$-en-US]mmm. dd, yyyy"
 )),
 EndTime:Lower(
 Text(
 SelectedMeeting.End,
 "[$-en-US]hh:mm am/pm"
 )
 ),
 MeetingMinutes:Text(SelectedMeetingDuration / 60),
 MeetingAttendees: Concat(MeetingAttendees,DisplayName,"; "),
 MeetingAttendesPeople:colAttendeesProfile,
 MeetingDetails:MeetingBody.HtmlText,
 Notes:Substitute(
 NotesInput.Text,
 Char(10),
 "<br/>"
 ),
 PlannerId: SelectedPlan.id,
 BucketId:SelectedBucket.id,
 TaskDueDate:AssnTaskDueDate_2.SelectedDate,
 MeetingID:SelectedMeeting.Id,
 TaskDescription:AssnTaskDescription_2.Text,
 '{Attachments}':colSketches
 
 
 
 });


 

Categories:
  • VishalJhaveri Profile Picture
    1,169 Moderator on at

    Commenting to follow the question and to know the answer.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @SayaliD ,

     

    Using Patch function to update SP list Attachments column is not supported. You need to create a flow, send file contentBytes and filename to it, add attachment to an item. Please refer to the video below:

    Power Apps SharePoint List Attachments | Save Camera Pictures, Pen Input & Images (youtube.com)

     

    Best regards,

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @SayaliD 

     

    this is the most easiert way to patch attachments to sharepoint lists without issues. please be carful and use the curly braces right, otherwise its not working.

     

    PowerApps - Patch attachment to SharePoint list (youtube.com)

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard