目前我专门使用Dynamics CRM 2015:自定义操作
我可以启动自定义操作,该操作将从帐户创建发票。
但我想在我的代码中获取该发票......
我正在启动" WorkFlow"与
Microsoft.Crm.Sdk.Messages.ExecuteWorkflowRequest request = new Microsoft.Crm.Sdk.Messages.ExecuteWorkflowRequest()
{
WorkflowId = WorflowId,
EntityId = xEntity.Id
};
ExecuteWorkflowResponse xOrganizationResponse = (ExecuteWorkflowResponse)orgSvcContext.Execute(request)
但是xOrganizationResponse只有1个属性,即GUID Empty ..
有谁知道如何获取自定义操作中指定的Output参数?
这是我的自定义操作的屏幕截图:
答案 0 :(得分:1)
我现在能够得到像
这样的输出参数OrganizationRequest request = new OrganizationRequest("ise_account_newinvoice_")
request.Parameters.Add("Target", xAccountReference);
request.Parameters.Add("invoicenumber", strInvoiceNumber);
OrganizationResponse xResponse = orgSvcContext.Execute(request);
我只需要在请求中使用“目标”。