Development

Actions, input parameters and “Object reference not set to an instance of an object” exception

While playing with Actions, I wrote a simple .Net code that invoked the execution of an Action:

During testing, I got a really weird and unclear error – “Object reference not set to an instance of an object.”:

After some investigation, I realized that if you have declared the input parameters of Entity, EntityReference, EntityCollection, Money, Picklist or string type (even not marked as required!) to make the code work without exception, you need to pass this parameters:

Leave a Reply

Your email address will not be published. Required fields are marked *