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.
Creating a lead source huge errors
I created a lead source in Netsuite through the API, and appears appropriately in Marketing > Campaigns list. However, if I go to edit or view it, it says that the record does not exist.
This is in my sandbox instance, which is the latest version (my non-hacked, vanilla toolkit).
My Code:
[PHP]
// create Customer record
$campaign = new nsComplexObject('LeadSource');
// set fields
$campaignFields = array(
'description' => 'Test Campaign',
'externalId' => '929',
'name' => 'Testing Campaign',
'isInactive' => 'false'
);
$campaign ->setFields($campaignFields);
// perform add operation and store nsWriteResponse object in $addResponse variable
$addResponse = $myNSclient->add($campaign);
[/PHP]
This is in my sandbox instance, which is the latest version (my non-hacked, vanilla toolkit).
My Code:
[PHP]
// create Customer record
$campaign = new nsComplexObject('LeadSource');
// set fields
$campaignFields = array(
'description' => 'Test Campaign',
'externalId' => '929',
'name' => 'Testing Campaign',
'isInactive' => 'false'
);
$campaign ->setFields($campaignFields);
// perform add operation and store nsWriteResponse object in $addResponse variable
$addResponse = $myNSclient->add($campaign);
[/PHP]
0