title: Associate Multiple records to subgrid using plugin in Dynamics crm
body: <p>I'm associating record to some other entity using AssociateRequest.My question is how to Associate multiple records to subgrid.could you plz anyone clarify me.</p>
  
  <pre><code>Entity en=(Entity)context.InputParameters["Target"];
                  AssociateRequest assreq = new AssociateRequest();
                  assreq.Target = new EntityReference(en.LogicalName,en.Id);
                  assreq.RelatedEntities = new EntityReferenceCollection();
                  assreq.RelatedEntities.Add(new EntityReference("contact", new Guid("72C8B80B-FEF1-E311-9345-D89D67642EB0")));
                  assreq.Relationship = new Relationship("contact_customer_accounts");
                  AssociateResponse assresponse = (AssociateResponse)service.Execute(assreq);
  </code></pre>