Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch Lookup Fields #2630

Open
jsdanie1 opened this issue Sep 5, 2024 · 0 comments
Open

Patch Lookup Fields #2630

jsdanie1 opened this issue Sep 5, 2024 · 0 comments

Comments

@jsdanie1
Copy link

jsdanie1 commented Sep 5, 2024

How do you properly patch a lookup field. for example, I just want to have a ribbon action that one click assigns a case for users.

Patch(
Accounts,
Self.Selected.Item,
{
'Account Name': Self.Selected.Item.'Account Name' & " Updated",
Owner: {
'@odata.type': "#Microsoft.Dynamics.CRM.systemuser",
systemuserid: "GUID_of_the_new_owner"
}
}
)

But this doesn't seem to do anything and the only example for patching is something stupid basic like updating the Account Name in the Microsoft Documentations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant