RangerMSP Business Automation for successful ITs


Go Back   RangerMSP Forums > RangerMSP Software Discussion Forum (CCRM)

Thread Tools Search this Thread
 
April 16th, 2021, 10:37 AM
CraigYellick
 
Posts: 53
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
 
April 16th, 2021, 11:26 AM
Support Team
 
Posts: 7,514
The class is CRM.Contact so maybe that's the root cause here More details.
 
April 16th, 2021, 11:33 AM
CraigYellick
 
Posts: 53
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
 
April 16th, 2021, 11:46 AM
Support Team
 
Posts: 7,514
Great! Thank you for the update.
Reply





All times are GMT -6. The time now is 08:24 AM.

Archive - Top    

RangerMSP - A PSA software designed for MSPs and IT Services Providers
Forum Software Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.