How to Setup Your First Creatio Application for Development

October 11, 2024

Introduction

In Creatio, applications are modular building blocks designed to address specific business challenges. Each application can contain one or more content packages automatically generated when you create a new app. However, if you plan to move your app across different environments—from development to testing or production—you’ll need to properly set up your development instance.
This guide will walk you through the key steps to ensure your Creatio instance is ready for seamless development and smooth app transfers.

  1. Introduction
  2. Set a Prefix for Your Application
  3. Create an Application 
    1. How to Set the Maintainer System Setting to “Our Company”
    2. Create your application
    3. How Creatio Assigns the Current App Package:
    4. How to View or Change the Current App Package:
    5. Set Up the Current Package
    6. Managing Application/Package Saving Behavior
  4. Conclusion

Set a Prefix for Your Application

Before building your application, it’s important to configure a prefix that will help organize and distinguish your custom components. Navigate to System Settings and search for SchemaNamePrefix. This setting defines the prefix used for schema names and package codes, ensuring your app’s elements are easy to identify and manage across different environments.

Choose a prefix for your application and enter it in the Default Value column. Once done, click Save.

Create an Application 

Before creating your app, set your maintainer name in the Publisher (Maintainer code) system setting. Avoid using “Customer” as the maintainer, as this can make the app editable in development environments, potentially causing unintended modifications.

How to Set the Maintainer System Setting to “Our Company”

Navigate to System Settings

Search for the “Maintainer” Setting

Set the Value to “Our Company”

Save the Changes

Create your application

In the top-right corner, click Application Hub.

Select [New Application] to open the creation dialog box.

Choose a Template:

Customize the App:

View and Test Your App:

Important Notes

Creatio stores Freedom UI app data within the current app package.

The current app package is where all elements created or modified through the Application Hub are saved. Creatio assigns the current app package the first time you open or edit any element of the app. Each app is linked to one current app package.

How Creatio Assigns the Current App Package:

In our case, Creatio will automatically create a new package for the app, which will serve as the current app package.

How to View or Change the Current App Package:

  1. Open the Lookups Section:

    • Click the gear icon in the top-right corner → System SetupLookups.
  2. Create a New Lookup:

    • Click [New Lookup] on the toolbar.

    • Fill out the lookup properties:

      • Name: Enter a name (e.g., “App Package”).

      • Object: Select Package in installed application.

    • Save your changes.

  3. Set the Current App Package:

    • Open the App Package lookup.

    • Add a filter: Installed application = [Name of your app] (e.g., Vacation Requests).

This process ensures that the correct package is assigned to store your app’s customizations.

When you return to customize your app later, Creatio behaves differently depending on the tool you use:

To avoid errors when saving or transferring changes, make sure to set the app package in the “Current package” system setting (code: CurrentPackageId) before you begin working. This ensures that all changes—regardless of the tool—are saved consistently to the specified app package.

Set Up the Current Package

To change the current package:

Click Save to apply the changes.

Open System Settings:

Click the gear icon in the top-right corner → System SetupSystem Settings.

Find the “Current Package” Setting:

Use the search bar to filter the list by code, typing “Current package”.

Select the “Current package” system setting (code: CurrentPackageId).

Select Your App’s Package:

Choose the package created for your app (e.g., ExpLeaveManagement).

Managing Application/Package Saving Behavior

Creatio offers a feature that controls how the Freedom UI page editor determines the package to save a page. If you disable this feature, the editor will revert to its previous behavior, relying solely on the [Current Package] system setting to determine where to save pages. This may help ensure that pages are saved consistently in the intended package.

Disable the Feature: Feature-UseSchemaDesignPackageUIdByHierarchy

To disable this feature, go to the feature toggle page using the following link:

[Creatio URL]/0/Shell/#Section/AppFeature_ListPage

You can also add the “Feature Toggling” section to your workspace for quick access from the navigation bar. In recent versions, you can access it directly via [Creatio URL]/0/flags.

Once on the feature toggle page, search for:

Feature-UseSchemaDesignPackageUIdByHierarchy

To disable it, toggle off “Is enabled” and “Is enabled for current user.” Then, click “Save All” and “Clear Cache.”

After disabling, the Freedom UI page editor will use the Current Package system setting to save changes, with the following exceptions:

Conclusion

Setting up and managing your first Creatio development instance can significantly enhance your workflow and ensure seamless application customization. By understanding key features such as setting the current package and controlling how the Freedom UI page editor saves your work, you can avoid common pitfalls and ensure that your changes are stored in the correct locations.

With these best practices in mind, you’ll be well-equipped to leverage the full potential of Creatio’s powerful capabilities. As you continue to develop and refine your applications, remember to regularly check your settings and stay informed about any new features or updates that may enhance your development experience.

Happy developing!

Tags:

creatio
development
getting-started
best-practices