Hi,
I am trying to capture the combo box selected item value IDs from two combo boxes in the patch function.
MS Graph and Power BI combo box values are being populated based on the selected items in API Permission drop down.
So first I am selecting the values in the drop down MS Graph and Power BI combo boxes.
There after I am unselecting the values in the MS Graph and Power BI combo boxes
But if combo box items are unselected but still selected value items IDs are being captured.
So in the MS Graph drop down, I have written code snippet as below in the default property
Concat(ComboBoxMSGraph.SelectedItems, Auto_ID , ",")
In the MS Graph combo box, below is the code snippet that has been written
Filter('Permission Lists', 'Resource Name'.Name = "Microsoft Graph")
In the Power BI combo box, below is the code snippet that has been written
Filter('Permission Lists', 'Resource Name'.Name = "Power BI")
Below is the code snippet that has been written, please let me know if I am missing anything here
'Permission Lists': If(
!IsEmpty(ComboBoxMSGraph.SelectedItems),
Concat(
ComboBoxMSGraph.SelectedItems,
Auto_ID,
","
)
) & If(
!IsEmpty(ComboBoxPowerBI.SelectedItems),
","
) & If(
!IsEmpty(ComboBoxPowerBI.SelectedItems),
Concat(
ComboBoxPowerBI.SelectedItems,
Auto_ID,
","
)
)
Result
Regards,
Sudheer