Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
How to get values from GROUPED saved search results in the SuiteScript?
I load this search in the suitelet script, and would like to get each value result.
The result is the following one.
{"values":{"GROUP(CUSTBODY_SW_VOYAGE.custrecord_sw_vessel_company)":[{"value":"1","text":"AMC"}],"GROUP(CUSTBODY_SW_VOYAGE.custrecord_sw_voyage_number)":"V2217","GROUP(CUSTBODY_SW_VOYAGE.custrecord_sw_vessel_name)":"AMC","GROUP(CUSTBODY_SW_VOYAGE_RESERVE_HEADER.custrecord_sw_rsvno)":"50","GROUP(CUSTBODY_SW_VOYAGE_RESERVE_HEADER.custrecord_sw_alcno)":"3","GROUP(formulanumeric)":"47","GROUP(custbody_sw_from_port)":[{"value":"46","text":"YOKOHAMA"}],"GROUP(CUSTBODY_SW_VESSEL_SCHEDULE_FROM.custrecord_sw_etd_schedule)":"2022/09/17","GROUP(custbody_sw_to_port)":[{"value":"3","text":"BRISBANE"}],"GROUP(CUSTBODY_SW_VESSEL_SCHEDULE_TO.custrecord_sw_eta_schedule)":"2022/10/05","GROUP(CUSTBODY_SW_VOYAGE_RESERVE_DETAIL.custrecord_sw_rcvno)":"1"}}