Popdock’s Open website actions can be added to any list to provide users the ability to drilldown to any record in NetSuite directly from the list. In this article we will look at how you can build your own drill down actions.
- Simple Form Open Website Action
- Saved Search Open Website Action
- Working with Entities
- Working with Transactions
Simple Form Open Website Action
The most common type of Open website action you will use with NetSuite is to open a form for a single record, for example open an Item, Customer, or Transaction. Here we will build a simple drilldown to the Item form.
- Open your list in Popdock where you want to add the action
- Navigate to the List actions tab
- Click the Click here to add an action button

- Provide a Name for the action
- Set the Action type to Open website
- Enter [base_url] for the Endpoint
- Set the Location to Right-click menu
- Click Save

- Log into NetSuite and open the form you want to open via the form
- From your browser URL, copy the value between /app/ and ?

- In Popdock click Edit (Pencil) on your action
- In the Endpoint field paste in the value you copied from the NetSuite URL

- Type ?id= to start your filter parameters
- From the Add fields dropdown select internal id

- Go back to the main Popdock Dashboard and run the list
- Right-click on an item and select the Open website action

Saved Search Open Website Action
If you want to drilldown to an existing Saved Search in NetSuite we can call the Saved Search directly and pass in any desired filters.
- Follow the steps from Simple Form Open Website Action until step 9
- Log into NetSuite and open Lists > Search > Saved Searches
- Click Edit on the list you want to use.
- On the Available Filters subtab, add a new filter
- Enter the field you want Popdock to use in the filter, and check the box for SHOW IN FILTER REGION
- Click Add
- Click Save

- You will be redirected to the Saved Search result page with a new filter option available in the Filters pane
- Add a sample filter

- In the browser URL locate the following parameters
- searchid– The unique id assigned to your saved search
- Your custom filter, in my case it was Item_TYPE

- In Popdock click Edit (Pencil) on your action
- Add /common/search/searchresults.nl? to the Endpoint
- Enter your filter field using the Add field dropdown
- Add &searchid=(your id here)with your search id

- Go back to the main Popdock Dashboard and run the list
- Right-click on an item and select the Open website action
Working with Entities
When drilling back to an Entity such as Customer, Vendor, and Employee, we can pull the page from the entity type field. based on the below query we can add a calculation to set the url and use the calculation in our action.
- Create a new list with the below query
SELECT id, entityId, type FROM entity
- Open the new list > Fields > Calculated fields > Click here to add a calculated field
- Set the Name to link
- Set the Field language to Popdock script
- Enter the below formula
Concat("common/entity/", Lowercase({type}),".nl?id=",{id})

- Click Validate
- Click Go back to List
- On the Fields tab, add id as a Key field
- Navigate to List actions
- Click Click here to add an action
- Enter the Name Open entity
- Set the Action type to Open website
- Set the Endpoint to [base_url]/{link}
- Set the Location to Right-click menu
- Click Save
- Go back to the main Popdock Dashboard and run the list
- Right-click on an item and select the Open entity action

Working with Transactions
NetSuite stores all transactions in a single table, but the form display can change dynamically based on a combination of the transaction type and custom forms. Here is a sample of how we can rebuild the URL as NetSuite would through the UI.
- Create a new list with the below query
SELECT tranId, id, type, customform FROM transaction
- Open the new list > Fields > Calculated fields > Click here to add a calculated field
- Set the Name to link
- Set the Field language to Popdock script
- Enter the below formula
Concat("accounting/transactions/", Lowercase({type}),".nl?id=",{id},"&cf=",{customform})

- Click Validate
- Click Go back to List
- On the Fields tab, add id as a Key field
- Navigate to List actions
- Click Click here to add an action
- Enter the Name Open transaction
- Set the Action type to Open website
- Set the Endpoint to [base_url]/{link}
- Set the Location to Right-click menu
- Click Save
- Go back to the main Popdock Dashboard and run the list
- Right-click on an item and select the Open transaction action

If you have questions about adding an action to drill down in NetSuite, contact support@eonesolutions.com.