In Part 1, we discussed how to download WebStorm and connect with NetSuite. In this blog, we will discuss:
- How to create first project in WebStorm and deploy it in your NetSuite account
- How to create custom record in WebStorm and deploy it to NetSuite
- How to import custom objects from NetSuite into WebStorm for customization
- How to import script files or bundles from NetSuite into WebStorm for customization
Let’s explore these processes without any further ado.
Create the first project in WebStorm and deploy it to NetSuite Account
Follow these steps to create your project:
Go to File > New > Project > Account Customization > Enter the name of your project > click Create
When you create your first project, it looks like this:
Create Custom Record in WebStorm and Deploy it to NetSuite
Here are steps to follow:
- Right click on Object > New > Custom Object > Select Record Type from Drop Down list and give ID like:
2. Next, click ‘OK.’
Now your Record is created, and a new tab opens for customization.
Here are some important tips and things to do during customization:
- Record Name like Test Record.
- You can add fields in your record as well after giving ID and Name like as follow:
- You can add more fields as per your requirements, copy and paste and change the name and ID of your field.
- You should remember one important thing before deploying your record, i.e., add all the record reference and data to your manifest.xml file following steps below:
- Right click > NetSuite > Add dependency References to Manifest.s
- This will automatically add references to your manifest file.
- Also, give a name to your manifest file because when you deploy it that Project name appears in your account like:
Now you can deploy it to your Production account. It is just a small project to confirm whether our data has been pushed into NetSuite using WebStorm or not.
Deploy your first project from WebStorm to NetSuite
Follow the process below to deploy your first project:
- Right Click > NetSuite > Validate Project Against Account
These steps help you to:
Validate your account
To find if there is any error in your manifest file, like record, list, workflows issues, etc.
- Figure out in which account you want to deploy your project because you might have more than one account attached to WebStorm.
- Next, Right Click > NetSuite > Deploy
- A Confirmation pop up will appear, click ‘YES.’
You will receive a confirmation message in the end.
How to confirm record creation in the NetSuite Account?
Follow these steps to confirm whether your account is created in the NetSuite account or not:
Go to Customization tab > SuiteCloud Development > deployment Audit Trail
- Here, you can see the name of your manifest file, like:
It confirms you have successfully created and deployed the project.
Next, confirm that the Record you created in WebStorm is created in NetSuite as well. Please refer to the following steps below:
- First, go to Customization tab > List, Records, & Fields > Record Types.
- Next, go to filters > owner > select your username.
Here you see your record – CONGRATULATIONS!
3. To view your custom record, click on it.
Your custom record looks like the one you created in NetSuite using UI.
Import custom object from NetSuite into WebStorm for customization
Here is what to do to import custom objects from NetSuite into WebStorm for customization:
- Right Click on Object > NetSuite > Imports Objects from Account…
- Select your production account where you want to import objects, then click ‘Next.’
- Then, select object type that you want to import and click on ‘Search.’
- Again, click below Search to find which custom object you want to import from NetSuite.
It can also show your custom record you created before, like:
5. Select Record that you want to import, and then, click ‘Finish.’
6. Finally, your Custom Record is successfully imported into WebStorm, like:
Import script file or bundle from NetSuite into WebStorm for customization
Follow these steps to import script file or bundle:
- Right Click on SuiteScripts > NetSuite > Imports files From Account.
- Select Production account where you want to import files.
- Click on ‘Get Files.’
- Select all files you want to import from NetSuite or check SuiteScripts (for all files).
- Lastly, click ‘OK.’
You can see your files under SuiteScripts tab, like:
After customization, you can deploy it to your NetSuite Account following this navigation: Right click > NetSuite > Deploy.
In this blog, we learnt how to create our first project using WebStorm and deploy it to connected NetSuite Account. You can also create custom records, import records and scripts from NetSuite and do a lot more. Let’s discuss other aspects of WebStorm in another blog.
Let us know in the comments below how this blog helped you.