Tag Archives: Dynamics CRM 2011

Error: Unable to load plug-in Assembly for offline plugin in Dynamics CRM 2011

I am getting weird error “Unable to load plug-in Assembly” for offline plugin in Dynamics CRM 2011. And after downloading log file the error details is as “Public key token af134b872b327f03 is not found in allow list”. I have searched … Continue reading

Posted in MS CRM 2011 | Tagged , , | 1 Comment

How to disable a form control in Dynamics CRM 2011 using Javascript

To disable a form control in Dynamics CRM 2011 using Javascript try below code: var control = Xrm.Page.ui.controls.get(“fieldname”);// like new_age control.setDisabled(true);

Posted in MS CRM 2011 | Tagged , , | 1 Comment

Write a common plugin for Create/Update/Delete events in Dynamics CRM 2011

If you want to write a common plugin for Create/Update/Delete events in Dynamics CRM 2011 then only you need to take care of “context.InputParameters[“Target”]”. In case of Create/Update event “context.InputParameters[“Target”] is Entity” and in case of Delete event “context.InputParameters[“Target”] is … Continue reading

Posted in MS CRM 2011 | Tagged , | 2 Comments

How to retrieve dynamic marketing list member in Dynamics CRM 2011

To retrieve dynamic marketing list member in Dynamics CRM 2011 follow below steps: Pass list Guid as string and it will return dynamic marketing list member private EntityCollection RetrieveDynamicMemberList(IOrganizationService service, string strList) { ColumnSet cols = new ColumnSet(new string[] { … Continue reading

Posted in MS CRM 2011 | Tagged , | Leave a comment

How to retrieve static marketing list member in Dynamics CRM 2011

To retrieve static marketing list member in Dynamics CRM 2011 follow below steps: Use Link Entities to get relationship entity details Passing list Guid as object and it will return static marketing list member private EntityCollection RetrieveMarketingListMembers(IOrganizationService service, object strList) … Continue reading

Posted in MS CRM 2011 | Tagged , | 2 Comments

How to debug offline plugin in Dynamics CRM 2011 for Outlook Offline

Following are the steps to start debug a offline plugin in Dynamics CRM 2011 for outlook offline mode: Build the solution on your machine Register the plugin on the server Register the step deployment as server and offline Synchronize the … Continue reading

Posted in MS CRM 2011 | Tagged , , | Leave a comment

How to retrieve campaign and target product in Dynamics CRM 2011

To retrieve campaign and target products in Dynamics CRM 2011 follow below steps: Use Link Entities to get N:N relationship entity details Passing Campaign Activity Guid array and it will return campaign details and target products associated with campaign private … Continue reading

Posted in MS CRM 2011 | Tagged , , | Leave a comment

How to create static marketing list and associated marketing list member in Dynamics CRM 2011

To create static marketing list and associated marketing list member in Dynamics CRM 2011 below are the steps: Create the array of contacts/accounts/leads. Set type attribute as false to create static list. Make sure createdfromcode attribute is set as contact/account/lead … Continue reading

Posted in MS CRM 2011 | Tagged , , | Leave a comment

How to use FetchXML to retrieve entities in Dynamics CRM 2011.

FetchXML is query language based on a schema that describes the capabilities of the language. The FetchXML language supports similar query capabilities as query expression. It is used primarily as a serialized form of query expression, used to save a … Continue reading

Posted in MS CRM 2011 | Tagged , | 1 Comment

How to calculate current age from Date of Birth using Javascript in Dynamics CRM 2011

To calculate current age from date of birth using javascript in dynamics crm 2011 follow below: Checking month difference if it is 0 simply subtract the birth year from current year. If it is negative value simply subtract the birth … Continue reading

Posted in MS CRM 2011 | Tagged , , | Leave a comment