Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Select multiple records to add to a grid

(0) ShareShare
ReportReport
Posted on by

I have 1:N relationship between entitiy A and B. I want to have a grid on the form of entity A with a button on the right corner (something like the + button of the out of box crm grid) when I click it i want to see a model window showing a grid with all the records of entity B and I want to be able to select as many records as I want then click an Add button on the model window which would close the model window and refresh only the grid on the form A where the new associated records of entity B will be visible. I think the only way to do it is to create an html web resource for the grid and the model window. Am I right? If so, how can i make my html web resource look like crm? Is there a framework out there that helps with developing htm webresource that have the look and feel of crm? Thank you in advance guys.

*This post is locked for comments

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: Select multiple records to add to a grid

    Hi Walloud,

    You can show associated Grid in an iframe or use JqGrid plugin in a custom html. This will look similar to CRM Grid and also you can change some of the styles if required.

    Please have a look at below post.It is same post as your query.

    community.dynamics.com/.../207001

    <<please mark my answer as verified if it resolved your query>>

  • Suggested answer
    RE: Select multiple records to add to a grid

    This can be achieved by using N:N relationship. If you specifically need 1:N relationship than you will have have to create records of the other entity and you can still add multiple records but the lookup field of the main entity should not be mandatory. But if you select a record which is already associated with another record, that will be overwritten. So change the view to show only non associated records in the lookup view.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans