back to top

Persisting Data Between Pages in Client-Side Storage in Creatio (formerly bpm’online)

When developing in Creatio you might need to persist some information or data between pages, or share something between different parts of the application. There are many ways to do this sort of thing in Javascript, but Creatio does provide a simple way to persist data in the client-side session so you can share data between requests or pages. This is done using the StorageUtilities module.

To use the StorageUtilities module, you need to add it as an import into your code. For example, if you’re using this in the Contact page, you’ll add it to the top line like this:

define("ContactPageV2", ["StorageUtilities"], function(StorageUtilities) {
    return {
        entitySchemaName: "Contact",
 
        // ... all the rest of the stuff
 
    };
});

Now, you’ll have the StorageUtilities object available to use.

To Set a Value To Save in Client-Side Storage

To save a value in the client-side storage, you can use the following. You’ll give the item a unique name for it’s key, you’ll use that key to retrieve the value:

StorageUtilities.setItem("I am saving this string", "MyItemKey");

Note the parameter order: the first parameter is the data you are saving and the second parameter is the key (or name) for what you’re saving (which feels backwards to me)

To Get a Value from Client-Side Storage

To get a value from the client-side storage, you’ll use the key you specified when you added the item to the storage:

if (!Ext.isEmpty(StorageUtilities.getItem("MyItemKey")) {
  var myValue = StorageUtilities.getItem("MyItemKey");
}

Warning

Be aware, this value is persisted in the Terrasoft object loaded in the browser. It is not shared between browser tabs and will be lost if the user refreshes the page or logs out and back in again. This is not saved to the database. If you need the value to persist between sessions, it’s better to use a system setting with a value set for each user.

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Ryan Farley
Ryan Farleyhttps://customerfx.com/article/author/ryanfarley/
Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Building AI-Powered Workflows in Creatio Without Writing Code

See how Creatio can combine AI with no-code business processes to qualify, summarize, and route incoming leads while keeping your existing business rules and human oversight in place.

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Related Articles

Building AI-Powered Workflows in Creatio Without Writing Code

See how Creatio can combine AI with no-code business processes to qualify, summarize, and route incoming leads while keeping your existing business rules and human oversight in place.

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Related Videos