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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | addDashboardToFavorites(ownerName, dashboardName) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Adds a dashboard to user's favorites.

Adds a dashboard to user's favorites.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| ownerName | String | Yes | The username of a user |
| dashboardName | String | Yes | The name of a dashboard |

## Return Type

**Boolean**

The result of operation

## Example

```
boolean result = addDashboardToFavorites("admin", "dashboard for Agile project");
```

## See also

> Macro (contentbylabel)