---
title: "insight_getAttribByName"
canonical: "https://support.appfire.com/space/PSJ/15481613/insight_getAttribByName"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | insight_getAttribByName(object, attrName) | **Package** | insight |
| **Alias** |  | **Pkg Usage** | getAttribByName(object, attrName) |

## Description

> Macro (excerpt)
> 
> Gets an attribute by name, and returns the string representation for it.

Gets an attribute by name, and returns the string representation for it.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| object | **[IObject](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15488625)** | Yes | A IObject type (predefined structure) representing the object being queried. |
| attrName | String | Yes | The name of the attribute to retrieve. |

## Return Type

**String**

## See also

> Macro (contentbylabel)