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
});