RangerMSP.com
Free Trial
Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in RangerMSP Software Discussion Forum (CCRM) only
Search
Advanced Search
Home
RangerMSP Software Discussion Forum (CCRM)
Announcement
Collapse
No announcement yet.
Cannot create Contact object
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
CraigYellick
Posts:
53
Cannot create Contact object
April 16, 2021, 10:37 AM
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
Support Team
Posts:
7558
April 16, 2021, 11:26 AM
Re: Cannot create Contact object
The class is CRM.Contact so maybe that's the root cause here
More details
.
Comment
Post
Cancel
CraigYellick
Posts:
53
April 16, 2021, 11:33 AM
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
Post
Cancel
Support Team
Posts:
7558
April 16, 2021, 11:46 AM
Re: Cannot create Contact object
Great! Thank you for the update.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment