Category Archives: Uncategorized

Code Optimization

One of our client come to us with Performance issue, they have multiple plugins written on many OOB as well as in custom entities. They also approached to Microsoft for this. Microsoft recommended them to stop making call to crm webservice and retrieve only required columns. Addition to these, I noticed some other points All plugins were deployed in debug… Read more »

Setting From & To Partylist for Activities

If we are creating activity like email,phonecall, letter,fax we need to set sender & recipient activityparty. we can set activitypart using following code  I am creating letter activity DynamicEntity LetterAct = new DynamicEntity(“letter”); //create regardingobjectid LookupProperty _Regarding = new LookupProperty(); _Regarding.Name = “regardingobjectid”; _Regarding.Value = new Lookup(“regarding entity name”,GUID of entity instance); LetterAct.Properties.Add(_Regarding); //set from and to  DynamicEntity[] _ActivityParties =… Read more »