> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SupportMacrosImportResult

> What an import did with each macro. It runs while the request waits, so the result is final.

**Required scopes:** [`support_macros_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_macros_write)

**counts** `[BulkCounts!](/docs/api-reference/v3/reference/common/bulk-counts)` *required*

How many items ended each way.

**fields**

**failed** `Int!` *required*

The items that couldn't be changed.

**ok** `Int!` *required*

The items the action changed.

**skipped** `Int!` *required*

The items it didn't apply to.

**total** `Int!` *required*

The items given.

**results** `[\[SupportMacroImportItem!\]!](/docs/api-reference/v3/reference/support/support-macro-import-item)` *required*

One per macro, in the order of inputs; at most 100.

**fields**

**code** `String`

Why the item was skipped or failed: NAME\_TAKEN (SKIPPED), the store or an earlier input already has a macro of that name, ignoring case; UNKNOWN\_TAGS (FAILED), a tag it adds isn't the store's and createMissingTags wasn't set; CREATE\_FAILED (FAILED), it couldn't be saved, and importing it again is safe. Null when it is OK.

**imageFailures** `[\[SupportMacroImportImageFailure!\]!](/docs/api-reference/v3/reference/support/support-macro-import-image-failure)` *required*

Images left as links: the macro is created, and its body links to each image's original host.

**fields**

**imageHost** `String!` *required*

The host the image is linked from.

**reason** `String!` *required*

Why it couldn't be copied.

**macro** `[SupportMacro](/docs/api-reference/v3/reference/support/support-macro)`

The macro the import created. Null when it created none.

**fields**

**addsInternalNote** `String`

Plain-text internal note the macro adds. Null adds none.

**addsTagNames** `[String!]!` *required*

Names of the tags the macro adds when applied. A name with no matching tag in the store is skipped.

**attachments** `[\[SupportMacroAttachment!\]!](/docs/api-reference/v3/reference/support/support-macro-attachment)` *required*

Files the macro attaches to a reply. Images the body shows are in inlineImages instead.

**body** `String!` *required*

Reply body as plain text. A variable appears as its bare name, such as customer\_first\_name, and the app fills it in from the ticket when the macro is used. This field returns variables unfilled. Variable names: current\_date, customer\_first\_name, customer\_full\_name, customer\_last\_name, customer\_email, agent\_first\_name, agent\_full\_name, agent\_last\_name, recent\_claim\_created\_date, recent\_claim\_processed\_date, recent\_claim\_status, recent\_order\_date, recent\_order\_delivery\_status, recent\_order\_fulfillment\_status, recent\_return\_status, recent\_order\_price, recent\_order\_returned\_date, recent\_order\_shipping\_address, recent\_order\_shipping\_date, recent\_order\_tracking\_number, recent\_order\_tracking\_url\_link, recent\_order\_number, recent\_return\_created\_date, recent\_return\_processed\_date, store\_name.

**bodyHtml** `String!` *required*

Reply body as HTML, with the same unfilled variables, each as \<span data-variable="customer\_first\_name">customer\_first\_name\</span>. Inline images use signed links that expire after one hour; query again for fresh ones.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the macro was created.

**filledBody** `[SupportMacroFilledBody](/docs/api-reference/v3/reference/support/support-macro-filled-body)`

The macro's body with its variables filled for a ticket, as the help desk composer fills it. Send its text with supportTicketReply. Needs customers\_read and orders\_read as well as support\_tickets\_read, because a variable can name the customer's email or an order's address. Null when the store has no such ticket. Costs 10 points per macro.

**fields**

**Arguments**

**ticketId** `ID!` *required*

The ticket whose customer, orders and returns fill the variables.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**id** `ID!` *required*

The id of this macro.

**inlineImages** `[\[SupportMacroAttachment!\]!](/docs/api-reference/v3/reference/support/support-macro-attachment)` *required*

Images the body shows, each where bodyHtml has an \<img> with its url. They go when a new body leaves them out, as in the app; supportMacroAttachmentDelete doesn't take them.

**name** `String!` *required*

Name shown in the macro picker. Unique within the store.

**setsEmailSubject** `String`

Email subject the macro sets on the thread. Null leaves it unchanged.

**setsStatus** `[SupportMacroStatus](/docs/api-reference/v3/reference/support/support-macro-status)`

Status the macro sets when applied. Null leaves the status unchanged.

**snoozeDuration** `[SupportTicketSnoozeDuration](/docs/api-reference/v3/reference/support/support-ticket-snooze-duration)`

How long the ticket is snoozed. Set only when setsStatus is SNOOZED.

**message** `String`

The same, in words. Null when it is OK.

**status** `[BulkItemStatus!](/docs/api-reference/v3/reference/common/bulk-item-status)` *required*

What the action did with the item.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.