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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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