Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Login error
I have downloaded PHP_Toolkit and tried to access search result as provided in sample code :
[PHP]
require_once '../PHPtoolkit.php';
require_once 'login_info.php';
global $myNSclient;
# SEARCH ITEMS
# ===============
// read values from POST
$itemId = $_POST['itemId'];
if ($itemId != "") {
$itemSearch = new nsComplexObject("ItemSearchBasic");
// Option 1 - instantiate an nsComplexObject and set fields
/*
$itemIdSearchField = new nsComplexObject("SearchStringField");
$itemIdSearchField->setFields(array("operator" => "anyOf",
"searchValue" => $itemId));
$itemSearch->setFields(array("itemId" => $itemIdSearchField));
*/
// Option 2 - give array of fields and the toolkit will use the directory to create
// a nsComplexObject of type SearchStringField
$itemSearch->setFields(array("itemId" => array( "operator" => "contains",
[PHP]
require_once '../PHPtoolkit.php';
require_once 'login_info.php';
global $myNSclient;
# SEARCH ITEMS
# ===============
// read values from POST
$itemId = $_POST['itemId'];
if ($itemId != "") {
$itemSearch = new nsComplexObject("ItemSearchBasic");
// Option 1 - instantiate an nsComplexObject and set fields
/*
$itemIdSearchField = new nsComplexObject("SearchStringField");
$itemIdSearchField->setFields(array("operator" => "anyOf",
"searchValue" => $itemId));
$itemSearch->setFields(array("itemId" => $itemIdSearchField));
*/
// Option 2 - give array of fields and the toolkit will use the directory to create
// a nsComplexObject of type SearchStringField
$itemSearch->setFields(array("itemId" => array( "operator" => "contains",
0