地圖函式

Profile Query Language (PQL)提供可讓您更輕鬆與地圖互動的功能。 如需其他PQL函式的詳細資訊,請參閱Profile Query Language 總覽

取得

get函式用於擷取給定索引鍵的對應值。

格式

{MAP}.get({STRING})

範例

下列PQL查詢取得索引鍵example@example.com的身分對應值。

identityMap.get("example@example.com")

索引鍵

keys函式用於擷取給定對應的所有索引鍵。

格式

{MAP}.keys()

範例

下列PQL查詢取得對應identityMap的所有索引鍵。

identityMap.keys()

values函式用於擷取給定對應的所有值。

格式

{MAP}.values()

範例

下列PQL查詢取得對應identityMap的所有值。

identityMap.values()

後續步驟

現在您已瞭解對應函式,可以在PQL查詢中使用它們。 如需其他PQL功能的詳細資訊,請參閱Profile Query Language概觀

recommendation-more-help
770bc05d-534a-48a7-9f07-017ec1e14871