Hello Experts ,
I need to understand one thing here. I have written a custom workflow activity with 3 input( Contract,Customer & Quote) arguments. all are of type entity reference. Suppose the Quote ID passed as NULL from workflow then do I expect any error because I am analysing a defect which says as Index out-of-bound error. I am not using the input argument in code but for future work i have taken the Quote as input argument. So do you think if the Quote look up is passed as null from workflow to this CWA this error will be thrown? Sample of my code below given.
publicsealedclassMyCWAWorkflow : CodeActivity
{
[Input("ContractID")]
[ReferenceTarget("contract")]
publicInArgument<EntityReference> ContractID { get; set; }
[Input("CustomerID")]
[ReferenceTarget("contact")]
publicInArgument<EntityReference> CustomerID { get; set; }
[Input("QuoteID")]
[ReferenceTarget("quote")]
publicInArgument<EntityReference> QuoteID { get; set; }
protectedoverridevoid Execute(CodeActivityContext executionContext)
{
//Create the tracing service
ITracingService tracingService = executionContext.GetExtension<ITracingService>();