Announcement

Collapse
No announcement yet.

Cannot create Contact object

Collapse
X
 
  • Filter
  • Time
Clear All
new posts

    Cannot create Contact object

    I am trying to add secondary contacts to accounts via the API. The following line fails with "Object reference not set to an instance of an object."

    Dim c As New CommitCRM.Contact()

    -- Craig

    Re: Cannot create Contact object

    The class is CRM.Contact so maybe that's the root cause here More details.

    Comment


      Re: Cannot create Contact object

      I got that namespace from the metadata. Included it for clarity.

      Namespace ...
      Public Class Contact
      Inherits [Object]
      ...


      I fixed this. I had neglected to initialize the API before calling the constructor. Duh!

      Thanks for the quick response.

      -- Craig

      Comment


        Re: Cannot create Contact object

        Great! Thank you for the update.

        Comment

        Working...
        X