Get value and Get text

Documentation article about Get value and Get text

·2 min read·View Oracle Docs

Get value and Get text

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)

How does the equals (=) character affect search results in NetSuite?
The equals (=) character specifies that you're retrieving the field's value, such as the internal ID in a select field. While values are often returned by default, using the = character ensures this is explicit.
Can the pipe (|) character be used to separate read and write fields in NetSuite searches?
Yes, the pipe (|) character allows you to specify different fields for reading and writing. For example, it can read from one field while writing to another, or ensure a field can only be read but not written to.
What is the function of the number sign (#) character in NetSuite?
The number sign (#) character is used to obtain a field's text value, like the label seen in the UI for select fields, instead of the internal ID.
How are multiselect or array results returned in NetSuite searches?
The square bracket ([]) characters ensure that multiselect or array results are returned as an array format, as opposed to a comma-separated list of values.
Source: Get value and Get text 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 →