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:
Custom Action input parameters
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.