In a Model-Driven App, a lookup field is a type of field in a database or application that can be used to reference records from another entity or table. In short, it allows to reference data from another entity or table.

Generally, Lookup fields have a feature which is typically represented by “ +  New “ to create a new record for another (related ) table and associate it with current record.

But What If the user creates a new record from the Lookup field for an Entity where the user does not have access to the related table?
So, the best way to restrict the user not to create a New Record from the Lookup Field is Hiding the + New Button as shown in the below image.

Generally, to restrict the user to create a new record can be achieved by 2 ways:

  1. By removing the create privilege of specific (Target) entity for the security role.
  2. Hiding + New Button for Lookup fields By Using the XRM TOOLBOX, Modifying the XML from Backend.

    1. Removing Create Privilege of Target Entity:

  1. Open Advanced Settings-> Select Security under System.
  2. Open Security Roles -> Select & Click on required Security role to modify create access.
  3. Under Core Records or Custom Entities-> remove the create privilege for specific entity.
  4. Save and Close.

Hiding + New Button from XRM TOOLBOX through FormXML Editor

  1. Install the XrmToolBox
  2. Make connection to the Organisation by providing credentials & select Office 365(Deployment Type).
  3. After Connection is Validated, go to Tools-> search for FormXmlManager

  4. Install FormXML Manager Tool
  5. Connect to the organization & select the Environment
  6. Click on Load Entities to get all entities List
  7. Click On the Entity and Select form from the Right side and Edit Form Xml
  8. Add this below line in the Lookup field Parameters


  9. Update and Publish the Xml
  10. Check for the Field in the UI, Successfully, the New Button will be Hidden for lookup field.

Leave a Reply