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.
public sealed class MyCWAWorkflow : CodeActivity
{
[Input("ContractID")]
[ReferenceTarget("contract")]
public InArgument<EntityReference> ContractID { get; set; }
[Input("CustomerID")]
[ReferenceTarget("contact")]
public InArgument<EntityReference> CustomerID { get; set; }
[Input("QuoteID")]
[ReferenceTarget("quote")]
public InArgument<EntityReference> QuoteID { get; set; }
protected override void Execute(CodeActivityContext executionContext)
{
//Create the tracing service
ITracingService tracingService = executionContext.GetExtension<ITracingService>();
*This post is locked for comments