Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matthewpoer/netsuiteexternalidupdater
Tool to assist in updating the externalId of a NetSuite record.
https://github.com/matthewpoer/netsuiteexternalidupdater
netsuite netsuite-suitescript-snippets netsuite-suitetalk
Last synced: 1 day ago
JSON representation
Tool to assist in updating the externalId of a NetSuite record.
- Host: GitHub
- URL: https://github.com/matthewpoer/netsuiteexternalidupdater
- Owner: matthewpoer
- Created: 2017-05-15T15:15:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-20T15:26:39.000Z (about 1 year ago)
- Last Synced: 2023-10-20T16:41:45.175Z (about 1 year ago)
- Topics: netsuite, netsuite-suitescript-snippets, netsuite-suitetalk
- Language: PHP
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NetSuiteExternalIdUpdater
A quick script to help update the External ID parameter of an existing NetSuite Entity record. Simply define a `config.php` file with your NetSuite connectivity info and the internal and external IDs of the NetSuite record and run the script in CLI mode.Leverages the very helpful [ryanwinchester/netsuite-php](https://github.com/ryanwinchester/netsuite-php).
## Setup and Run
* Download/clone to local machine
* Create a config file by copying the example (`cp config_default.php config.php`) or creating a new one. Ensure config specifies all parameter values relevant to your NetSuite instances.
* Pay special attention to the **NS_OBJECT** param. Use the list in [RecordType list NetSuite documentation](http://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2015_1/schema/enum/recordtype.html) since the names are not intuitive.
* Run `composer install` to fetch the ryanwinchester/netsuite-php library
* Run the script, `php -f NetSuiteExternalIdUpdater.php`## Did it work?
If all goes well, your output should resemble the following:
~~~
$ php -f NetSuiteExternalIdUpdater.php
Found record 12345
Found existing externalId value of myCRM_123
This matches expectations. Will attempt to update externalId to myCRM_456
The upsert was sent and no errors were detected. Done.
~~~That's well and good, but how do we verify? Simply re-run the program and the new externalId will be detected and the program will abort the update.
~~~
$ php -f NetSuiteExternalIdUpdater.php
Found record 12345
Found existing externalId value of myCRM_456
This does not match the expected values of 12345 and myCRM_123
~~~