Special Characters in map

Documentation article about Special Characters in map

·2 min read·View Oracle Docs

Special Characters in map

Special Characters in map

You can use special characters in the map section to change how the search results work. Here are some of those characters:

Note:

When you use special characters, remember that they work the same way they do in NetSuite. For example, using group means all other fields you want to return results need to be grouped, counted, or summed. If you use these, it is best practice to have all results grouped or summarized.

Character

Usage

=

Get value

Get text value (label)

[ ]

Get array values (multiselect)

*

Merge search result duplicates of this column value

<

Sort in ascending order

>

Sort in descending order

^

Group by maximum value

?

Count

Sum

~

Average

{

Minimum

}

Maximum

!

Write a value even if it hasn't changed

Get value and Get text

The equals (=) character lets you get a field's value. For example, if you're mapping a select field, this returns the internalid of the selection. Most of the time, the value is returned by default, but the = character makes it more specific.

The number sign (#) character lets you get the field's text instead. With a select field, this returns the label of the selection as you see it in the NetSuite UI.

Multiselect or arrays

The square bracket ([ ]) characters return the result as an array. They are usually used to ensure that the selected options are returned as an array, rather than as a comma-separated list.

Pipe

The pipe (|) character lets you control where the property reads from and where it writes to, separately. It is handy when you need to read from one field but write to another, or when the same field has two different IDs for searching and writing. Another common use for the pipe character is to make sure you can read a field value but not write to it.

Here's an example search that reads from one field and writes to another:

json
"quantity": "quantity|item.quantity"

Here's an example search that only reads the field value:

json
"status": "status#|"

Frequently Asked Questions (4)

What does the equals (=) character do in the map section?
The equals (=) character is used to retrieve a field's value specifically. While the value is usually returned by default, the = character ensures you get the internalid of a selection.
How can I sort search results using special characters in NetSuite?
To sort search results, use the less than (<) character for ascending order and the greater than (>) character for descending order.
Can I use special characters to handle duplicate search results?
Yes, the asterisk (*) character merges search result duplicates of a particular column value.
What should I consider when using the group by functionality with special characters?
When using special characters to group results, it's best practice to have all results grouped, counted, or summarized. This ensures consistency in the search results.
Source: Special Characters in map Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in General

View all General articles →