Javier Cabrera
08/26/2024, 12:00 AMCeligo AI
08/26/2024, 12:00 AMAI generated answer (using internal Slack threads):To receive IDs from a multiple select on the item records, you can use the
request.getParameter
method in SuiteScript. If the field is a list/select field, you should use request.getParameter('inpt_custpage_idofselect')
instead of request.getParameter('custpage_idofselect')
. This will return the internal IDs of the selected items.
However, if you need to get the external IDs or names of the items, you might need to make an additional call or maintain a lookup table at your end with item external ID and the internal ID.
If you are using REST webservices, the calling system might need to make another call to get the related external IDs based on the Internal IDs that you are getting.
Alternatively, you could use a SuiteQL query to get everything in one call. However, a JOIN in SuiteQL would return one row for each entry in the multi select. If you need one row per record, you could use GROUP BY. But please note that SuiteQL doesn't have any aggregate functions that work on strings.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
08/26/2024, 12:01 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802253902
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802130401
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.800903201
Celigo AI
08/26/2024, 12:01 AM