web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patching (Update) Dyna...
Power Apps
Answered

Patching (Update) Dynamics 365 Lead through CDS

(0) ShareShare
ReportReport
Posted on by

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)

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Could you tell me:

    • After you press the submit button, will the formula report a permission error? Refer to the picture below:

    v-xiaochen-msft_0-1606883509968.png

     

     

    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.

    v-xiaochen-msft_1-1606883509978.png

     

     

    2\ Give the user a role with this permission (you can also customize a role, and then assign this role to the user)

    v-xiaochen-msft_2-1606883509987.png

     

     

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard