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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
error trying to create new customer via addList
I'm using php and the php toolkit, I was trying to create 50 new customers via the addList operation.
To do this, I just had a for loop with 50 iterations and had the same customer information for each, except that I changed the email address by using the loop counter...
for($i=1;$i<=50;$i++) {
...
'fname'=> 'testcust',
'lname'=> 'one',
'email' => "testcust{$i}@test.com",
'phone'=> '999-888-7654',
'addr1' => '555 ORder One Test way',
'addr2'=> '',
'city' => 'portland',
'state' => 'OR',
...
}
the code works fine, I know because it works when I'm creating just 1 customer.
0