web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combobox patch users t...
Power Apps
Answered

Combobox patch users to SP list not working

(0) ShareShare
ReportReport
Posted on by 4

Hello,

I have so many issues patching a combobox to a SP List for different users. here is the code I'm using, please, any help would be wonderful:

 

Patch(
WPT,
Defaults(WPT),
{
Title: Ti_evento.Text,
'Fecha inicio': dp_fechainicio.SelectedDate,
'Fecha término': dp_fechatermino.SelectedDate,
Unidad: dd_unidad.SelectedText,
Prioridad: dd_prio.SelectedText,
Consultores:
{
Claims:"i:0#.f|membership|"&Lower(LookUp(UsuariosdeOffice365.SearchUser(),
DisplayName=cb_consultor.SelectedItems.DisplayName).Mail),
Email:LookUp(UsuariosdeOffice365.SearchUser(),
DisplayName=cb_consultor.SelectedItems.DisplayName).Mail,
Picture:"",
JobTitle:"",
Department:"",
DisplayName:cb_consultor.SelectedItems.DisplayName,
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser"
}
}
)

 

VOMG

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @At3n3a,

    Do you want to patch multi users from the cb_consultores to the Consultores field?

     

    If so, please modify as below:

    Patch(
    WPT,
    Defaults(WPT),
    {
    Title: Ti_evento.Text,
    'Fecha inicio': dp_fechainicio.SelectedDate,
    'Fecha término': dp_fechatermino.SelectedDate,
    Unidad: dd_unidad.SelectedText,
    Prioridad: dd_prio.SelectedText,
    Consultores:
    ForAll(
    cb_consultor.SelectedItems,
    {
    Claims: "i:0#.f|membership|" & Mail,
    Email: Mail,
    Picture: "",
    JobTitle: "",
    Department: "",
    DisplayName: DisplayName
    }
    )
    }
    )
  • At3n3a Profile Picture
    4 on at

    Works perfectly! Thanks! I really appreciate it!

    Just one question, why did I loose de odata?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard