Advanced Field Mapping Definition
You can use the advanced mapping notation to set field mapping definitions on the Mapping tab.
The following table lists the field mapping definition type with a description of usage and syntax, including the syntax used on the legacy NetSuite integration form if different. Review also the Advanced Mapping Best Practice Guidelines.
In this table and throughout the NetSuite integration documentation, the source field is the field in the application from which the information is coming. The target field is the field in the application to which you are transferring the information. The source and target fields are different depending on whether the integration imports or pull backs information from NetSuite (source) into SuiteProjects Pro (target), or exports information from SuiteProjects Pro (source) into NetSuite (target).
Source value |
Usage |
Syntax |
Legacy syntax (if different) |
---|---|---|---|
Field value |
Simple field mapping — Set the field in the target application to the same value as the field in the source application. |
Not required unless used with conditional branching. The Mapping tab lets you select fields from a dropdown lists informed by the schema. Use the legacy syntax with conditional branching. |
Target field name, followed by at least one space and source field name.
|
Fixed value |
Set a field value in the target application to a fixed value. |
Unless used with conditional branching, enter the equal sign followed by a value contained within single quotation marks in the Source field column. Example: Use the legacy syntax with conditional branching. |
Target field name, followed by at least one space and a value contained within a pair of single quotation marks.
|
Combined field and fixed string values |
Set the field value in the target application to a concatenated string combining strings from multiple field values in the source application or fixed values.
|
Target field name, followed by at least one space and a concatenation expression. The concatenation operator is a comma and can be used to combine any number of field string values as well as fixed string values contained within a pair of single quotation marks.
For example, use this syntax to map URL custom fields in SuiteProjects Pro to URL custom fields in NetSuite for import. URL custom field values in NetSuite include the URL only, whereas URL custom field values in SuiteProjects Pro include both the visible link text and the link URL. If the NetSuite URL field value is
Concatenation can be used with looked up SuiteProjects Pro field values. The following example maps a list/record custom entity field holding the internal ID of the parent project in NetSuite to a pick list custom field in SuiteProjects Pro. Pick list custom field values sourcing list items from projects include the internal IDs of the customer [
|
— |
Today’s date (Macro) |
Set the field value in the target application to today’s date. |
Target field name, followed by at least one space and
|
— |
Empty (Macro) |
Exclude a mapping. Can be used to exclude default mapping, for example. |
Not required unless used with conditional branching. The Mapping tab lets you deactivate the field mapping row. Use the legacy syntax with conditional branching. |
Target field name, followed by at least one space and
|
Field value mapped to target field value |
Set the target field values according to a list of mapped source field value – target field value pairs. In the example given, if the source field value is
Important:
Mapped values in the left column cannot contain spaces. You can refer to the values using internal ID of the record instead. For example, use the internal ID on Department records to map the department name field values. Alternatively, you can use conditional branching. |
Opening tag with the target field name followed by a space and the source field name. List of mapped target and source field values, one target field value and one source field value per line, separated by one space and with each value contained within single quotation marks. Closing tag with the target field name.
|
— |
Looked up SuiteProjects Pro field value |
Look up a field value in a related SuiteProjects Pro table and set the target field to this looked up value, if a matching record exists in the related table and if the looked up value exists. Can be used with concatenation (See “Combined field and fixed string values” entry in this table). Can be used with conditional branching (See “Conditional branching value” entry in this table). |
Target field name, followed by at least one space, and all required lookup parameter-value pairs. Each parameter-value pair must be written in the format Four parameters are required:
|
— |
Conditional branching value |
Set the target field value using different mapping definitions depending on different conditions. Conditions can be set to compare a source field value with a fixed value or with another source field value. Conditions can be set to compare a looked up SuiteProjects Pro field value with a fixed value or with another source field value. Conditions can be combined using the Conditional branching mappings are always applied after standard mappings when the integration runs. Generally, custom fields referenced in the default mapping definitions cannot be overridden with these custom mappings. |
Conditional branching block opening statement Logical expressions can be formed of multiple conditions (relational expressions) combined using logical operators.
Example of conditional branching using looked up SuiteProjects Pro field values:
Important:
There cannot be more than one conditional branching block on the same mapping group tab. Include all conditional branching ( |
— |
Advanced Mapping Best Practice Guidelines
Review the following best practice guidelines:
-
You should contact SuiteProjects Pro Professional Services if you need to make changes to your integration configuration and field mapping definitions.
-
Make sure you familiarize yourself with the NetSuite and SuiteProjects Pro technical documentation before attempting to set field mapping definitions using the advanced notation — See Schema Reference Documentation.
-
Declare each NetSuite or SuiteProjects Pro field you reference in your advanced field mapping definitions — See Field Declarations.
-
Checkbox fields — You can use an advanced mapping to map a checkbox field in NetSuite with a checkbox field in SuiteProjects Pro. Note that the values corresponding to the state of the checked or cleared state of the box are different in NetSuite and SuiteProjects Pro. Refer to the following table and example:
Checkbox State
NetSuite Value
SuiteProjects Pro Value
Checked
'true'
'1'
Cleared
'false'
''
(empty value)NS_FIELDS custentity_my_netsuite_checkbox NS_CUSTOM_FIELDS custentity_my_netsuite_checkbox OA_FIELDS my_suiteprojectspro_checkbox OA_CUSTOM_FIELDS my_suiteprojectspro_checkbox IF <<END IF (my_suiteprojectspro_checkbox = '1') THEN custentity_my_netsuite_checkbox 'true' IF (my_suiteprojectspro_checkbox = '') THEN custentity_my_netsuite_checkbox 'false' END