Hi Everyone,

 

Is it possible to refresh of a page (Freedom UI Page) through the business process? Currently, we have multiple business processes running in our Freedom UI Order page and the client has to do a manual refresh every time. So I was wondering if it's possible to automate it as well through the process? I know that it is possible in Classic UI and I have seen the Marketplace app for it as well but that doesn't work in Freedom UI. So any ideas?

Like 2

Like

3 comments
Best reply

To do this in a Freedom UI page, this article shows how to receive the server message:

https://customerfx.com/article/receiving-server-side-messages-in-a-creatio-freedom-ui-page/

 

Once the message is received, you can refresh the page using the code outlined in this article:

https://customerfx.com/article/refreshing-reloading-page-or-list-data-on-a-creatio-freedom-ui-page/

 

Also, for Freedom UI, there is a new option where you can set an entity to always automatically refresh the page when it’s updated in a process, as an alternative approach to the above. See https://customerfx.com/article/automatically-refreshing-a-creatio-freedom-ui-page-or-list-after-updating-a-record-in-a-process/

 

Ryan

+1 for Freedom UI

To do this in a Freedom UI page, this article shows how to receive the server message:

https://customerfx.com/article/receiving-server-side-messages-in-a-creatio-freedom-ui-page/

 

Once the message is received, you can refresh the page using the code outlined in this article:

https://customerfx.com/article/refreshing-reloading-page-or-list-data-on-a-creatio-freedom-ui-page/

 

Also, for Freedom UI, there is a new option where you can set an entity to always automatically refresh the page when it’s updated in a process, as an alternative approach to the above. See https://customerfx.com/article/automatically-refreshing-a-creatio-freedom-ui-page-or-list-after-updating-a-record-in-a-process/

 

Ryan

Thanks Ryan, you rock as always

Show all comments

Hi Community,

 

Is there a way to get the id of the attachment that has been generated through Process file in a business process as illustrated in file attached?

 

The idea is to read the id of this generated report to apply custom access rights.

 

 

Thank you for your help,

Like 0

Like

1 comments

I do wish it would return the ID, however, since it *can* create multiple files for whatever matches the filter conditions it's not always a single ID or file created.

What I typically do is do a read immediately after for attachments on the record, sorted by Created On desc, and also use the Name of the file based on the naming of the printable used. It's not ideal but has worked for me.

Ryan

Show all comments

Hi Community,

I have restored a cloud instance, locally. In Cloud the functionality (FileApiService) works.

The problem I am facing is that I can not upload files in the Attachments object (ex AccountFile) in the local instance.

 

Console

Console Response is in the attached file

File attachments
Like 0

Like

2 comments
Best reply

Good day,

 

Is it possible that the cloud instance was set up to upload the files to an S3 storage?

Please try changing the ActiveFileContentStorage setting to the database and compiling the system.



After that please try uploading the file again.

Thank you.

I will re-upload the Console Response , because the text file can not be opened.

{
    "errorInfo": {
        "errorCode": "NullReferenceException",
        "message": "Object reference not set to an instance of an object.",
        "stackTrace": "   at Terrasoft.Core.AppConnection.get_S3ConnectionParameters()\r\n   at Terrasoft.File.S3.Settings.S3ConnectionSettingsProvider..ctor(AppConnection appConnection)\r\n   at DynamicInjectord7776e6fbfbf47f3aaef1f7b3f02b5c5(Object[] )\r\n   at Ninject.Activation.Context.ResolveInternal(Object scope)\r\n   at Ninject.Activation.Context.Resolve()\r\n   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)\r\n   at Ninject.Planning.Targets.Target`1.ResolveWithin(IContext parent)\r\n   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at Ninject.Activation.Providers.StandardProvider.Create(IContext context)\r\n   at Ninject.Activation.Context.ResolveInternal(Object scope)\r\n   at Ninject.Activation.Context.Resolve()\r\n   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)\r\n   at Ninject.Planning.Targets.Target`1.ResolveWithin(IContext parent)\r\n   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at Ninject.Activation.Providers.StandardProvider.Create(IContext context)\r\n   at Ninject.Activation.Context.ResolveInternal(Object scope)\r\n   at Ninject.Activation.Context.Resolve()\r\n   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)\r\n   at Terrasoft.Core.Factories.ClassFactory.<>c__DisplayClass16_0.<Get>b__0()\r\n   at Terrasoft.Core.Factories.ClassFactory.GetInstance[T](Func`1 action)\r\n   at Terrasoft.File.StorageInstanceFactory.CreateContentStorage(FileMetadata fileMetadata)\r\n   at Terrasoft.File.File`2.<InvokeOnContentStorage>d__32.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Terrasoft.File.File`2.<WriteAsync>d__45.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Terrasoft.Common.Threading.AsyncPump.Run(Func`1 asyncMethod)\r\n   at Terrasoft.Configuration.FileUpload.FileUploader.Upload(IFileUploadConfig fileUploadConfig)\r\n   at Terrasoft.Configuration.FileUpload.FileUploader.UploadFile(IFileUploadConfig fileUploadInfoConfig)\r\n   at Terrasoft.Configuration.FileUpload.FileUploader.UploadFile(IFileUploadInfo fileUploadInfo, Boolean isSetCustomColumns)\r\n   at Terrasoft.Configuration.FileApiService.UploadFile(Stream fileContent)"
    },
    "success": false,
    "nextPrcElReady": false,
    "queryId": null,
    "responseStatus": {
        "ErrorCode": "NullReferenceException",
        "Message": "Object reference not set to an instance of an object.",
        "StackTrace": "   at Terrasoft.Core.AppConnection.get_S3ConnectionParameters()\r\n   at Terrasoft.File.S3.Settings.S3ConnectionSettingsProvider..ctor(AppConnection appConnection)\r\n   at DynamicInjectord7776e6fbfbf47f3aaef1f7b3f02b5c5(Object[] )\r\n   at Ninject.Activation.Context.ResolveInternal(Object scope)\r\n   at Ninject.Activation.Context.Resolve()\r\n   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)\r\n   at Ninject.Planning.Targets.Target`1.ResolveWithin(IContext parent)\r\n   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at Ninject.Activation.Providers.StandardProvider.Create(IContext context)\r\n   at Ninject.Activation.Context.ResolveInternal(Object scope)\r\n   at Ninject.Activation.Context.Resolve()\r\n   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)\r\n   at Ninject.Planning.Targets.Target`1.ResolveWithin(IContext parent)\r\n   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at Ninject.Activation.Providers.StandardProvider.Create(IContext context)\r\n   at Ninject.Activation.Context.ResolveInternal(Object scope)\r\n   at Ninject.Activation.Context.Resolve()\r\n   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)\r\n   at Terrasoft.Core.Factories.ClassFactory.<>c__DisplayClass16_0.<Get>b__0()\r\n   at Terrasoft.Core.Factories.ClassFactory.GetInstance[T](Func`1 action)\r\n   at Terrasoft.File.StorageInstanceFactory.CreateContentStorage(FileMetadata fileMetadata)\r\n   at Terrasoft.File.File`2.<InvokeOnContentStorage>d__32.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Terrasoft.File.File`2.<WriteAsync>d__45.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Terrasoft.Common.Threading.AsyncPump.Run(Func`1 asyncMethod)\r\n   at Terrasoft.Configuration.FileUpload.FileUploader.Upload(IFileUploadConfig fileUploadConfig)\r\n   at Terrasoft.Configuration.FileUpload.FileUploader.UploadFile(IFileUploadConfig fileUploadInfoConfig)\r\n   at Terrasoft.Configuration.FileUpload.FileUploader.UploadFile(IFileUploadInfo fileUploadInfo, Boolean isSetCustomColumns)\r\n   at Terrasoft.Configuration.FileApiService.UploadFile(Stream fileContent)",
        "Errors": null,
        "Meta": null
    },
    "rowsAffected": -1
}

 

Good day,

 

Is it possible that the cloud instance was set up to upload the files to an S3 storage?

Please try changing the ActiveFileContentStorage setting to the database and compiling the system.



After that please try uploading the file again.

Thank you.

Show all comments

Hi Everyone. I have a custom Orders screen, in which we assign orders to different catchers. So we simply have a list of catchers from which we can select catchers and then populate them in the below list. But we are looking to further move to an advance level. Our plan is to somehow show list of catchers that are available and not available. Initially we planned to display 2 different lists, one those are available and second that are not available while making a record in our Orders.

 

The availability depends upon the catcher. If the catcher is in a previous order with time less 12 hours. Then he is not available. Is this possible within Creatio? If so, then a short guide to how it is possible would be great! Thanks!

Like 1

Like

1 comments

Hello!

 

For your idea, you could implement 2 different lookups. Below you will find information on how to create a lookup: https://academy.creatio.com/docs/user/setup_and_administration/system_s…

Show all comments

Hi Community,

I have created a detail in a section. Inside the detail I have created a new tab and have added a custom"Attachments" detail.

-I have followed this guide : https://academy.creatio.com/docs/7-16/developer/interface_elements/deta…

- I have also named The entity for the attachments like"ParentEntityFile"

This is what i get

Why is this happening ?

Sasori

Like 0

Like

2 comments

Hi Community,

Any udpate on this issue ?

Hi Sasori,

It looks like you didn't create an attachment detail properly.

In this situation, it is better to create a section via "Section Wizard" based on your detail object, and in there use attachment detail. After creating a section you can just hide it from a workplace and customize the page as you need.

Show all comments

Hi,



On our contact page we have business rules regulating the business & mobile phone.



If mobile phone not filled in, business phone is mandatory and vice versa.



On classic UI page, the mandatory " * " signal dynamically disappears when filling in the form.



This does not happen on the new Freedom UI minipage, in the picture here below, the * should have disappeared in front of mobile phone, as the business phone is filled in.



(It will properly save though, in terms of data, the business rules work).



Like 0

Like

1 comments

Hello,

 

Thank you for sharing this information with us. We have created a task to have the responsible R&D team address this behavior in future releases.

Show all comments

Hi,



Is it possible to set a country as default for phones in Freedom UI ?



Always stuck on USA (+1) by default...







Thanks,



Damien

Like 2

Like

10 comments
Best reply

Hello.

In order to set default flags config
{
      "operation": "merge",
      "name": "MobilePhone",
      "values": {
        "displayPhoneMask": true,
/* set view mode with the flags */
        "alwaysShowFlags": true,
/*this block adds required configuration - you should place all parameters here*/
        "countrySelectionConfig": {
          "nationalMode": false,
          "autoHideDialCode": false,
          "excludeCountries": ["ru", "by"],
/*useful feature to set favourites countries - they will be placed at the top */
          "preferredCountries": ["ua", "de", "uk", "pl", "md", "ro", "cz", "sk", "us"],
          "initialCountry":"ua"
        }
      }
    }
BW,
Oleksandr Lisovyi, MasterCRM

Sorry cannot remove the "£", post editing is not working on the community today



Hello Damien,

 

We have checked your request and unfortunately it is not possible to set a phone mask with a certain code by default at the moment, but I registered this idea for our developers so that they would consider the possibility of implementing such functionality in future releases.

Thank you,



This new dropdown list always defaulting to US is actually a decrease towards poorer UI experience vs blank field we used to have (more clicks, slowed down input)



Especially that you cannot type in the country code +41 and it "naturally" goes to the right country, you need to do a manual letter search each time.



On a positive note --> it makes sure  everyone fills in the country codes now and the numbers show in the correct format of the country.

Could you please provide us with updates on this question? May be you have reference for crt.PhoneInput?

Hi, 

Yes, our clients are still asking how can we change the default country, does not make sense for all the international users to be stuck on USA as default. Any update ?

Thanks, 



Damien

When will this functionality be added? Because it's very inconvenient to constantly select a mask. 

Mira Dmitruk,

Good morning

 

Do you know in wich table is the phone codes?, I want in the meantime delete all countries not needed to made easier found the country codes we usually need.

 

Or another way to disable/delete not needed phone codes?

 

Thanks in advance

Julio

Hi everyone. 

 

How can we select the country code by default? 

We must have a system setting to select the country.

luis.goncalves@imdigital.pt,

Hi Luis, the only way I have found is to define, in the object to which the phone numbers belong, the default value with the prefix you need.

 

The problem, is that when saving the record, all phone numbers are saved with that prefix, whether the user has filled them a number or not.

 

Then if you decide to do something with the uncompleted numbers, with a process with a start signal regarding edited record or new record and if the phone numbers have not been filled decide what to do with them, keep as they are or reset to an empty phone number ...

 

Hello.

In order to set default flags config
{
      "operation": "merge",
      "name": "MobilePhone",
      "values": {
        "displayPhoneMask": true,
/* set view mode with the flags */
        "alwaysShowFlags": true,
/*this block adds required configuration - you should place all parameters here*/
        "countrySelectionConfig": {
          "nationalMode": false,
          "autoHideDialCode": false,
          "excludeCountries": ["ru", "by"],
/*useful feature to set favourites countries - they will be placed at the top */
          "preferredCountries": ["ua", "de", "uk", "pl", "md", "ro", "cz", "sk", "us"],
          "initialCountry":"ua"
        }
      }
    }
BW,
Oleksandr Lisovyi, MasterCRM

Show all comments

Hi, everybody!

 

Given:

There is a detail with an editable grid

It is necessary to apply some filter to the records of the part reference field, but only if there are no records in another part (OrderProduct object) (for a specific Order)

Solution attempt:

An attribute with lookup List Config has been added to the details page:

<br />
      "PrbProduct": {<br />
        "dataValueType": Terrasoft.DataValueType.LOOKUP,<br />
        "lookupListConfig": {<br />
          "filters": [<br />
            function() {<br />
              var subFilterGroup = this.Terrasoft.createFilterGroup();<br />
              subFilterGroup.addItem(this.Terrasoft.createColumnFilterWithParameter(this.Terrasoft.ComparisonType.EQUAL, "Order", this.$PrbOrder.value));<br />
              var filterGroup = this.Terrasoft.createFilterGroup();<br />
              filterGroup.logicalOperation = this.Terrasoft.LogicalOperatorType.OR;<br />
              filterGroup.addItem(this.Terrasoft.createNotExistsFilter("[OrderProduct].Id", subFilterGroup));<br />
              filterGroup.addItem(this.Terrasoft.createColumnFilterWithParameter("PrbOrder", this.$PrbOrder.value));<br />
              return filterGroup;<br />
            }<br />
          ]<br />
        }<br />
      },<br />

 

Problem:

It is not possible to find the correct path to the column in create Not Exists Filter. Or there is an error like "Column on the path [Order Product].Id was not found in the "Product" schema, or (with some other values) the filter does not work as needed.

Tell me, please, is it even possible to create Not Exists Filter/createExistsFilter without binding to the detail object?

How to correctly specify the "path to the column" in this case?

Like 0

Like

4 comments
Best reply

Fariz Mamedov,

 

Just open the console in browser (F12 in Chrome) and go to the "Network" tab. And then find the correspondent SelectQuery request and review its body:

Hello Fariz,

 

The task is to create a filter starting from the object of the lookup column for which we are creating the lookupListConfig. The easiest way to properly build path to the needed column is creating the same filter, but using advanced filters in the section. This will result in the SelectQuery request where filters can be reviewed and the content of the filter copied which will show you an accurate path to the column needed.

Oleg Drobina,

Thank you! Interesting trick.

Please, provide details about: "This will result in the SelectQuery request where filters can be reviewed" - how exactly I can review such a request? 

Fariz Mamedov,

 

Just open the console in browser (F12 in Chrome) and go to the "Network" tab. And then find the correspondent SelectQuery request and review its body:

Oleg Drobina, Super thx!

Show all comments

I am getting a HTTP 403 (Forbidden) error when I call the OData $batch request on my developer instance.  It does not matter what requests I pass to it.  It also occurs when I use the example $batch request provided by the Creatio postman environment.

 

Do developer instances support batch requests?  Is there an option I can enable to allow batch requests?

Like 0

Like

4 comments
Best reply

Mobileforce Support,

 

The answer to the POST request to /AuthService.svc/Login will be a set of session cookies needed for further requests execution. One of those cookies (BPMSCRF cookie) values should be specified as a separate BPMCSRF header value for further POST\PUT\PATCH requests. So once you are authenticated via postman you need to copy the value of the received BPMCSRF cookie and set it as a header value for further requests in the following manner:

After that, you can try calling the OData endpoints via POST requests and they should succeed.







Thank you for contacting the Creatio technical support team. If you have any further questions, please send them as a reply to this email.



Thank you for choosing Creatio!

 

Hello, 

 

I've shared some documentation that will help you: 

 

OData | Creatio Academy



Best regards,

Orkhan

Orkhan,

Thanks, but I've already read the documentation and was able to get other OData calls to work successfully.  It is only the batch request is not working for me. 

 

Typically, a HTTP 403 error means that a user is trying to access a page or API that they do not have permission for.  Hence why I was asking whether there is some system configuration option I need to set.  I am trying to access this as the Supervisor user on my development instance.

 

Mobileforce Support,

 

The answer to the POST request to /AuthService.svc/Login will be a set of session cookies needed for further requests execution. One of those cookies (BPMSCRF cookie) values should be specified as a separate BPMCSRF header value for further POST\PUT\PATCH requests. So once you are authenticated via postman you need to copy the value of the received BPMCSRF cookie and set it as a header value for further requests in the following manner:

After that, you can try calling the OData endpoints via POST requests and they should succeed.







Thank you for contacting the Creatio technical support team. If you have any further questions, please send them as a reply to this email.



Thank you for choosing Creatio!

 

Orkhan,

Thanks, that was the issue.  I did not realize that the BPMCSRF cookie also had to passed in as HTTP header as well.

Show all comments

Dear,

I would like to display on the Activity page detail, the modification history tab.

 

When i go into the section assistant, i can see an unregistered Detail.

 

 

Logging is enabled in the system settings change log .

 

But the history tab is not displayed in the activity detail page.

 

Does anybody have an idea to solve this issue please ?

Thank you,

Nicolas

Like 0

Like

1 comments

Hello,



There is no such OOB functionality.

You can track changes directly in the Change log section or check additional add-ons, for example:

https://marketplace.creatio.com/app/banza-change-log-creatio?_gl=1*13hf…;



 

Show all comments