Hi everyone,

I am currently working on creating a custom service in Creatio, where I need to execute a large number of tasks and create records in multiple objects. These tasks take some time to execute, and to avoid any latency, I would like to create the first record and immediately return a response to the service caller. After that, I want the remaining tasks to run in the background, as they are independent and can be processed in parallel. The only dependency is on the initial record that needs to be created at the beginning.

How can I implement this approach for background execution of tasks in Creatio?

Thanks in advance for your help!

Like 0

Like

1 comments

We have a need to use the string_agg function of Postgres in some backend code which runs SQL against the DB using the Select class, but this is not one of the standard available AggregationTypeStrict enum types. Is there a method for using arbitrary database aggregation functions such as string_agg in a Select class query construction? Or is this not possible with Creatio's Select class? If so, is the only other alternative to use the deprecated CustomQuery class?

Like 0

Like

2 comments
Best reply

It's only possible using CustomQuery. 

I am not sure why CustomQuery is marked as deprecated - I believe it has been since 7.17.4. At the time of 7.17 I had discussions with Creatio and was told they were leaving CustomQuery in place and only certain removing DBExecutor functions, however, it's remained marked as deprecated since. I assume it isn't going anywhere and (hopefully) will continue to be safe to use despite being marked deprecated.

It's only possible using CustomQuery. 

I am not sure why CustomQuery is marked as deprecated - I believe it has been since 7.17.4. At the time of 7.17 I had discussions with Creatio and was told they were leaving CustomQuery in place and only certain removing DBExecutor functions, however, it's remained marked as deprecated since. I assume it isn't going anywhere and (hopefully) will continue to be safe to use despite being marked deprecated.

Thanks Ryan, the other alternative I thought of in the meantime was to do the aggregation in C# on unaggregated data returned from the query, which isn't great but could work for low data volume situations (like the one I was dealing with). Good to hear that maybe CustomQuery isn't as deprecated as it seems then!

Show all comments

I'm running into an issue with address data. The issue comes about when a user begins to find or type out a city. When a user does this, the city dropdown will display all cities that have same name. For example, say the user is looking for Glendale, AZ. When a user types out or begins looking for Glendale, all cities that are named Glendale will appear. This makes it hard for the user to select which Glendale they want because they may end up selecting Glendale, California vs Glendale, Arizona. Although there is a workaround where users can select a state and a dynamic filter will the city dropdown based on the state, I want to see if I can leverage the Supplementary display value that Creatio provides . I know that this parameter only shows attributes that are not lookups, but is there a way to leverage this feature? If so how do I do that. I want it to show what Cities to have a supplementary display value of the state lookup and State to have a supplementary display value of the Country lookup. Currently I'm on version 8.2.0

Like 0

Like

1 comments

Hello!

To resolve your question, I recommend using the address filtering logic that is implemented in the basic version of Creatio.

 Specifically, when populating the “City” directory, there are several fields that help users select the correct value based on the following criteria: country, state/province/region. Once these fields are filled in, and the user selects the correct country and then the corresponding state or region while entering the address, only one city with the matching name will appear in the selection list.

At the user interface level, there are business rules in place that perform this value filtering.

Additionally, I recommend cleaning up duplicates in the country directory to ensure that only one city per region is listed.

Show all comments

Hello Community,

Im trying to import an excel file, in the Cases section as a Portal user.

When i click 'Data Import' from the Case section the Wizard is blank

Am I missing some additional config here?

Sasor

Like 0

Like

2 comments

We have managed to fix the previous issue

However the File Import template is still missing

Sasori Oshigaki,

Hello!

The templates for data import are stored in the object FileImportTemplate. By default, the operation permissions for this object are turned off, meaning that only users with the group "All employees" can access it. 
To allow external users to see the templates, please enable Operation permissions for the object FileImportTemplate and configure the access rule for the needed users.
 

After, allow external users to use feature UseFileImportTemplate. features can be found by the following link: your_site/0/Shell/#Section/AppFeature_ListPage :




I hope this helps. Have a great day!

Show all comments

Hello all, 

I'm wondering if Creatio stores somewhere a specific link which bulk email participant has clicked on? I see the general response Clicked but can't find the specific url has been clicked.  

 

Like 0

Like

2 comments

Hello, 

Yes, the object is called "Click through links with email". See article here: https://customerfx.com/article/creating-a-filter-of-contacts-that-clicked-a-specific-link-in-a-creatio-bulk-email/

Ryan

Ryan, thanks a lot!

Show all comments

I am Using Creatio 8.2.2 and am currently confused on how to send an email and taking fields from a page and inserting it into the script task, here is my script task

i am trying to take a field called Alamat Penilai as the Send email to

also inserting Nama Penilai, Nama Debitur, Produk, Tujuan Penilaian, Jenis Agunan into the body of the email, one of the fields is a dropdown aswell(extra info if needed). I am also going to use SMTP as a way to send the email from

 

so how do i go about this? how do i configure the script task to run as i wish?

 

Like 1

Like

6 comments

An easy way is to just read the data in the process using Read Data elements, then use formulas to place any values in process parameters. Then, in the script task you can just retrieve them using: 

var recipient = Get<string>("MyRecipientParameter");

Basically, retrieve any process parameter using:

var val = Get<type>("TheParameterName");

Also, it's possible to just add a mailbox in the system with the send SMTP values only and uncheck the downloading email option so it's a send only account. See (sorry, very old screenshot, but concept is the same) https://community.creatio.com/questions/office365-oauth-mailbox-synchronisation

Then, with the mailbox added, you can simply use the process Email element and do it all with no code.

Ryan

so do i need to use script task in the business process aswell or do i configure based on Mailjet, since i have 0 clue on how to handle this in creatio, and also what to write in the script task if i am going to use it

 

Ryan Farley,

so do i use the Send Email process or the script task process to take in parameters, output a to email, get the from email from smtp and build a body and subject through parameters taken from other fields?

Michael Fernando Handoyo,

It's easier to use the "Send email" process element since you can select a mailbox there to be used for sending (and this mailbox should be synced in the Creatio application (and this sync is also needed even if sending an email from the script task)) and also fetch needed values from a record to use them in the email subject or body. See the description of the element here.

Michael Fernando Handoyo,

As Oleg mentioned, typically you'll use the Send email process element. It's very easy to add values into the email body from data. Sending email via code is something I don't often do except for very rare/outlier situations. 

Basically, (1) you'll add the mailbox in Creatio and then (2) Use Send email element in the process and select the mailbox to use for the send. (See links shared by Oleg)

Oleg Drobina,

okay so according to the process this is as far as i was able to do it

and this is also the SMTP server that i am using where do i need to insert the password for it? and do i use the server address as my own gmail address or like Creatio@Gmail.com or was it Creatio@domain.com ? please guide me through this

Show all comments

Where can I get all details on allowed formula systax and possible functions allowed to use
For example I was working to extract month & year from date and it was not so easy to understand best function allowed in business process formulas windows.

Looking for more details in addition to what we can see here:
https://academy.creatio.com/docs/8.x/no-code-customization/bpm-tools/bu…

Like 0

Like

1 comments

Formulas are C#. Creatio does have a few built in functions that can be used in formulas, but for the most part, it's a better approach to just think of it as C#. For extracting the month and year from a date, you'd just use C# syntax for Year and Month. For example:

[#SomeDate#].Year

Ryan

Show all comments

Hello Everyone!,

Is there a way to fetch the conversation history that is located in the "Case" module through API?

Like 0

Like

1 comments

Hello,

Yes, it is possible to fetch the conversation history related to a Case through the API. However, the conversation history is not stored directly within the Case module. Instead, this data is maintained in a separate Activity table.

Each entry in the Activity table - such as emails, calls, notes, or messages - is linked to a Case via a foreign key relationship. This means that each activity record includes a reference to the specific Case it belongs to.

To retrieve the conversation history for a particular Case, you will need to use the API to query the Activity table and filter the results based on the Case’s ID. This will return all the related communication entries tied to that Case.

Creatio supports the OData protocol, which enables structured querying through parameters. OData is a standardized, REST-based protocol that allows for the querying and manipulation of data using simple HTTP messages and URIs, enabling seamless integration between data sources and clients.

To filter records, you can use the $filter parameter along with the eq (equals) operator.  For example :

https://mycreatio.com/0/odata/Collection1?$filter=Field2 eq 'Field2Value'

This allows you to request a filtered collection of Activity records where the Case reference matches a specific value.

You can find more detailed guidance in the official Creatio OData API documentation.

Show all comments

Hi All, I am trying to create a simple business process to add a new record in my custom object (EMAIL KPI) as soon as a record is inserted in BulkEmailTarget (Response in Email) object. I have used signal (record added) in BulkEmailTarget (Response in Email) to create such a business process; but the process is not triggered when a new record is added to the BulkEmailTarget object. What am I missing here?Thank you

 

 

 

 

 

Like 0

Like

0 comments
Show all comments

Hello

I'm trying to mark a boolean as required, but that option doesn't appear in the settings.

Does anyone know how I can mark the checkbox as required?

Fig. 1 Set up a Checkbox field

 

Thank you. 

 

Like 0

Like

2 comments

Making a checkbox required would only mean it can be checked (since there's no difference between unchecked and not filled in). Alternative approach is to use a lookup with Yes/No values (since then there is also a not filled in)

Hello Ryan Farley,

What happens is that I have a set of questions with three answer options each, and for each question, only one option needs to be filled out. I have a business rule that marks the boxes as required, but when one of them is selected, it disables the other two and makes them optional. The problem is that once you select a box and uncheck it, the required  disappears, allowing you to save with the three options blank. That's why I want to make the checkboxes required from the configuration.

 

And the reason for the checkboxes is that I require the checkmarks to appear in the Word report.

 

 

 

Show all comments