0
votes

I need your help. I want to know how to show a lookup window when user click on button which is exists in sub grid form of an entity. I have created a button called "Add existing Inquiries" on Inquiries entity using ribbon workbench, but don't know how to create command for the default CRM lookup window. When user click the button, lookup should open which will ask user to select record form existing entity.

1
Did you get a chance to verify my answer?Arun Vinoth - MVP

1 Answers

1
votes

You are looking for lookupObjects method. Read more

Opens a lookup control to select one or more items.

Xrm.Utility.lookupObjects(lookupOptions).then(successCallback, errorCallback)

Use a custom JS function command in Ribbon button, then utilize the above method in that JS webresource function.