Expose Fields to Relevant Field Sets in SuiteCommerce
Expose item fields to relevant field sets in SuiteCommerce for enhanced API responses on product pages and search results.
TL;DR Opening
To expose item fields for API responses effectively, define relevant field sets in SuiteCommerce. This ensures that necessary fields, like the Detailed Description, are accessible in search results, enhancing the user experience on product pages.
How to Expose the Field to the Relevant Field Set
Before integrating custom features into your SuiteCommerce extension, ensure that the specific field you wish to include is part of the item API response. This article focuses on adding the Detailed Description (storedetaileddescription) to the default search field set. Here are the steps to achieve this:
- Add the Field to the Field Set: Incorporate the desired field into the relevant field set—this example uses Detailed Description.
- Modify Field Sets: To learn how to adjust field sets, please refer to the section on defining field sets.
- Save Changes and Rebuild: After updating the field set, save your changes and rebuild the search index to apply them.
Important Considerations
- The provided code samples assume you are working with the Detailed Description (
storedetaileddescription). If you opt to work with a different field, adjust code samples accordingly. - Field sets you create will be publicly accessible on the internet, so choose your fields carefully. Avoid exposing sensitive or unnecessary information.
Creating Custom Field Sets
To define your own field sets on the Web Site Setup page:
- Prerequisites: Complete prerequisite tasks as described in the relevant section.
- Access Field Sets: Navigate to Commerce > Websites > Website List.
- Edit Site: Click Edit next to your SuiteCommerce Advanced site.
- Navigate to Field Sets: Go to the Field Sets subtab.
- Define Name: In the Name field, enter a meaningful name that reflects the product views you create. Typically, the field set for item details is named details.
- Field Set ID: Assign a Field Set ID that you will use later with the Item Search API as an input parameter. Ensure that this is consistent throughout your implementation.
By following these guidelines, you can efficiently expose the required fields for various views in your SuiteCommerce setup, enhancing both performance and user satisfaction.
Key Takeaways
- Define field sets to make fields like Detailed Description available in API responses.
- Ensure to rebuild the search index after modifying field sets.
- Choose fields wisely as they will be publicly exposed on the internet.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
Does exposing fields in SuiteCommerce apply to all editions of NetSuite?
What prerequisites are needed before creating custom field sets in SuiteCommerce?
How do I ensure a field is included in the API response for a product page?
What should I consider when selecting fields to expose in SuiteCommerce field sets?
Was this article helpful?
More in Commerce
- Available Items Only Feature in NetSuite 2026.1
Available items only filtering boosts sales efficiency in NetSuite 2026.1 with Intelligent Item Recommendations.
- Commerce Extensions in NetSuite 2026.1
Commerce Extensions in NetSuite 2026.1 enhance performance and user experience in eCommerce.
- Convert Multiple Transaction Line Items into Configured Items in
Enhance transaction processing in NetSuite by converting multiple line items into configured items with improved session handling.
- New SuiteCommerce Features in NetSuite 2026.1
New SuiteCommerce features in NetSuite 2026.1 enhance user experience and improve eCommerce efficiency.
