arguments - CRM 2011: Check for reference value in custom workflow assembly -


i'm using part of coding in customer workflow assembly in crm 2011:

[input("organization input")] [output("organization output")] [referencetarget("organization")] public inoutargument<entityreference> orgreference { get; set; } [...] 

in definition of workflow input property not set, means no value has been selected, it's empty.

when running workflow, however, code inside if condition gets executed.

if (orgreference != null) { //codeblock gets excuted here } 

i expect lines inside code block ignored.

hence, proper way check if workflow input properties set or not?

thanks, michael

you have call contact.get(executioncontext) actual value.

if (orgreference.get(executioncontext) != null) { //codeblock gets excuted here } 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -