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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How do i give a permission to create related record from parent record using share functionality?

(0) ShareShare
ReportReport
Posted on by 106

How do i give a permission to create related record from parent record using share functionality?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Jarrod Williams Profile Picture
    1,747 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    So you would have two parts permissions wise.  

    1) Whether or not a user is allowed to create records

    2) Whether or not they have permission to append and append to.  If append and append to on the appropriate entities are set to a restricted level, say user then they would only be able to relate the record to a record they either own or that is shared to them. 

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    Hi Raghav,

    The user should have to have  Create permission at least at user-level on the related entity to create a record and when the record is shared, you have to grant Append privilege so that they can set the parent lookup on the related record.

    ScreenClip-_5B00_710_5D00_.png

  • Raghav Chadha Profile Picture
    106 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    For 1st Can you please let me know how do i modify privilege level for Custom entity in a security role?

    For 2nd Relate means that we can create related record?there are two grids in that entity 1:N and N:N so will i able to create after applying append and append to.?

  • Raghav Chadha Profile Picture
    106 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    @Kokulan ,I have two related section in that 1:n and N:n So when sharing to which i have to give append and to which append to So that he Can create new record after clicking on+ button?

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    Hi

    The record you are sharing  (Parent record), when you share as I have shown in the screenshot in my above post, you have to tick the Append permission. This would allow this parent record to be used as the lookup on related entities.

    And to append a related entity with the parent lookup value, you have to have Append To on the related entity. And the user also needs create/update permissions on the related entity.

  • Raghav Chadha Profile Picture
    106 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    @Kokulan I just wanted to tell you that user will create record through + button in subgrid through parent ,+ button is basically customised it upload documents and upload document is an entity.1st entity is Project  related entities are Upload Document and Attached documents where Project and Upload Documents have N:N and Project and Attach document have 1:N. So will it be able to create when i apply append on Project and Append to on both?Please reply

  • Verified answer
    Kokulan Profile Picture
    18,054 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    Hey

    I have done a quick test, see the results.

    When I share the project, if I tick the Append, I get + button on both N:N and 1:N as shown below

    ScreenClip-_5B00_715_5D00_.png

    ScreenClip-_5B00_716_5D00_.png

    When I share the project record, If I don't give Append permission, the + button won't be displayed

    ScreenClip-_5B00_714_5D00_.png

    ScreenClip-_5B00_715_5D00_.png

    And I have given Append To to both Upload Document and Attach Document, at least at user level.

  • Raghav Chadha Profile Picture
    106 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    Ohh Thanku So much ,And both related entities should have create access atleast user level also in security role given to user?If it does not have Do you know how to give access level of create by retreiving security role through code .I have retreived Security role but didnt find how to give privelege through c# in custom entity? I have researched about AddPrivilegesRoleRequest Class.    Can you tell me if you know how can i give privlege through it?

  • Raghav Chadha Profile Picture
    106 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    Have you given append to on the related entity by going to security roles, i also need to give them that access through code but dont know to how to give???

  • Verified answer
    Kokulan Profile Picture
    18,054 on at
    RE: How do i give a permission to create related record from parent record using share functionality?

    Yes, I have given Append To in the security role.

    To answer your question on Adding privileges, the typical practice is, you create a security role (let's call it "Upload Permissions") that has necessary permissions for  Upload Document and Attach Document entity.

    And then whenever you share the project record, you could check if the user has the Upload Permission security role and if not, you can associate that role with the user, see the link below for an example

    docs.microsoft.com/.../sample-associate-security-role-user

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans