back to top

Opening a Record for Edit in a Specific Page in Creatio Freedom UI

In a previous article I outlined how to open a page via code in a Freedom UI page. I also outlined how to open a record’s edit page via code in a Freedom UI page. However, it’s possible you have many different pages for the same entity. What if you want to open a record to edit in a specific Freedom UI page? This article will show how to specify the specific page you want to use when opening a record to edit.

In the scenario for this article, I have a simple page (actually a mini page dialog) where I can select the case status. I am going to open a case to edit in this specific page so the status is bound and the case status can be updated in this page. My page looks as follows:

Note, this is a page where Case is the data source. It’s another page bound to the case entity. When I open the case to edit for the sample in this article, I want to use this simple page.

To open a specific page, we’ll use a crt.OpenPageRequest. We’ll include the schemaName for the page we want to use, but will also include some details to initialize the page model in edit mode for a specific record.  The code will look as follows:

request.$context.executeRequest({
    type: "crt.OpenPageRequest",
    $context: request.$context,
    schemaName: "UsrCaseStatus_ModalPage",
	modelInitConfigs: [
		{
			action: "edit",
			recordId: caseId
		}
	]
});

The end result is that the case will open for edit using the specific page we’ve specified in the request.

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.

6 COMMENTS

  1. Hello, Ryan!

    Could you clarify that moment please?

    I’ve created a mini page via application hub and want to display it in modal on my entity card page.
    Code from the article just opens a new page in a chain (not in modal, just regular page)

    Is there anything extra, which didnt made to article? 🙂

    Same code also do the same

    “`js
    const { instance } = HandlerChainService; // dependency from “@creatio-devkit/common”

    const result = await instance.process({
    type: ‘crt.OpenPageRequest’,
    schemaName: “MyEntityModalPage”,
    modelInitConfigs: [
    {
    action: “edit”,
    recordId: “$Id”
    }
    ]
    });
    “`

    • What version of Creatio are you on? It was only in recent versions that they fixed this to open a modal as a modal and not as a page. In earlier versions that was not the case. I can’t remember which version it was fixed in but I believe it was 8.0.10 (or possibly 8.1). Since that was fixed, the code above does open a modal form as a modal for me.

    • Thank you for fast reply, Ryan!

      I’m sorry, your code worked perfectly.
      Issue was on my side – for some reason my app was in classic UI mode

      Now I’m wondering about setting manual size for modal window 🙂
      (since there’s no API docs)

    • Ah yes, that is true, if using Classic UI modals will display only as pages. As for setting the size, that is coming in a future version. Not sure the specific version, but the roadmap shows that Q1 2024 (since we’re in April, I assume possible 8.1.2 or 8.1.3? Ive not yet checked if it’s in those versions.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

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.

Using the AI Prompt to Create Dynamic Folders in Creatio

Using Creatio's AI prompt to create the filter for a dynamic folder works best if you specifically ask for that, and if you are as clear and direct as possible about the filtering, conditions.

Related Articles

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 Videos