N:N Relationship with Account related Custom Entity Records using Plugin
*Retrieving the Account related RelatedEntity records and updating the Account entity field 'new_relationshiprecords' with all relatedEntity names belongs to perticular Account entity. * Plugin is Registered on Account Entity Update of 'name' field PreOperation/PostOperation with Synchronus. using System; using System.Collections.Generic; using System.Text; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; using System.Linq; using System.Threading.Tasks; using Microsoft.Xrm.Sdk.Messages; using Microsoft.Xrm.Sdk.Metadata; using System.Diagnostics; using System.Collections; using System.Web; using System.Xml; using Microsoft.Xrm.Sdk.Client; namespace getOptionValue { public class updateAcoount : IPlugin { public void Execute(IServiceProvider serviceProvider) { ITracingService tracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService)); IPluginExecutionContext context = (IPluginExecutionContex