
Announcements
Hi All,
I'm new to Patching Dynamics 365 through CDS...... Been trying to work this out for a couple of days now. Hope someone can help here.
I'm trying to change the Owner of a Lead by Patching the item selected in a Gallery using a Lookup to my GUID in the Users Entity , but it just doesn't seem to work and doesn't throw an error. Any assistance greatly welcome as I'm growing old with this one... 🙂 Below is the code:
Patch(
Gallery2_1.Selected,
{
Owner: LookUp(
Users,
User = GUID("12345678-xxxx-yyyy-zzzz-123456789098")
)
}
);
Refresh(Leads)
Hi @Anonymous ,
Could you tell me:
If so, the reason is that the user who replaced the previous user does not have the right to modify this record. You can go to ‘Power Platform admin center’ to modify the permissions of a user .
Here is the URL link: https://admin.powerplatform.microsoft.com/environments
1\ Choose your environment and choose the user without permission.
2\ Give the user a role with this permission (you can also customize a role, and then assign this role to the user)
If not , It may be that there is no record of this GUID value in your ‘user’ table. Please check it.
In addition, you can use Flow to modify the value of the owner field.
Please refer to the following post:
https://powerusers.microsoft.com/t5/Building-Flows/Change-Owner-of-CDS-D365-Record/td-p/640236
If you still have any question ,please dont hesitate to let me know.
Best Regards,
Wearsky