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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | insight_setAttribByName(object, attrName) | **Package** | insight |
| **Alias** |  | **Pkg Usage** | setAttribByName(object, attrName) |

## Description

> Macro (excerpt)
> 
> Sets an attribute by name, but does not save the object.

Sets an attribute by name, but does not save the object.

## 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 modified. |
| attrName | String | Yes | The name of the attribute to update. |

## Return Type

**[IObject](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15488625)**

## See also

> Macro (contentbylabel)