Netsuite Webservices: Can’t give access to contacts

Although I am grateful Netsuite provides an api for their webservices, there are many frustrating feature gaps in it. When looking into setting the password and giving access to contacts via the PHPToolkit, I was depressed (though not surprised) to find that it can’t be done. Netsuite allows you to set the access/password for customer records, but it simply can’t be done for contacts. There is an enhancement request (#93233), but so far nothing has been done. This would seem reasonable, but this feature was requested way back in 2007 and nothing has been done yet. When asked if anything had been done about this problem in 2009, a Netsuite Employee simply responded with “Not yet.” It would seem that Netsuite could do better.

This entry was posted in Netsuite PHPToolkit and tagged , , , , , , . Bookmark the permalink.

9 Responses to Netsuite Webservices: Can’t give access to contacts

  1. Michael says:

    Hi Daniel.

    I am working on an integration project where the client wants many features of the netsuite system integrated with his WP admin (i.e. crm, items, shopping cart for the front end, etc). does this mean that We cannot access the contact records via webservices and are stuct to using the netsuite admin? Client is wanting the ability to add/edit/delete from within WP. I have integrated the adding of contacts but have yet to figure out how to get the list of contacts to display and ultimately edit/delete. Any information you can give would be greatly appreciated! I have had a very hard time finding much documentation outside of the vague documentation that is available for the toolkit.

  2. daniel says:

    Micheal,

    You can certainly add, edit, and list the contacts for a customer. However, before the most recent release, you could not grant login access for contacts, only for customers. The most recent update to Netsuite is supposed to have fixed some of that, but I haven’t had a chance to try it out yet.

    I will write a post about modifying records sometime today so that you can take a look at that as well.

    –Daniel

  3. Michael says:

    Great Daniel, Thank you…. I am so glad I stumbled upon your site, have not had much luck finding information about the phptoolkit and the documentation in my opinion is very vague when it comes to php.

    Cheers!

    Michael

  4. Michael says:

    Thank you Daniel!

    Very big help, once reading through the mountain of documentation I was able to retrieve my full list of contacts! I had been trying to use the getAll function and was beating my head on the wall because it just would not work (I guess NetSuite does not support that on customer records). So what I did was create a “catch-all” search paramater and it worked like a charm!

    $customerSearchParam->setFields(array(‘searchValue’ => ”, ‘operator’ => ‘contains’));
    $customerSearchBasic = new nsComplexObject(“CustomerSearchBasic”);
    $customerSearchBasic->setFields(array (‘companyName’=> $customerSearchParam));

    As you can see I left the search value blank…. this returned all of my results!

    of course the code to do this is much longer :) If you would like me to share it please let me know…

    Thanks again Daniel

  5. Michael says:

    Hello again Daniel,

    I am having a bit of a struggle with pagination and was wondering if you would be willing to take a look at my code and throw me a few tips as to what I may be doing wrong. Also,
    when getting a list of customers I can display all data except for the address fields.

    I would be happy to pay you a little something for your help!

    The code is rather large so I’m sure you don’t want it posted here, please email me if interested in lending a hand…. msowen {at} hotmail {dot} com

    Cheers!

  6. Josh Perkis says:

    Hey Daniel,

    First, great site and definitely needed since so little documentation on the PHP toolkit.
    I recently saw that the ContactAccessRolesList Record which appears to allow the setting of access and passwords for Contacts. Is this a new API? If so have you had any success in getting it to work?

    Thanks so much, Josh

    • Josh Perkis says:

      Nevermind. I was able to successfully set the password for a Contact record using the ContactAccessRolesList. Good times!

      –josh

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>