Skip to main content
Skip table of contents

Enablement and Configuration of GL Exports

The GL Exports feature enables you to export General Ledger (GL) files from Nimble AMS, using a single enhanced package which supports all three file formats (.csv, .txt, and .iif). This feature also provides you with pre-configured options for setting up GL exports to most commonly used GL systems.

To set up GL Exports for specific GL Systems or file formats like .csv, .txt and .iif, go to the recipe for the same.

To export the financial transactions created in Nimble AMS in the required GL file format:

  1. Create a batch export configuration record. The Apex class value selected in the Export Generator field controls the file format.

  2. Then, on each entity, you set the Batch Export Configuration that will be used to export GL files of that entity. 

  3. Deploy the fields and field sets from the GL Export Setup tab. Or, create your own field sets on Transaction and Batch objects.

  4. Finally, create or update GL Export Setting CMT record with the required details.

For details, refer to the below sections!

Prerequisites

Please contact support to learn more about how to set up GL Exports.

Configuration

1. Add/Update Batch Export Configuration Record

Make sure a Batch Export Configuration record is created or updated by selecting an apex class in the Export Generator field. To create a Batch Export Configuration, follow the steps given on Create a Batch Export Configuration.

2. Add Entity

On each entity, set the Batch Export Configuration that will be used to export the transactions of that entity.

To do this, follow the steps given below:

  1. In the tab bar, click App Launcher, or in Salesforce Classic, click Nimble AMS, Staff View, Button, All Tabs.

  2. Click Entities.

  3. Select a list view—like All Entities.

  4. Select one Entity for which you need to link the Batch Export Configuration record.

  5. Make sure the appropriate Batch Export Configuration is linked to the entity. If not, update it and save the entity record.

  6. Repeat the process for each entity, for which you need to export GL files.

3. Deploy/Create Field Sets

For ease and quicker set up, you can deploy the fields and field sets pre-created by us, for the following GL systems:

  • Sage Intacct

  • QuickBooks Online

  • QuickBooks Desktop

  • Microsoft Dynamics Great Plains

To deploy the pre-created fields & field sets on the Transaction & Batch object, follow the below steps:

  1. In the tab bar, click App Launcher, or in Salesforce Classic, click Nimble AMS, Staff View, Button, All Tabs.

  2. Click GL Export Setup.

  3. Select the radio button against your GL System.

  4. Click Create.

Wait for the success message.

Show Me How To Do This...

Batch Object - Header GL file Field Sets

Transaction Object - Detail GL file Field Sets


Where to find the deployed fields and field sets?

  • The pre-created custom fields and the custom field set can be found under the Transaction & Batch object.

    • Field Set name deployed on the Batch object: Microsoft Dynamics GP Header GL Export

    • Field Set name deployed on the Transaction object: Microsoft Dynamics GP Detail GL Export

  • The pre-created custom fields are editable and the labels/formulas can be modified based on the your needs.

  • We can add or remove the fields from the pre-created field set based on the your needs.

If not using the pre-created fields & field sets, you can create your own. To do this:

  • You need to create custom field sets on the Batch and Transaction objects.

    • Field Set created on the Batch object will be used as the Header GL file for this GL System.

    • Field Set created on the Transaction object will be used as the Detail GL file for this GL System.

  • Create new custom fields and use them in the field set, or the fields present in your org (stock product fields), or a combination of both.

    • It would be rare that no new custom fields would be needed for the GL export. Create all the fields that don't already exist that you will need to include on the GL export.


For Microsoft Dynamics GP, you will require two field sets:

  1. Batch object field set: Header file contains columns that correspond to this field set.

  2. Transaction object field set: Detail file contains columns that correspond to this field set.

To create the field sets, follow the steps given below:

  1. From Setup, in the Quick Find Box, enter Object Manager.

  2. Select Transaction from the list.

  3. From the left navigation menu, select Field Sets.

  4. Click New.

  5. Drag and drop the required fields on the field set.

  6. Click Save.

  7. If using Microsoft Dynamics GP as the GL System, perform the following steps:

    1. From Setup, go to Object Manager and select Batch from the list.

    2. From the left navigation menu, select Field Sets.

    3. Click New.

    4. Drag and drop the required fields on the field set.

    5. Click Save.

    6. Repeat the steps 7-11 for Transaction object.

4. Update/Create GL Export Setting CMT Record

By updating/creating the GL Export Setting Custom Metadata Type record with the required field set, you can customize the fields displayed on exported Header and Detail files. You will see these fields on the preview screen while exporting the batch.

To do this, follow the steps given below:

  1. From Setup, enter Custom Metadata Types in the Quick Find box, then select Custom Metadata Types.

  2. Click Manage Records next to GL Export Setting.

  3. Click New.

  4. Enter the Label of the GL Export Setting.

  5. Hit Tab key to populate GL Export Setting Name.

  6. If using Microsoft Dynamics GP, in Batch Field Set Name, enter the API name of the Batch field set created earlier. If using any other GL system, leave this as blank.

  7. In Fields to Group By, enter a comma-separated list of specific field’s API names to be used for grouping the transactions in the GL Export file. If this contains a value, GL file will be in summary format; if blank, GL file will be in detail format.

  8. In Fields to Order By, enter a comma separated list of specific field’s API names to be used for sorting the transactions in the GL Export file.

  9. In Transaction Field Set Name, enter the API name of the Transaction field set created earlier.

  10. Select the Use Header check box to display the header (column names or field labels) in the GL Export file.

  11. Click Save.

5. For .csv, optionally, update GL Export Custom Field CMT

If there is to be custom logic within the GL export, it can be included by configuring the GL Export Custom Field custom metadata type. Details on the fields within the GL Export Custom Field CMT are listed below. 

Field

Value

Label

Meaningful name for this configuration record.

GL Export Custom Field Name

API name of this configuration record.

Class Name

The name of the class that will do the logic that populates this field.

See Class Names in Table 2.

Context

Any additional data the custom field may need to do its job. Not required by every field.

Required for the following Class Names:

  1. TrailingEmptyCellCustomField

Field Name

The name of the field to wrap with the logic.

Contains the API name of the field to use to override the format of the GL Export. The overriding action will be based on the ClassName assigned to the CMT record.

This field is required for the following Class Names:

TrailingEmptyCellCustomField

  1. With this class, the GL Export will be updated to insert Blank columns AFTER the field name. The number of blank columns to insert is determined by the number in the Context field.


GL Export Custom Field CMT


Table 1: GL Export Custom Field CMT

Class Names used under the Export Custom Field CMT

These are custom Apex Classes that are installed along with the GL Exports package to modify the format of the GL Export that is generated. These values are used when creating CMT records for the GL Export package.

Apex Class

Purpose

TrailingEmptyCellCustomField

Adds a number of empty cells/columns after this cell equal to the number in the context field.

ie context = 3
csv output = value,,,,next value

Note: When using this class, the Field Name field in the CMT must be populated.

RowCountGlExportCustomField

Counts the total number of rows in the Export. 

DisplayPositiveDebitCreditValues

Adds all credits and debits within group

DisplayIncrementalGroupedRowNumber

Counts the number of rows within a group.

ie: 1, 2, 3, 4, 5, etc.

DisplayFirstGroupedRowValue

Only displays the full row/columns of detail for the first row in a group.

Groups are set via the "Fields to Group By"

Table 2: Class Names

You should now be able to control the format of the GL file to be exported and the columns that are displayed on the GL file using the fields that are part of the field sets. You can also sort and group data as required.

And you’re ready to go!

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.