cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mmattar
Level: Powered On

patching person or groups

Hello everyone,

 

I searched for a solution to this and i could not find what i need. i need to patch a person to a SP list, but based off a combobox input, i got this so far, ive tried other variations as well and i cannot seem to get it. The "claims" is where the error is coming from.

 

thank you 

 

InitiativeRepresentative: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpanderUser",
Claims: "i:0#.f|membership|" & "DataCardValue112.SelectedItems.Email",
Department: "",
DisplayName: DataCardValue112.Selected.DisplayName,
Email: DataCardValue112.Selected.Email,
JobTitle: "",
Picture: ""
},

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: patching person or groups

Hi @mmattar,

Can you share a bit more about your issue ?

Can you show me the details about the error info ?

Does InitiativeRepresentative column allow single selection?

 

DataCardValue112.SelectedItems.Email produce a table value .

4.PNG

 

Set OnSelect property of the button to :

Patch(test3,Defaults(test3),{TitleSmiley Very HappyataCardValue3.Text,
InitiativeRepresentative:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|"&DataCardValue4.Selected.Email,
Department:"",DisplayNameSmiley Very HappyataCardValue4.Selected.DisplayName,EmailSmiley Very HappyataCardValue4.Selected.Email,JobTitle:"",Picture:""}}) 

You can change “DataCardValue112.SelectedItems.Email”to “DataCardValue112.Selected.Email”and check if it is solved.

 

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support Team
Community Support Team

Re: patching person or groups

Hi @mmattar,

Can you share a bit more about your issue ?

Can you show me the details about the error info ?

Does InitiativeRepresentative column allow single selection?

 

DataCardValue112.SelectedItems.Email produce a table value .

4.PNG

 

Set OnSelect property of the button to :

Patch(test3,Defaults(test3),{TitleSmiley Very HappyataCardValue3.Text,
InitiativeRepresentative:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|"&DataCardValue4.Selected.Email,
Department:"",DisplayNameSmiley Very HappyataCardValue4.Selected.DisplayName,EmailSmiley Very HappyataCardValue4.Selected.Email,JobTitle:"",Picture:""}}) 

You can change “DataCardValue112.SelectedItems.Email”to “DataCardValue112.Selected.Email”and check if it is solved.

 

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mmattar
Level: Powered On

Re: patching person or groups

that is weird, i did just this yesterday as part of the different variations i tried. It worked now though, thank you so much.

 

If i can, ask if how can i patch in and read a "toggle control". part of my form i have a user either toggle a on or off to allow them to enter in a date. When i toggle it on and patch, in my SP list, it shows the toggle value still as "No". Do you know maybe why? 

 

in the patch i have the toggles as so:

Dev_Wanted_Check: DataCardValue43.Value

ACC_Wanted_Check: DataCardValue44.Value

Prod_Wanted_Check: DataCardValue45.Value

Client_Sw_Check: DataCardValue46.Value

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 87 members 4,152 guests
Recent signins:
Please welcome our newest community members: