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

Announcements

News and Announcements icon
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 Microsoft Employee

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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard