How to call dynamics crm actions on sdk

Try this code below;


OrganizationRequest oRequest = new OrganizationRequest();
oRequest.RequestName = "action_name";
oRequest["Target"] = new EntityReference("entityname", guid);
oRequest["other_input_parameter"] = "test" // like "name" 

OrganizationResponse orr = service.Execute(oRequest);
Advertisements

#action-call-with-sdk, #actions, #dynamics-365, #dynamics-365-action-call, #dynamics-crm