How to query Lookups and profile option in Oracle CX Sales Mobile script composer.
For our requirement, we need to query for a particular LookupType and further place a condition on LookupCode and then get meaning. Also need to get value of Custom profile option.
Following oracle doc, tried below but I get NULL. The profile option is not at user level. It is at site level
const userPref = getUserPreferences();
const closeDate = userPref.getProfileOptionValue('SHCIL_LEAD_DUE_DATE');