I would like pre-poulate general managers name in the field 'Werkleiter' which will never change. How can i do that?
Solved! Go to Solution.
Hi @rishimarde
Set the App Onstart of the property to
Set(Userinfo,User());
Set(
UserManager,
With(
{Manager: Office365Users.ManagerV2(Lower(Userinfo.Email))},
{
Claims: "i:0#.f|membership|" & Manager.mail,
Department: "",
DisplayName: Manager.displayName,
Email: Manager.mail,
JobTitle: "",
Picture: ""
}
)
)
Set the DefaultSelectedItems Property of the Combo box to
UserManager
Or (Set manager only when the form is New otherwise existing data)
If(EditForm1.Mode = FormMode.New, UserManager, Parent.Default)
Reference
Thanks,
Stalin - Learn To Illuminate
Hi @rishimarde
Create a collection at the start of the app and set the Items property of the dropdown or combo box.
ClearCollect(AllManagers, {Name: "Sam"}, {Name: "Dan"})
Set items property of the dropdown or combo
Reference
Thanks,
Stalin - Learn To Illuminate
On App On Start write this:
Collect(CollectionManager; {
Manager: {
DisplayName: UtilizadoresdoOffice365.UserProfile(MANAGER EMAIL).DisplayName;
Claims: "i:0#.f|membership|" & Lower(MANAGER EMAIL);
UserPrincipalName: UtilizadoresdoOffice365.UserProfile(MANAGER EMAIL).UserPrincipalName
}
}
)
Write this on Default Selected Itens:
If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!
Best regards,
Gonçalo Nogueira
Check my LinkedIn!
Check my User Group (pt-PT)!
Last Post on Community
My website!
Hi @rishimarde
Set the App Onstart of the property to
Set(Userinfo,User());
Set(
UserManager,
With(
{Manager: Office365Users.ManagerV2(Lower(Userinfo.Email))},
{
Claims: "i:0#.f|membership|" & Manager.mail,
Department: "",
DisplayName: Manager.displayName,
Email: Manager.mail,
JobTitle: "",
Picture: ""
}
)
)
Set the DefaultSelectedItems Property of the Combo box to
UserManager
Or (Set manager only when the form is New otherwise existing data)
If(EditForm1.Mode = FormMode.New, UserManager, Parent.Default)
Reference
Thanks,
Stalin - Learn To Illuminate