MR
11/21/2019, 8:18 PMvar search = search.create({ ... }); return search
That seems to work, as the context in my Map function is: `{"recordType":null,"id":"552","values":{"GROUP(transactionname)":"some-transaction-name","GROUP(email)":"``some_email@test.com``","GROUP(custbody_procurement_vendor)":{"value":"2350190","text":"I am a Vendor"}}}`
With the summary group, I am having difficulty getting the values. I've tried: var result = JSON.parse(context.value); result.values.getValue({name: 'transactionname', summary: 'GROUP'})
That didn't work, so I have tried different variations of that, like result.values.getText({...})
, result.getValues({ ... })
, and even tried to just get the "GROUP(transactionname)" with normal object notation as a string, but nothing seems to work. Thanks for any help!suitedev
11/21/2019, 8:19 PMsuitedev
11/21/2019, 8:19 PMsuitedev
11/21/2019, 8:20 PMNicolas Bean
11/21/2019, 8:23 PMvar revPlanId = res.values["GROUP(internalid)"].value;
Nicolas Bean
11/21/2019, 8:23 PMvar rec = record.load({
type: 'revenueplan',
id: revPlanId
});Nicolas Bean
11/21/2019, 8:24 PMMR
11/21/2019, 8:26 PMvar result = JSON.parse(context.value); result.values.getValue({name: 'transactionname', summary: 'GROUP'})
to work before with group but it may not have been a Map/ReduceNicolas Bean
11/21/2019, 8:27 PMscottvonduhn
11/21/2019, 8:31 PMscottvonduhn
11/21/2019, 8:31 PMMR
11/21/2019, 8:36 PMMR
11/21/2019, 8:38 PMscottvonduhn
11/21/2019, 8:40 PMNElliott
11/22/2019, 8:51 AM