Require API to get PrimaryNameAttribute

KathirT
Mega Contributor

Hi Team,

We need few information on API from ServiceNow.

 

Do we have any api that responds PrimaryNameAttribute and PrimaryIdAttribute for an entity.

 

for example : MSD has option to get the PrimaryNameAttribute through api.

 

Below is the sample request and response for MSD

 

"api/data/v9.2/EntityDefinitions(LogicalName='contact')?$select=LogicalCollectionName,PrimaryIdAttribute,LogicalName,DisplayName,PrimaryNameAttribute"

 

Response has below attributes

 

"LogicalCollectionName": "contacts",

"PrimaryIdAttribute": "contactid",

"LogicalName": "contact",

"PrimaryNameAttribute": "fullname",

 

"fullname" is the field name where we can map this field to get the value.

 

We need to know, if there is any similar api for ServiceNow, which returns PrimaryNameAttribute field name, so that we can use that name to get the value

1 REPLY 1

KathirT
Mega Contributor

A humble remainder and an immediate response is greatly appreciated