0
역학 CRM (365)사용자 정의 워크 플로가 성공적으로 실행 매개 변수 CustomWorkflow없이 CustomWorkflow 하는 단계를 추가 지정 작업에서 매개 변수 전달에
을 오류를 표시하지만 매개 변수 오류 보여줍니다 "System.AggregateException이 :. 하나 이상의 오류가 발생했습니다" 당신이 <string>
를 제거하면 어떻게
protected override void Execute(CodeActivityContext context)
{
ITracingService _tracer = context.GetExtension<ITracingService>();
IWorkflowContext _workflowContext = context.GetExtension<IWorkflowContext>();
IOrganizationServiceFactory _serviceFactory = context.GetExtension<IOrganizationServiceFactory>();
IOrganizationService _service = _serviceFactory.CreateOrganizationService(_workflowContext.UserId);
try
{
string _emailId = EmailID.Get<string>(context);
throw new InvalidPluginExecutionException("An Error Occured" + _emailId);
}
catch (FaultException<OrganizationServiceFault> ex)
{
throw new InvalidPluginExecutionException("An Error Occured in Followup Plugin!", ex);
}
catch (Exception ex) {
_tracer.Trace("Exception", ex.ToString());
throw;
}
}
[Input("EmailID")]
public InArgument<string> EmailID { get; set; }
[Input("SubPoId")]
public InArgument<string> SubPOId { get; set; }
던져 새로운 InvalidPluginExecutionException ("있는 오류가 발생하였습니다"+ _emailId을); 은 emailId가 전달 된 매개 변수를 검사하기 위해 사용해야합니다.이 라인이 없으면 도 표시됩니다. 오류 –
왜'try' 블록 내에'InvalidPluginExecutionException'을 던지고 있습니까? –
테스트하지 않고 그냥 동일한 오류를 보여줍니다. –