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

# Sage Intacct Functions

## Create Sage Intacct object

**Function name:** `CreateSageIntacctObjectFunction`
**Category:** Write
**Destination:** Sage Intacct

Creates object in Sage Intacct

### Parameters

| Name                        | Label                | Required | Description                                                                      |
| --------------------------- | -------------------- | :------: | -------------------------------------------------------------------------------- |
| `integrationCredentialsId`  | Credentials          |    Yes   | Sage Intacct credentials to use.                                                 |
| `objectName`                | Object Name          |    Yes   | Name of the Sage Intacct object. For example 'customer'                          |
| `groupName`                 | Group name           |    Yes   | Name of the Sage Intacct group. For example 'Accounts Receivable'                |
| `objectData`                | Object Data          |    Yes   | The name of the variable containing object data to be created to in Sage Intacct |
| `outputObjectStateVariable` | Output resource name |    No    | Name of the variable by which the object will be stored in state                 |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Delete Sage Intacct object

**Function name:** `DeleteSageIntacctObjectFunction`
**Category:** Write
**Destination:** Sage Intacct

Deletes a Sage Intacct object

### Parameters

| Name                       | Label       | Required | Description                                                                          |
| -------------------------- | ----------- | :------: | ------------------------------------------------------------------------------------ |
| `integrationCredentialsId` | Credentials |    Yes   | Sage Intacct credentials to use.                                                     |
| `objectName`               | Object Name |    Yes   | Name of the Sage Intacct object. For example 'customer'                              |
| `groupName`                | Group name  |    Yes   | Name of the Sage Intacct group. For example 'Accounts Receivable'                    |
| `objectId`                 | Object ID   |    Yes   | Name of the variable containing the ID of the object to be deleted from Sage Intacct |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Query Sage Intacct objects

**Function name:** `QuerySageIntacctObjectFunction`
**Category:** Read
**Destination:** Sage Intacct

Function for querying Sage Intacct objects.

### Parameters

| Name                         | Label               | Required | Description                                                                                                                                                                                       |
| ---------------------------- | ------------------- | :------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `integrationCredentialsId`   | Credentials         |    Yes   | Sage Intacct credentials to use.                                                                                                                                                                  |
| `objectName`                 | Object Name         |    Yes   | Name of the Sage Intacct object. For example 'customer'                                                                                                                                           |
| `groupName`                  | Group name          |    Yes   | Name of the Sage Intacct group. For example 'Accounts Receivable'                                                                                                                                 |
| `fields`                     | Fields              |    Yes   | Comma separated list of fields to retrieve. For example: id,key,href                                                                                                                              |
| `filters`                    | Filters             |    No    | Filters to apply to the query with multiple lookup types.                                                                                                                                         |
| `filterExpression`           | Filter Expression   |    No    | Logical operators to apply when there are multiple filter conditions. The conditions in the filters array are implicitly numbered starting at 1. Supports and, or, and grouping with parentheses. |
| `orderBy`                    | Order By            |    No    | Set the order of the results by specifying field names to sort by and whether they should be in ascending (asc) or descending (desc) order.                                                       |
| `outputResultsStateVariable` | Output results name |    Yes   | Name of the variable by which the objects iterator will be stored in state                                                                                                                        |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Read Sage Intacct object

**Function name:** `ReadSageIntacctObjectFunction`
**Category:** Read
**Destination:** Sage Intacct

Reads a Sage Intacct object

### Parameters

| Name                        | Label         | Required | Description                                                                                  |
| --------------------------- | ------------- | :------: | -------------------------------------------------------------------------------------------- |
| `integrationCredentialsId`  | Credentials   |    Yes   | Sage Intacct credentials to use.                                                             |
| `objectName`                | Object Name   |    Yes   | Name of the Sage Intacct object. For example 'customer'                                      |
| `groupName`                 | Group name    |    Yes   | Name of the Sage Intacct group. For example 'Accounts Receivable'                            |
| `objectId`                  | Object ID     |    Yes   | Name of the variable containing the ID (key) of the object to be retrieved from Sage Intacct |
| `outputObjectStateVariable` | Output object |    No    | Name of the variable by which the object will be stored in state                             |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Update Sage Intacct object

**Function name:** `UpdateSageIntacctObjectFunction`
**Category:** Write
**Destination:** Sage Intacct

Updates a Sage Intacct object

### Parameters

| Name                        | Label         | Required | Description                                                                        |
| --------------------------- | ------------- | :------: | ---------------------------------------------------------------------------------- |
| `integrationCredentialsId`  | Credentials   |    Yes   | Sage Intacct credentials to use.                                                   |
| `objectName`                | Object Name   |    Yes   | Name of the Sage Intacct object. For example 'customer'                            |
| `groupName`                 | Group name    |    Yes   | Name of the Sage Intacct group. For example 'Accounts Receivable'                  |
| `objectId`                  | Object ID     |    Yes   | Name of the variable containing the ID of the object to be updated in Sage Intacct |
| `updateData`                | Update data   |    Yes   | The name of the variable containing data to be sent to Sage Intacct for update     |
| `outputObjectStateVariable` | Output object |    No    | Name of the variable by which the updated object will be stored in state           |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |
