Bulk Add Contacts Using .NET API

Regular Participant

Bulk Add Contacts Using .NET API

Hi,

      I have an Requirement where I need to add more than 50 contacts( this my go up till 500 or go down to 1 contact also) at one go to a list...

Now I have written a code to add or update single contact and its working fine when I have less number of contacts. I am looking for  Bulk Add Contacts  method ( Using .NET ) where i can add multiple number of contacts to a list. Any Sample code or a link how to achieve this would be much appreciated.

 

Thanks

Dileep

3 REPLIES 3
Employee

Hi Dileep,

 

I'd recommend switching to the newer .net sdk if you're not already using it, since the V1 .net wrapper has a limited shelf life.

 

The new sdk has a bulk add contact function built into it.  The method is called CreateAddContactsActivity and can be found in the activity service file.  I don't have an example already built using that method, I apologize.

 

Best Regards,

Shannon W.

API Support Specialist

Thanks for the reply we are using Basic authentication..... does it work with basic authentication?

Hi,

 

Our V1 API allows basic authentication; the corresponding .net wrapper has support for basic authentication.  The V2 (newer) API and its corresponding .net sdk doesn't have support for basic authentication.  You must use OAuth with it.  I would recommend obtaining an access token by following the steps on this page and using OAuth 2 with the newer API since we will be deprecating support for the V1 API and basic authentication, likely in the next year.

 

Best Regards,

Shannon W.

API Support Specialist

Developer Portal

View API documentation, code samples, get your API key.

Visit Page