Dears,
I have a collection with 2 columns. It looks something like this
How can i patch each of this Assessment Type as a new Item in a sharepoint list. I am trying to use the following code but i am getting this error: the type of this argument 'Assessment' does not match the expected type record found type text
Set(
ContainerVisible,
false
);
ForAll(
Collection2.AssessmentType2,
Patch(
'Assessment Tracker',
Defaults('Assessment Tracker'),
{Assessment: ThisRecord.AssessmentType2}
)
)
Please note that in my sharepoint column "Assessment" column is a choice column which allows custom inputs
Thanks !!
Solved! Go to Solution.
Try this one:
ForAll(
Collection2,
Patch(
'Assessment Tracker',
Defaults('Assessment Tracker'),
{Assessment:
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: AssessmentType2
}
}
)
)
Try this one:
ForAll(
Collection2,
Patch(
'Assessment Tracker',
Defaults('Assessment Tracker'),
{Assessment:
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: AssessmentType2
}
}
)
)
@Adrian_Celis thank you ! i did not know about this. For anyone who needs more information on what exactly this is please refer this link
http://powerappsguide.com/blog/post/sharepoint-applying-patch-to-the-6-complex-data-types
cheers !!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
185 | |
51 | |
47 | |
32 | |
32 |
User | Count |
---|---|
258 | |
89 | |
78 | |
67 | |
67 |