cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Penfold623
Helper I
Helper I

Datacard not saving to SharePoint

Help please....

 

I'm having a problem with one of my fields returning data to SharePoint. 

 

Column Type - People

DefaultSelectedItem: If( SharePointForm1.Mode=FormMode.New,{ Value: Office365Users.ManagerV2(User().Email).displayName },Parent.Default)

 

I'm looking to populate the users manager to the list. 

the data loads in the form, but doesn't seem to save back to SharePoint. 

 

Am I missing something/is there a better way to do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Penfold623
Helper I
Helper I

Never mind - I changed my default selected items to:

If( SharePointForm1.Mode=FormMode.New,{DisplayName: Office365Users.ManagerV2(User().Email).displayName,
Claims:"i:0#.f|membership|" & Office365Users.ManagerV2(User().Email).mail,
Department:"",
Email: Office365Users.ManagerV2(User().Email).mail,
JobTitle:"",
Picture:""},Parent.Default)

 

all working 🙂

View solution in original post

2 REPLIES 2
Penfold623
Helper I
Helper I

Never mind - I changed my default selected items to:

If( SharePointForm1.Mode=FormMode.New,{DisplayName: Office365Users.ManagerV2(User().Email).displayName,
Claims:"i:0#.f|membership|" & Office365Users.ManagerV2(User().Email).mail,
Department:"",
Email: Office365Users.ManagerV2(User().Email).mail,
JobTitle:"",
Picture:""},Parent.Default)

 

all working 🙂

shal2522
Helper III
Helper III

I used your code and am getting an error.. I have the same issue.

 

 

If('Inventory List'=FormMode.New,{DisplayName: Office365Users.ManagerV2(User().Email).displayName,
Claims:"i:0#.f|membership|" & Office365Users.ManagerV2(User().Email).mail,
Department:"",
Email: Office365Users.ManagerV2(User().Email).mail,
JobTitle:"",
Picture:""},Parent.Default)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,401)