Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 2Check out the latest updates and new features of Dynamics 365 released from October 2022 through March 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Hello I have a a many to many subgrid inside a form
I can't use "Xrm.WebApi.createRecord" and give it the id of the form i want to link it with since it creates new records while I want to use some existing records
How can I do that please
why you can't use Xrm.WebApi.createRecord?
Because it creates new record to the table while i want to populate the subgrid with already existing records that were already created before with already given Ids
you have two ways depending on the relationship.
1) if the relationship is 1:N (like account-contact with parentcustomerid) you can update the records you want to associate with just the main ID (you can use Xrm.WebApi.updateRecord for example)
2) if the relationship is N:N you must use the associate method
(to be 100% precise, you can also use the associate method when you have a 1:N relationship, but is a preference as the result is the same)
hope it helps
Business Applications communities