Tuesday, January 10, 2023

Register Custom Action and pass CRM messages to Azure queue using service endpoint

Steps to register Custom Action and pass CRM messages to Azure queue using service endpoint






  • To register custom action using plugin registration tool, Click on Register as mentioned on below screenshot.

  • Provide the connection string to text box as given in below screenshot.







  • By providing name and Queue name available in azure, Click on Save.

  • Once click on save, register new step using custom action created in D365.


  • On providing necessary information, we can send messages to azure queue using custom action.










Execute service request using custom action in crm plugin to post the messages in azure queue

Steps to create request using custom api in crm to post the messages in azure queue using ms crm plugin D365

For example, consider the below mentioned entity name and fields in MS CRM D365.

Entity Details

  • Entity Name: Test Azure Entity
  • Schema Name: test_azure

Field Details

Schema Names:
  • test_name
  • test_messages

Custom Action input parameters 

  • Target
  • RecordName
  • Messages


                    ParameterCollection parameters = new ParameterCollection();
                    parameters.Add("Target", new EntityReference("test_azure",<<entityrecordid>>));
                    var request = new OrganizationRequest("<<customaction name>>")
                    {
                        RequestId = target.Id,
                        Parameters = parameters
                    };
                    request["RecordName"] = postImage["test_name"].Tostring();
                    request["Messages"] = postImage["test_messages"].ToString();
                    service.Execute(request);

Now you can send messages by configuring service endpoint using plugin registration tool.

Hide Add New and Add Existing Record button in subgrid ms crm d365

Steps to hide Add New and Add Existing button in sub grid MS CRM D365. Open Ribbon workbench. Load required entities  On subgrid section rig...