I have an custom entity with a field that lookups to systemuser called Reviewer. I am able to patch other lookup fields on that entity but for some reason I receive an error when I add to update the lookup field to systemuser. See below:
It seems like it wants to update the user record and is throwing an error because I am not including the required field('Access Mode'), but I do not want to update the user record just the lookup value. I find it strange that it works for the other lookups in this same command but get an error on this one.
This is in a canvas app and the Reviewer column is a lookup to the users entity. The combobox had
Items: [@Users]
I am not sure why it did not work but when I changed it to be Choices([@Custom_Entity].Reviewer) it resolved the error. Thank you!
Hi @JohnBrown ,
Could you please share a bit more about the Reviewer column? Is it a LookUp column which references values from the Users Entity?
Could you please share a bit more about the ComboBox_Reviewer? Which formula do you put within the Items property of the ComboBox_Reviewer?
Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:
Set the Items property of the ExternalUser ComboBox to following:
Choices([@TaskLists].ExternalUser)
Set the OnSelect property of the "Submit" button to following:
Patch(
TaskLists,
Defaults(TaskLists),
{
'Primary Name': "PowerApps & Python",
ExternalUser: DataCardValue7.Selected
}
)
On your side, please make sure the Items property of the ComboBox_Reviewer to following:
Choices([@YourEntity].ReviewerColumn) /* <-- ReviewerColumn represents the LookUp column in your Entity */
Then modify your Patch formula as below:
Patch(
YourEntity,
Defaults(YourEntity),
{
...,
ReviewerColumn: ComboBox_Reviewer.Selected,
...
}
)
According to the error message that you mentioned, it seems to tell that there is something wrong with the value you provided for the "Access Mode" column (Option Set type column). Please check if you have provided a proper Option Set value for the "Access Mode" in your Patch formula.
More details about setting a value for a Option Set column, please check the following blog:
Please also check and see if the response within the following thread would help in your scenario:
Best regards,
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1
mmbr1606
9
Super User 2025 Season 1