---
schema_version: "1"
id: b87deeb4d2771d89aef344e971de4ae7841be5063784dedcb27a8a5d71528dee
title: Macro Definition
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/bi_dev_guide_rest/bi_responses_macro_definition.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_macro_definition.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: cc6ff8d4a2ab5cfc2a081b05bc05492c7b098a417d230530316437995db2d1ac
description: A macro definition that is part of a larger macro for a JSON transformation rule.
---
# Macro Definition

A macro definition that is part of a larger macro for a JSON transformation rule.

Properties

| Parameter Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| actions | [Action​Inpu](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_action_input.htm "The action for a rule or macro to perform during a JSON transformation.")\[\] | A list of actions for the macro. | Required | 43.0 |
| description | String | The description of the macro. | Optional | 43.0 |
| name | String | The name of the macro. | Required | 43.0 |
| parameters | String\[\] | A list of parameters for the macro. | Required | 43.0 |
| returns | Object | The returns of evaluated expression results of the macro when the action is eval. | Optional | 43.0 |