--- title: "Creating an output configuration (ReturnAction)" slug: "configuring-the-modus-app-for-d365-bc" description: "Set up dox42 output configurations in Business Central to control document creation, format, and storage, ensuring efficient document management." tags: ["task", "d365bconline", "dox42Online", "BC V3.1"] updated: 2025-07-22T06:28:44Z published: 2025-07-22T11:43:39Z canonical: "help.dox42.com/configuring-the-modus-app-for-d365-bc" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.dox42.com/llms.txt > Use this file to discover all available pages before exploring further. # Creating an output configuration (ReturnAction) Create an output configuration to control the way documents are created and processed. For instance, specify - how dox42 should be called, - in which file format your document(s) should be generated, - where your document(s) should be stored. **Follow these instructions if you want to generate a single document and display a preview of the generated document directly on your Business Central client.** > [!NOTE] > Note > > If you want to generate multiple documents in bulk and save them to a specific location, see [Create an output configuration (QueryString)](/v1/docs/creating-an-output-configuration-query-string). ## Prerequisites - You have the dox42 Administrator role in Business Central (to set the role, go to the **cogwheel** at the top right of Business Central, select the **My settings** menu and then the **dox42 Administrator** role). ## Steps 1. Log in to your D365 BC account. 2. In the **Activities** section, select the **Output Configurations** tile. ![](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/image(85).png) **Activities** section with **Output Configurations** tile The **dox42** **Output Configurations** dialog opens. 3. Select the **New** button to add a new output configuration. ![](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/image(83).png) **dox42 Output Configurations** dialog The **dox42 Output Configuration Card** dialog opens. ![](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/image(84).png) **dox42 Output Configuration Card** dialog 4. Enter a descriptive **Code** name, e.g.` “PREVIEW”`, and a suitable **Description** for your new output configuration in the respective text fields. 5. From the **Output Action** dropdown menu, select the Output Action type that meets your needs. In order to generate a single document and display a preview of the generated document directly on your Business Central client, select the `Return` type (Return Action). > [!NOTE] > Note > > - Business Central Online offers the following Output Actions: > - `Return` > - `QueryString` > - `Group` > - If you want to generate any other output, select the `Query String` type. In combination with the Service Designer, the `Query String` type allows you to create any output you want. See [Create an output configuration (QueryString)](/v1/docs/creating-an-output-configuration-query-string). > - For information on other Output Actions, see the corresponding dox42 Server or dox42 Online documentation. 6. Enter a **File Name** and **Folder Name** for the output configuration. The names are composed by placeholders with the following meaning. Additional placeholders may be passed by other apps. > [!NOTE] > Placeholders for *File Name* and *Folder Name* > > - *%sysfilename%*: Internal document specific filename, depending on the base record (formerly %5) > - *%ext%*: The file extension (formerly %1) > - *%tsmin%*: Timestamp with an accuracy of minutes in the format yyyyMMdd_hhmm (formerly %2) > - *%tssec%*: Timestamp with an accuracy of seconds in the format yyyyMMdd_hhmmss (formerly %3) > - *%tsmil%*: Timestamp with an accuracy of milliseconds in the format yyyyMMdd_hhmmssttt (formerly %4) > - *%userid%*: The code of the current user > - *%company%*: The name of the current company 7. From the **File Extension** dropdown menu, select the output format, e.g. `PDF`. 8. Use the **arrow** button at the top to exit the window. ## Result You have set up a new output configuration. ## Next step [Relate a document to an output configuration](/v1/docs/relating-a-document-to-an-output-configuration)