ANS-0810 · ONEWORLD & MULTI-SUBSIDIARY

How to Retrieve ‘Represents Subsidiary’ for Intercompany Journal Entry Names in NetSuite Saved Searches

Learn to construct a NetSuite saved search formula to correctly display the 'Represents Subsidiary' value for customer and vendor entities linked in Intercompany Journal Entries.

Short answer

To pull the 'Represents Subsidiary' value for entities in an Intercompany Journal Entry's 'Name' column, use a CASE WHEN formula. This formula compares the combined entity ID and company name with the 'Name' field, returning the appropriate subsidiary. It ensures accurate subsidiary mapping for both customer and vendor lines.

Scenario

Users often encounter difficulty when attempting to extract the 'Represents Subsidiary' value directly from the 'Name' column within NetSuite Intercompany Journal Entries. The 'Name' field typically combines the entity ID and company name, making a direct lookup challenging for associated subsidiary information.

Solution

To accurately retrieve the 'Represents Subsidiary' value, a formula utilizing CASE WHEN and NS_CONCAT functions can be implemented in a saved search. This approach accounts for how NetSuite displays entity names in the 'Name' column by comparing it against combined entity ID and company name fields.The following formula can be used:

CASEWHEN {name} = NS_CONCAT({customer.entityid},' ',{customer.companyname}) THEN {customer.representingsubsidiary}WHEN {name} = {vendorline.entityid} THEN {vendorline.representingsubsidiary}ELSE nullEND

This formula works by:

  1. Comparing the {name} field (which contains both the entity ID and name) to a concatenated string of {customer.entityid} and {customer.companyname}. The NS_CONCAT function is used for robust string concatenation, gracefully handling potential NULL values.

  2. If a match is found for a customer, it returns the {customer.representingsubsidiary}.

  3. It then checks if the {name} field matches the {vendorline.entityid}.

  4. If a match is found for a vendor, it returns the {vendorline.representingsubsidiary}.

  5. If neither condition is met, it returns null.This solution is specifically tailored for Intercompany Journal Entries. For other transaction types, additional CASE WHEN conditions based on the transaction type would be necessary to apply different logic.

Expert NetSuite Support

Need help with this NetSuite issue?

OneWorld & Multi-Subsidiary consulting and configuration support

Talk to a consultant