查询picklist所有值

查询实体下PickList的所有value和name

1
2
3
4
5
6
7
8
9
10
11
12
13

--attributename 字段名
--logicalname 实体名

SELECT
attributevalue,
value as name
FROM
entity e
INNER JOIN stringmap sm ON e.objecttypecode = sm.objecttypecode AND sm.attributename = 'new_upkeepstation'
WHERE
logicalname = 'incident'