Back

Using a Popdock Open Website Action to drilldown into NetSuite

Published: Jan 19, 2024
Post Author Written by Ethan Sorenson

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

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.

Ensure the Base URL is configured on your Popdock NetSuite Connector > Actions

  1. Open your list in Popdock where you want to add the action
  2. Navigate to the List actions tab
  3. Click the Click here to add an action button
  1. Provide a Name for the action
  2. Set the Action type to Open website
  3. Enter [base_url] for the Endpoint
  4. Set the Location to Right-click menu
  5. Click Save
  1. Log into NetSuite and open the form you want to open via the form
  2. From your browser URL, copy the value between /app/ and ?
  1. In Popdock click Edit (Pencil) on your action
  2. In the Endpoint field paste in the value you copied from the NetSuite URL
  1. Type ?id= to start your filter parameters
  2. From the Add fields dropdown select internal id

You may have a different display name for the field, but it is called id in the SuiteQL query.

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

If you receive an error from NetSuite when the action runs, check the URL to ensure it is built correctly.

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.

Ensure the Base URL is configured on your NetSuite Connector > Actions

  1. Follow the steps from Simple Form Open Website Action until step 9
  2. Log into NetSuite and open Lists > Search > Saved Searches
  3. Click Edit on the list you want to use.
  4. On the Available Filters subtab, add a new filter
  5. Enter the field you want Popdock to use in the filter, and check the box for SHOW IN FILTER REGION
  6. Click Add
  7. Click Save
  1. You will be redirected to the Saved Search result page with a new filter option available in the Filters pane
  2. Add a sample filter
  1. 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
  1. In Popdock click Edit (Pencil) on your action
  2. Add /common/search/searchresults.nl? to the Endpoint
  3. Enter your filter field using the Add field dropdown
  4. Add &searchid=(your id here)with your search id

In my testing, it works better to add the filter parameter before the searchid parameter.

  1. Go back to the main Popdock Dashboard and run the list
  2. 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.

  1. Create a new list with the below query

Accessing the entity table requires the Perform Search Permission on the NetSuite Role.

SELECT 
    id, entityId, type
FROM
	entity
  1. Open the new list > Fields > Calculated fields > Click here to add a calculated field
  2. Set the Name to link
  3. Set the Field language to Popdock script
  4. Enter the below formula
Concat("common/entity/", Lowercase({type}),".nl?id=",{id})
  1. Click Validate
  2. Click Go back to List
  3. On the Fields tab, add id as a Key field
  4. Navigate to List actions
  5. Click Click here to add an action
  6. Enter the Name Open entity
  7. Set the Action type to Open website
  8. Set the Endpoint to [base_url]/{link}
  9. Set the Location to Right-click menu
  10. Click Save
  11. Go back to the main Popdock Dashboard and run the list
  12. Right-click on an item and select the Open entity action

The link calculated column should contain a value like: common/entity/custjob.nl?id=1542

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.

  1. Create a new list with the below query
SELECT
    tranId,
	id,
    type,
    customform
FROM
    transaction
  1. Open the new list > Fields > Calculated fields > Click here to add a calculated field
  2. Set the Name to link
  3. Set the Field language to Popdock script
  4. Enter the below formula
Concat("accounting/transactions/", Lowercase({type}),".nl?id=",{id},"&cf=",{customform})
  1. Click Validate
  2. Click Go back to List
  3. On the Fields tab, add id as a Key field
  4. Navigate to List actions
  5. Click Click here to add an action
  6. Enter the Name Open transaction
  7. Set the Action type to Open website
  8. Set the Endpoint to [base_url]/{link}
  9. Set the Location to Right-click menu
  10. Click Save
  11. Go back to the main Popdock Dashboard and run the list
  12. Right-click on an item and select the Open transaction action

The link calculated column should contain a value like:

accounting/transactions/salesord.nl?id=4115&cf=174

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

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.