cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marial16
Post Partisan
Post Partisan

Populate Default selected items Email field Dataverse

Hallo,

i have an app connected to a table in dataverse. I have created a Column (Email).

 

in the application form i added a combo box in the datacard and set the Items to  Office365Users.SearchUser({searchTerm:ComboBox2.SearchText,top:100})

 

I want to display a specific email hard coded and i am not sure what to add in the Default or Default selected Items.

 

if i chose {Mail: "demo@test.com"} it shows no value.

 

Any ideas on  how to write this?

1 ACCEPTED SOLUTION

Accepted Solutions

i removed the DisplayName from the advanced options and i just used 

 

{Mail: "demo@test.com"} and it worked

View solution in original post

5 REPLIES 5
zmansuri
Super User
Super User

Try this in the DefaultSelectedItems:

 

{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & "abc@gmail.com",
DisplayName: "DisplayName of the Person",
Email: "abc@gmail.com",
JobTitle: "",
Picture: ""
}

i am not using SharePoint. I use dataverse

jbrit2020
Continued Contributor
Continued Contributor

Is demo@test.com an existing record? if not, you wont be able to do this i believe. When there's already a datasource associated the combobox will only accept as a default value any values that exist on the associated table.

 

i removed the DisplayName from the advanced options and i just used 

 

{Mail: "demo@test.com"} and it worked

Hi @marial16 :

Thanks for your feedback.Glad to hear that you solved this problem.

Please consider mark your solution as a 'solution' to help others.

Best Regards,

Bof

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,036)