I recently completed a project linking a local LAMP application with a newly implemented NetSuite deployment.
Working with the customer and the NetSuite partner, I have been impressed with the NetSuite system and capabilities. I
was surprised, however, by how few examples of recent code were floating around, especially in PHP, so I figured I’d share
some of my code.
Below is the first example, there are a few cryptic comments to hopefully help explain what’s going on. If you have any
questions, feel free to leave a comment below. Thanks!
Code
netsuite.php:
Closing remarks
I removed a lot of the logic and processing above because it was unique to the customer, and most of that stuff is pretty mundane
anyways. If you’re new to the NetSuite SuiteTalk API, and looking to perform some search queries, hopefully this will be
useful.
Note: at the time of this implementation, SuiteTalk 2014.2 had just been released, but the latest PHP_Toolkit available was for
version 2014.1: PHPToolkit_2014_1