pen one
06/24/2021, 2:26 PMvar clientSub = search.lookupFields({
type: "customer",
id: clientId,
columns: "subsidiary"
});
log.debug('Client Subsidiary is ',clientSub)
When I check the log I get the following:
{
"subsidiary": [
{
"value": "3",
"text": "ABC Company"
}
]
}
How can I just get the value of the subsidiary?CD
06/24/2021, 2:32 PMclientSub.subsidiary[0].text
and clientSub.subsidiary[0].value
CD
06/24/2021, 2:32 PMpen one
06/24/2021, 2:38 PM