在 Salesforce 中,我想在 Contact 中创建一个名为“Chapter”的自定义字段,该字段引用其他 2 个字段(州和国家/地区)以自动填充。类似于 SQL 中的案例
例如
‘Chapter' =
CASE
When country = 'Aus' and state in ('NSW', 'ACT') then 'NSW / ACT`
When country = 'Aus' and state in ('VIC', 'TAS') then 'VIC / TAS`
When country = 'Aus' and state in ('SA', 'NT') then 'SA / NT`
When country = 'Aus' and state in ('WA, 'QLD') then 'WA/QLD'
When country = 'NZ' then 'NZ'
When country not in ('Aus', NZ) then 'INT'
END
我假设我在创建字段时使用了公式数据类型,但是我似乎无法编写公式。