Good day to everyone! I’ve encountered a task where I need to update the NextSteps component. I used crt.LoadData and crt.ChangeNextStepsStateRequest, but they didn't produce the desired results.

After executing, the component does not update, and data is not displayed; only after a full page refresh does the Next Step appear.

Has anyone encountered a similar issue and could help with a solution? Thanks in advance!
 

{
				request: "crt.HandleViewModelInitRequest",
				handler: async function(request, next) {
					this.applyMethods(request.$context);
					Terrasoft.ServerChannel.on(Terrasoft.EventName.ON_MESSAGE, (await request.$context.ServerMessageReceivedFunc), request.$context);
					await next.handle(request);					
				},
				applyMethods: function(context) {
					let methods = {
						refreshNextStepsStates: async function(date) {
							console.debug(date);
							const handlerChain = sdk.HandlerChainService.instance;
							await handlerChain.process({
								type: 'crt.ChangeNextStepsStateRequest',
								$context: context,
							});
						},						
 
						showWarnDialog: async function(message) {
							const actionsConfig = [
								{
									key: "OK",
									config: {
										color: "warn",
										caption: resources.localizableStrings.BnzShowDialogCloseBtn
									}
								}
							];
							const result = await context.executeRequest({
								type: "crt.ShowDialogRequest",
								$context: context,
								dialogConfig: {
									data: {
										message: message,
										actions: actionsConfig
									}
								}
							});
						},
 
						onSubscribeWebSocket: async function(event, message) {
							if (message.Header.Sender === "Banza_ApprovalAction_WebSocketSender") {
								await this.handleShowWarnMessage(message);
							}
						},
 
						handleShowWarnMessage: async function(message) {
							const sysValuesService = new sdk.SysValuesService();
							const sysValues = await sysValuesService.loadSysValues();
							const caseId = context.attributes.Id;
							const currentUserContactId = sysValues.userContact.value;
							const msgObj = JSON.parse(message.Body);
							if (msgObj && sysValues && currentUserContactId === msgObj.currentUserContactId) {
								if (caseId === msgObj?.recordId) {
									if (msgObj.action === "showWarnDialog") {
										await this.showWarnDialog(msgObj.message);
										await this.refreshNextStepsStates(msgObj?.date);
									}
								}
							}
						},
 
 
					context.ServerMessageReceivedFunc = methods.onSubscribeWebSocket.bind(context);
					Ext.apply(context, methods);
				},
}
Like 3

Like

0 comments
Show all comments

Hello!
I have encountered such problems, maybe someone knows how to solve them?

There is a configured queue and a process that processes a queue item.

 

 

The first problem is that when opening the Cases_FromPage page the Case state is not loaded into the progress bar

 

 

The second problem I encountered is that it is necessary to close the page automatically and terminate the process element so that the queue element is considered processed, but this problem is solved with the help of this request:

{
	request: "crt.HandleViewModelInitRequest",
	handler: async function(request, next) {
		this.applyMethods(request.$context);
		await next.handle(request);					
	},
	applyMethods: function(context) {
		let methods = {
			closeProcessElement: async function() {
				const state = window.history.state;
				if (state && state.isProcessCardInChain && state.executionData && state.executionData.isOpened) {
					const executionData = state.executionData;
					const result = await context.executeRequest({
						type: "crt.CompleteProcessElementRequest",
						processElementUId: executionData.currentProcElUId,
						$context: context
					});
				}
			}
		};
		Ext.apply(context, methods);
	}
},

 

But another problem arose when changing the Case stage, in this case manually, the page doesn't always close.

I noticed that this behaviour on those stages where DCM has elements of activity creation.

In my case here:

When changing the stage from Waiting for Evaluation to Evaluation, the page should have closed.

The crt.CompleteProcessElementRequest request was executed.

Who knows what could be the problem?
Thanks!

Like 0

Like

1 comments

Hello,

 

Please contact our support team directly at support@creatio.com and make sure to describe each problem in a separate request so we could properly analyze and process these issues.

Show all comments

It looks like there are some duplication in localization, but it is hard to define the source of error.

2024-04-02 09:47:54,132 [278] ERROR INFRADIM\bpm_db_admin ConfigurationBuild LogErrors - System.ArgumentException: An item with the same key has already been added.

   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

   at Terrasoft.Core.SchemaResourceManager.PrepareLoadedResources(IEnumerable`1 resources, IEnumerable`1 schemaHierarhy, IEnumerable`1 cultures)

   at Terrasoft.Core.SchemaResourceManager.LoadRuntimeResourcesForSchema(Dictionary`2 localResourceSets, IEnumerable`1 schemaHierarchyIds)

   at Terrasoft.Core.SchemaResourceManager.LoadRuntimeResourcesForSchema(Dictionary`2 localResourceSets)

   at Terrasoft.Core.SchemaResourceManager.InternalGetResourceSet(CultureInfo cultureInfo, Boolean createIfNotExists, Boolean tryParents)

   at Terrasoft.Core.SchemaResourceManager.GetString(String name, CultureInfo culture)

   at Terrasoft.Common.LocalizableValue`1.GetCultureValue(CultureInfo culture, Boolean throwIfNoManager, Boolean useCultureFallback)

   at Terrasoft.Common.LocalizableValue`1.LoadCultureValues(IEnumerable`1 culturesInfo)

   at Terrasoft.Core.Schema.LoadLocalizableValues(IEnumerable`1 culturesInfo)

   at Terrasoft.Core.ClientUnitSchema.LoadLocalizableValues(IEnumerable`1 culturesInfo)

   at Terrasoft.Core.ClientUnitSchema.LoadLocalizableValues()

   at Terrasoft.Core.ClientUnitSchema.InitializePrimaryInfo()

   at Terrasoft.Core.SchemaManager`1.get_DefSchema()

   at Terrasoft.Core.SchemaManager`1.InternalCreateSchema(String name, TSchemaManagerSchema baseSchema, UserConnection userConnection, Guid uid, Boolean fromMetaData)

   at Terrasoft.Core.SchemaManager`1.InternalCreateSchema(String name, ISchemaManagerItem baseSchema, UserConnection userConnection, Boolean fromMetaData)

   at Terrasoft.Core.MetaDataSerializer.d__7.MoveNext()

   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)

   at Terrasoft.Core.SchemaManager`1.DeserializeSchemaManagerItem(Stream metaData, UserConnection userConnection)

   at Terrasoft.Core.SchemaManager`1.DeriveSchemaManagerItem(UserConnection userConnection, EntityCollection orderedSchemas)

   at Terrasoft.Core.SchemaManager`1.CreateRuntimeSchemaFromMetaData(Guid schemaUId, UserConnection userConnection)

   at Terrasoft.Core.ClientUnitSchemaManager.FindInstanceByName(String name)

   at Terrasoft.Core.ClientUnitSchemaManager.GetInstanceByName(String name)

   at Terrasoft.Core.ClientContentGeneration.ConfigurationClientContentFileGenerator.GetClientUnitSchema(ClientUnitSchemaManager manager, String schemaName)

   at Terrasoft.Core.ClientContentGeneration.ConfigurationClientContentFileGenerator.d__27.MoveNext()

Like 0

Like

1 comments

Hello,

 

Thank you for your question. According to the error code, you can see that the error occurs when preparing loaded resources (PrepareLoadedResources).

However, this error can occur in many different cases. Most likely, there are duplicate values in the DB tables.



The best solution would be to open a ticket with the Creatio support team so that we can analyze the issue in detail based on reproducing the error and analyzing the application logs.

 

Thank you.

Show all comments

Is it possible to change the name of a Freedom UI section?

Like 0

Like

2 comments
Best reply

Hello,



To change the section name, you need to go to Application Hub. Then select the section you want to change.

Go to Navigation and sections and select the required section, for example, Account. And you will see a field where you can change the name.

Hello,



To change the section name, you need to go to Application Hub. Then select the section you want to change.

Go to Navigation and sections and select the required section, for example, Account. And you will see a field where you can change the name.

Malika,

Thank you.

Show all comments

Hi community,

 

I want to merge duplicated records under the section Cases. I have a ton of cases that have common information and in my situation, there is a key field created by me which stores an external identifier of the record, which is different from the default Case autogenerated number field. If I filter cases by the value of that field I find more than one record, which means that there is redundancy that I need to fix.se

 

I can't do a excel file upload trying to overwrite the information as it will fail when it encounters duplicates. I think the only way to approach this is with a business process, but in the available operations there is one called Find and merge duplicates

But it only lets me search for records from the sections Contacts and Accounts, so I can't access Cases as I want.

 

Could you please help me implement this or suggest a possible solution?

 

Thanks in advance for your help.

Like 0

Like

1 comments

Hello!

 

Please check the article below. There you will find detailed instructions regarding your question.

https://academy.creatio.com/docs/user/platform_basics/business_data/dup…

 

Show all comments

I am trying to submit a request for canes and that keeps popping up I need help Urgently please. I just put random versions and product because I don't know that area. But I am on the Canes/Creatio website trying to submit a request and it isn't working.

Like 0

Like

1 comments

Hello, 

 

Please contact support team at support@creatio.com and provide more details of the issue along with an access to the site where it occurs to proceed with the investigation. 

 

Best regards,

Anastasiia

 

Show all comments

We are trying to deploy Global Search service in kubernetes environment but globalsearch-web-indexing-service is failing in CrashLoopBackOff. Do we need repository access to set up the current version of the global search service?

If yes, how can we achieve that. Do we need separate license for it?



We are following the documentation https://academy.creatio.com/docs/8-0/user/on_site_deployment/containerized_components/global_search_shortcut/global_search

 

 

Like 0

Like

2 comments

Hi,

 

I asked Creatio's support and they provided access to their repository.

 

BR,

Robert

Hi Sabin,

 

as for now, you need to contact the Creatio Support team in order to get access to the files for the services such as Global search.

Please, don't hesitate to send an email to support@creatio.com.

 

Regards,

Gleb.

Show all comments

We appear to have issues with creating Recurring Events in Calendar.

I have tried creating a basic (4 occurrences) of an Event yesterday, and while Creatio created all 4 occurrences, the Notification Center reports this:

"Create recurring activities action failed. Contact your system administrator for details"



In addition, when creating recurring events, we often get:

  • Creatio becomes very slow or unresponsive -- sometimes possible to connect with an Incognito window
  • Clicking on Save, the popup screen does not go away (need to X out of it)
  • Browser developer tools shows errors with MakeRecurring (error while sending request application server request time-out, POST, {parentId: xxx, frequency: W, interval: 1, until: 04/15/2023, startDate 02/20/2023, byDay: 2})
  • If Events are created, then Creatio becomes very slow and you need to logout and log back in again
  • Deleting the recurring event causes things to hang

*Sometimes* things work OK and the only issue is the Notification Center report that it failed, but most often it just does not work properly. 

I am trying to book meetings that occur on a weekly basis, and have tried both booking them at an interval of 7 days and using the weekly choice and choosing only one (or two) day(s) of the week, as choosing all appropriate days seems to really kill things.

Here is a video with voice over with examples of the problems: https://drive.google.com/file/d/1m1tEBG_RXV-ARKWNO71AVaDpzlpeq1-O/view?…

 

Any suggestions of how we might do things so that the Calendar and recurring events are more responsive?

Like 1

Like

1 comments

Hi Jeffrey,

 

I reviewed this app and was unable to reproduce the issue on our end. However, this could be a result of conflicts between your custom logic in the Activity section and the add-on logic. This solution works using stored procedure functionality, which can affect Creatio negatively. 

 

We decided to remove this add-on from the Marketplace to avoid similar problems in the future.

We do not recommend using it.

Also, have sent feedback to our R&D team about including such functionality in Creatio out of the box.

 

Thank you for your request, we appreciate it!

Show all comments

Hello,

 

I recently set up a new Freedom UI page which is no longer loading.

 

I am seeing the following error in console:

 

scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1 ERROR TypeError: Cannot read properties of undefined (reading 'map')
    at 355.js:1:40066
    at 388.js:16:4661
    at r._next (388.js:16:3329)
    at r.next (388.js:14:14878)
    at scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1:353804
    at N.Te._next (scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1:353224)
    at N.next (scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1:351743)
    at scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1:369134
    at N.Te._next (scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1:353224)
    at N.next (scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1:351743)
    at scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1:359003
    at N.Te._next (scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1:353224)
    at N.next (scripts.js?hash=ca02198d1fea4be091f9d9f8d644f662:1:351743)
    at r._next (388.js:14:15147)
    at r.next (388.js:14:14878)

Any advice would be appreciated.

Like 0

Like

3 comments

Hi Lewis, 



Please contact our support team since this question has to be checked more detailed. 



Kind regards,

Roman

Hi,

How was this issue solved?

Hello Sasori,

 

The issue was related to the "Schema_name" schema, which had a reference to the "Column_name" column that didn't exist in the object. This led to the assumption that it might have been renamed or deleted

Show all comments

Hi team

 

is it possible to show dashboard on section case for a portal user?

Like 0

Like

2 comments

Hi,

I solved configuring the portal home page.

Is it possible to have dashboard on the section case page ?

Hello Stefano, 

 

Unfortunately, it is not possible to add a dashboard even for a custom section. We created a task for our R&D department to implement in the future. 

 

Best Regards, 

Igor

Show all comments