This topic contains 7 replies, has 0 voices, and was last updated by chanarbon 7 years, 12 months ago.
-
AuthorPosts
-
November 20, 2016 at 4:21 am #8292
realdrouinI’ve been asked to create the SQL Statement for a save searched.
It was quite easy until I tried to link to a “custom field”. Let me go in more detail.
The search is about location, so the field part is easy
select Name, City… from location
We have unique region. We created a custom fields with all the values
I’m trying to link to the custom field, which I have no idea
Any help will be greatly appreciate
This is a cached copy. Click here to see the original post. -
November 21, 2016 at 5:11 am #8293
Olivier Gagnon NCAre you trying to create an actual SQL statement because you are wuerying NS through ODBC, or do you mean you have to create a NetSuite saved search?
-
November 21, 2016 at 8:15 am #8294
realdrouinI need to create an SQL Statement to connect to the database through ODBC. I’m trying to connect to the Other Custom Fields
-
November 21, 2016 at 1:42 pm #8295
david.smithCan you post your saved search here as code? You can use this Chrome plugin if you need help. https://chrome.google.com/webstore/d…epdmfaihdokglp
-
November 21, 2016 at 9:36 pm #8296
chanarbon@realdrouin,
If you are connecting using ODBC, you may refer to the Connect Browser (https://system.netsuite.com/help/hel…d/account.html). If you are getting the getting custom fields, you may concatenate the name of the custom entity field e.g. MY CUSTOM FIELD to MY_CUSTOM_FIELD
-
November 22, 2016 at 7:52 am #8297
realdrouinSELECT LOCATIONS.NAME, SUBSIDIARIES.NAME, custrecord22_real
FROM LOCATIONS LOCATIONS,
SUBSIDIARIES SUBSIDIARIES,
SUBSIDIARY_LOCATION_MAP SUBSIDIARY_LOCATION_MAP
WHERE LOCATIONS.LOCATION_ID = SUBSIDIARY_LOCATION_MAP.LOCATION_ID
AND SUBSIDIARY_LOCATION_MAP.SUBSIDIARY_ID = SUBSIDIARIES.SUBSIDIARY_ID
custrecord22_real as the following values
Blue
Green
Yellow
The save search looks like this
Pepsico Sales Blue
Coke Revenues Red
Dr Pepper HR Orange
I’m trying to link to the customrecord table. That’s what I’m searching ? I need the table name, the field name and the link
Any help will be GREATLY appreciated
-
November 22, 2016 at 9:44 am #8298
david.smithDo you have a saved search that already performs this? If so, it would be extremely helpful if you posted that for us to reference.
-
November 23, 2016 at 9:41 am #8299
chanarbonrealdrouin , the name of the ODBC table for the custom record should be similar to to concatenation of the name of the custom record e.g. a custom record with name Colors Available should be COLORS_AVAILABLE
-
AuthorPosts
You must be logged in to reply to this topic.