Need to create a new opportunity in NS ?? #120
Replies: 2 comments
-
I've never even heard of opportunities before, but it looks like the |
Beta Was this translation helpful? Give feedback.
-
Thanks Justin, I appreciate your response! You are correct. It is the same. I have gotten it to work using something similar to the following code snippet.
// Create the NS Opportunity object
$opportunity = new Opportunity();
$opportunity->subsidiary = array('internalId' => 1);
$opportunity->class = array('internalId' => 46);
$opportunity->entity = array('internalId' => 16);
$opportunity->currencyName = "USA";
$opportunity->exchangeRate = 1.00;
// Build the create request and send it to NetSuite API
$request = new AddRequest();
$request->record = $opportunity;
$response = $service->add($request);
|
Beta Was this translation helpful? Give feedback.
-
Hello All,
I hope that I am asking this in the right place. I can see how to search opportunities using the PHP toolkit, and that works well, but for some reason I am having trouble trying to figure out how to use this library to create a new opportunity.
If someone could help to point me in the right direction then I would really appreciate it.
Thanks so much!
Darrren Nay
[email protected]
Beta Was this translation helpful? Give feedback.
All reactions