Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Create a record with ownerid mapped in relationship

Posted on by Microsoft Employee

Hello,

I've mapped the field ownerid on a N:1 relationship on my entity.

It works fine, it affects well the ownerid, owneridtype, owningbusinessunit. And in the PrincipalObjectAccess, there is no record.

But why if i don't map the ownerid and i just create a new record, a record is created in the PrincipalObjectAccess table, do you know why ?

Is-it permit to map the ownerid ?

Thanks,

Sebastien

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create a record with ownerid mapped in relationship

    Hi,

    1) parental

    2) from parent record

    3) f i map ownerid from parent to my entity, there is no new record in POA. If i don't map the ownerid, there is a new record insert in POA, and i understand why these difference ?

  • Suggested answer
    Tushar2016CRM Profile Picture
    Tushar2016CRM 1,130 on at
    RE: Create a record with ownerid mapped in relationship

    HI ,

    Mapping only will work if you create the records from the parent entity and thus you might not be seeing this behaviour when your creating the records directly as the ownerid is not copied over from previous screen .

    Thanks

  • tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: Create a record with ownerid mapped in relationship

    Hi,

    There can be quadrillion reasons for such behaviour, you have to be more specific:

    1) what is the behaviour of this relationship  - Parental/Referental/Cascading?

    2) how are you creating the related record? From parent record or somehow independently?

    3) what says this POA record? For which object it was created, with what AccessRightMask, InheritedAccessRight, what is the PrincipalId?

    Maybe provide some screenshots to make it easier to understand what you are doing

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans