Reference item fields

View an Asset: returns only the id of the type_field value but not the name. I’ll have to make a round trip to fetch the details of the reference fields like name. Is there a way to fetch the reference item name along with the asset info?

For e.g. viewing an asset only returns the Product id assigned to it but not the product name.

Hi @rightstar,

The View an Asset API returns following response

{
    "asset": {
        "id": 10,
        "display_id": 11,
        "name": "Macbook Pro",
        "description": "13.3-inch (diagonal) LED-backlit glossy widescreen display,1440-by-900 resolution",
        "asset_type_id": 3,
        "impact": "low",
        "author_type": "User",
        "usage_type": "permanent",
        "asset_tag": "ASSET-9",
        "user_id": null,
        "department_id": null,
        "location_id": null,
        "agent_id": null,
        "group_id": 9,
        "assigned_on": "2014-07-26T06:55:00Z",
        "created_at": "2019-03-06T09:34:37Z",
        "updated_at": "2019-03-06T10:23:06Z"
    }
}

Is the name attribute is something you’re looking for?

The above seems to be an additional facility to get type_field by using query params as ?include=