Hi all,
Right now i have one Combo box with one selected item which is an employee and two tables where you can choose company and in the other table you can choose department. I have already made one with only "company" as a table, but when i try to filter with the two different tables i just cant get the formula to work.
ForAll(List_Company.SelectedItems.'Company Name',
Patch('Utility_Sec.Company',
Defaults('Utility_Sec.Company'),
{
UserPrincipal:Combo_User_Comp.Selected.UserPrincipalName,
Name:Combo_User_Comp.Selected.DisplayName,
Company:'Company Name'
}
)
this is the code for "company" only and it works
ForAll(List_Company_Dept.SelectedItems.'Company Name',
Patch('Utility_Sec.Department',
Defaults('Utility_Sec.Department'),
{
SecurityUserPrincipal:Combo_User_Dept.Selected.UserPrincipalName,
Name:Combo_User_Dept.Selected.DisplayName,
Company:'Company Name'
}
)
);
ForAll(List_Department.SelectedItems.'Department Code',
Patch('Utility_Sec.Department',
Defaults('Utility_Sec.Department'),
{
DepartmentCode:'Department Code'
}
)
)
and this is the code i tried for "company" + "department" any suggestions how i get it to work?