When an onclicktoact event is received (with entityId and entityLogicalName) I'd like to retrieve the PrimaryNameAttribute of the entityLogicalName (let's say contact) so that I can use the PrimaryNameAttribute (fullname) and retrieve this field additionally (regular retrieveRecord API call).
I can achieve this today with getEntityMetadata but the amount of data returned (1MB) is too high.

WebAPI example: /api/data/v9.0/EntityDefinitions(LogicalName='contact')?$select=PrimaryNameAttribute

Please let me know if the same can be achieved with the existing CIF API functions.
Ideas Administrator

The getEntityMetadata function now accepts an array of attributes which can be used to filter down the data you receive.

Thank you for your idea submission!