Hi Community,
Can you provide a snippet example, on how we can hide a Detail (list) if the List contains no data (records)?

Thank you

Sasori

Like 4

Like

3 comments
Best reply

This can only be done with code. A combination of doing some model queries to check for records that would be in the list, then using an attribute bound to the visible property of the list to set as true/false based on the results of the query. 

Using the model to query data: https://customerfx.com/article/querying-data-using-filter-conditions-vi…

Using attributes: https://customerfx.com/article/using-custom-attributes-on-a-creatio-freedom-ui-page/

Using the init to execute the above code when the page loads: https://customerfx.com/article/waiting-for-model-to-be-ready-and-loaded…

Ryan

Hi Community,

Any remark on this one?

This can only be done with code. A combination of doing some model queries to check for records that would be in the list, then using an attribute bound to the visible property of the list to set as true/false based on the results of the query. 

Using the model to query data: https://customerfx.com/article/querying-data-using-filter-conditions-vi…

Using attributes: https://customerfx.com/article/using-custom-attributes-on-a-creatio-freedom-ui-page/

Using the init to execute the above code when the page loads: https://customerfx.com/article/waiting-for-model-to-be-ready-and-loaded…

Ryan

Hello,
 

Unfortunately, this task cannot be implemented using standard methods.

 Ryan has provided helpful recommendations that will assist you with implementation through development methods.
 

Additionally, we have registered a task for the development team to add such functionality in future releases.

Best regards,
Pavlo

Show all comments

Hi Community,

 

We have this requirement, where we need to have multiple signatures per outbound email. And selected them based on the case category lookup.

 

So for example:

 

Case 1 > Category A > Signature A

 

Case 2 > Category B > Signature B

 

But for the same outbound email.

 

https://academy.creatio.com/docs/8.x/no-code-customization/base-integrations/mailbox-setup/email-account-individual-settings#title-1953-3

 

We would like to know what is the best way to achieve such functionality? What schemas should we change?

 

Thank you.

 

Best Regards,

Pedro Pinheiro

Like 1

Like

1 comments

Hello,

 

Please note that there's no functionality to set up such logic in the system at the moment. However, we have registered this idea for our R&D team and they will review the possibility of adding it in future releases.

 

As a workaround, you could remove the personal signatures of the users and instead create the email templates and design the needed signature as part of the template itself. You can also set up automatic filling in of the sender's name with the help of a macro.

Show all comments

Hello,

I need the record registry on the sidebar page to automatically refresh when the page is opened. I'm trying to use crt.HandleSidebarOpenRequest (version 8.1.4). Here is my code:
 

   handlers: /**SCHEMA_HANDLERS*/[
   {
   request: "crt.HandleSidebarOpenRequest",
   handler: async (request, next) => {
   console.log("Обробник викликано");
   const result = await next?.handle(request);
   console.log("Після next.handle(request)");
   const handlerChain = sdk.HandlerChainService.instance;
   // Оновлюємо дані при відкритті сторінки
 
   await handlerChain.process({
       type: "crt.LoadDataRequest",
       $context: request.$context,
       params: {
           config: {
               loadType: "reload",
               useLastLoadParameters: true
           },
           dataSourceName: "DataGrid_69bg53fDS"
       }
   });
   console.log("вуцауца");
   return result;
}
   }

         

       ]/**SCHEMA_HANDLERS*/,

 

However, the handler is not triggering. Could you please help?

Like 0

Like

1 comments

Hello,

A developer can subscribe to sidebar open/close events in a remote module.

To subscribe to the open or close sidebar events in your code, follow these steps:

1. Create an Angular class in the project. To do this, run the ng g class my-sidebar-open.handler command at the command line terminal. Files of the MySidebarOpenHandler class will be added to the src/app/ project directory.

2. Implement the handler.

a. Open the my-sidebar-open.handler.ts file.

b.Define the class of request that inherits base type and contains sidebarCode property.

c. Inherit the BaseRequestHandler class with the new type (2.b.) from the @creatio-devkit/common library.

d. Specify the type of the handler.

e. Specify the type of the request as crt.HandleSidebarOpenRequest.

f. Implement the handle method with some custom logic.

    i. Since this handler will handle HandleSidebarOpenRequest requests from all sidebars, you should check the code of the sidebar before performing any custom actions.

    ii. Write your custom logic.

    iii. Call this.next?.handle(request) in order to process all other handlers of this request.

g. Save the file.

import { BaseRequestHandler } from "@creatio-devkit/common";
class SidebarEventRequest extends BaseRequest {
	public readonly sidebarCode!: string;
}
@CrtRequestHandler({
	type: `usr.MySidebarOpenHandler`,
	requestType: 'crt.HandleSidebarOpenRequest',
})
export class MySidebarOpenHandler extends BaseRequestHandler<SidebarEventRequest> {
	public async handle(request: SidebarEventRequest): Promise<void> {
		if (request.sidebarCode === 'UsrMyCustomSidebar') {
			//WRITE YOUR OWN LOGIC HERE
		}        
		await this.next?.handle(request);
	}
}

3. Build the project. To do this, run the npm run build command at the command line terminal.

Show all comments

We have setup our Google Workspace emails inside Creatio and we can send and receive emails from the platform.

 

When we click an email link inside a contact, a browser opens up with 'about:blank'.

 

I have downloaded a windows email app on my pc thinking that would solve it but still not able to get it to work

Like 0

Like

1 comments

Hello,
 

Thank you for your question. We recommend setting up a button on the page for such needs, which will trigger a business process. Configure this process to read the lead's email address and send an email with the "To" field pre-filled, which is extracted from the lead.

Unfortunately, we don't have ready-made examples of such a process.


Additionally, we have created a request for the development team to restore the functionality of sending an email by clicking on the Email field in future releases.
 

Thank you for reaching out.

Show all comments

Hi Community,

Im trying to download the Notes of a Classic Ui Section, to a Word printable.

The end result in the Word printable is together with the Html Tags. How can we fix this?

Sasori

Like 0

Like

1 comments

Dear Sasori,

 

As of now, it's not possible to correctly display the field with HTML formatting in the printable.  


We registered a query for our R&D team and await a fix in the upcoming versions. 

 

As a workaround suggestion, you can replace the Notes field with a simple text field. I understand that it's missing the format settings and cannot be applied to tables, but it should work for a sentence or two simple comments. 

 

Thank you for making Creatio better!

Show all comments

Hello Community,

 

I have a few questions about GUIDs:

 

Q1. Is it possible to create custom GUID series for different standard objects? 
 

For example, can I generate custom GUIDs where every customer record starts with `0000001`, contacts with `0000002`, and orders with `0000003`?
  - Example:
    1. Customers: `0000001-3cfa-4daf-a93c-632cb2420805`
    2. Contacts: `0000002-4akk-5fhg-d19c-42080asb2420`
    3. Orders: `0000003-4akk-5fhg-d19c-42080asb2420`

 

Q2. Can I identify the Object Name just by looking at the GUID of a record?

 

Regards, 

Ajay

 

Like 0

Like

1 comments

Greetings!
 

Unfortunately, we do not recommend creating custom GUIDs, as this may lead to issues with the application.


You can copy the GUID, paste it into the search field in 
Configuration, and select "filter by contains GUID" for further filtering.


Regards,
Orkhan 

Show all comments

Hello Community, 

 

I wanted to read a base 64 string of an image which is in android device. Also have creatio application installed in Android device. 

Now, I wanted to read an image as base 64 string format in android device from creatio, 

When I tried to read, it says undefined or null. 

 

Can someone help me to resolve this issue? 

Any suggestions are really helpful. 

 

Thanks

Gargeyi.G

Like 0

Like

1 comments

Hello,

You can use C# and try to build a conversion script from the information in these posts:

How do I decode a base64 encoded string?

How do I encode and decode a base64 string?
 

A very similar question on our Community here.

Also, when the task is to upload a file to Creatio, the OData service is used for that purpose, here is an example:  https://community.bpmonline.com/questions/how-upload-attachments-odata
 

Hope it helps!

Show all comments

When will the Copilot be available to users? https://www.youtube.com/watch?v=aHHODz6dv04

Like 0

Like

1 comments


Hello,
Unfortunately, we do not have an exact ETA for releasing CoPilot yet. However, the first versions are planned to be released within this year. 

Show all comments

Hi community,

This is an out of the box problem, because i tried it in a fresh Environment as well.

Here is the issue.

We have the Leads section in the Classic UI, meanwhile the Account section is in the FreedomUI

1-We click to the Account link from the Lead Section:

2- We expect that the Form Page will open since we are not adding a new Account. Instead of the Form Page the MiniPage of the Account opens

3- Status of the Pages established for the account

How can we fix this issue?

Sasor

Like 0

Like

2 comments

Hi Community,

Any update regarding this?

Hello,

 

Please make sure that the "Default page" setting is set to the "Form page" in the Accounts object located in a package that is at the end of the packages hierarchy (it might be in the Custom package). 

This issue might appear if in one of such objects the "Default page" setting is set to "Mini page", which overrides the base settings.

Show all comments

Hello

 

It is posible to save a file in creatio from a base64 string? I have a web service that allows me to request a document by an id to an external service and it responds with the document in a base64 string, so I would like to know if it is possible to convert that string into the file and save it in some record on the platform.

 

Thank you 

Like 0

Like

2 comments

Something like this should work:

var base64FileString = Get<string>("Base64File");
var accountId = Get<Guid>("AccountId");
 
var attachFileType = new Guid("529bc2f8-0ee0-df11-971b-001d60e938c6");
var fileName = "SomeFile.docx" // set proper file type in file name
 
var entity = UserConnection.EntitySchemaManager.GetInstanceByName("AccountFile");
var fileEntity = entity.CreateEntity(UserConnection);
fileEntity.SetDefColumnValues();
fileEntity.SetColumnValue("AccountId", accountId);
fileEntity.SetColumnValue("TypeId", attachFileType);
fileEntity.SetColumnValue("Name",fileName);
fileEntity.SetBytesValue("Data", Convert.FromBase64String(base64FileString));
fileEntity.Save();

Ryan

Ryan Farley,

Thank you very much 

Show all comments