bpm. processes
script task
Studio_Creatio
8.0

Hello,

I am trying to invoke a business process from C# script. Below is my code, 

ProcessSchema schema = UserConnection.ProcessSchemaManager.GetInstanceByName("Cw AI Process");

Process process = schema.CreateProcess(UserConnection);
process.SetPropertyValue("RecordId", Guid.Parse("e308b781-3c5b-4ecb-89ef-5c1ed4da488e"));
process.SetPropertyValue("RecordType", "Account");
process.Execute(UserConnection);
var result = process.GetPropertyValue("OutputVar");

 

And this is the error I am seeing. Both RecordId and RecordType are input parameters of the business process.

Property "RecordId" is missing in type "ProcessComponentSet".

Like 0

Like

3 comments

Hi,

 

You will find it in academy : https://academy.creatio.com/docs/developer/integrations_and_api/busines…

or do something like this : 

			var uc = Get<UserConnection>("UserConnection");
 
			var parameters = new Dictionary<string, string>() {
				{"vExerciceUsager", ExerciceUsagerId.ToString()},
				{"vRegleCalcul", RegleCalculId.ToString()},
				{"vBloc", BlocId.ToString()}
			};
 
			IProcessExecutor processExecutor = uc.ProcessEngine.ProcessExecutor;
			processExecutor.Execute(ProcessSchemaUId, parameters);
			return true;

 

Jerome BERGES,

Thank you I got that..
I have a question.. How do I read the value from output parameter.. Below is my code.. am I missing something?

UserConnection userConnection = UserConnection;
IProcessExecutor processExecutor = userConnection.ProcessEngine.ProcessExecutor;
/* Collection of incoming parameters.*/
var inputParameters = new Dictionary<string, string> {
   ["RecordId"] = "ecb-89ef-5c1ed4da488e",
   ["RecordType"] = "Account"
}; 
/* Collection of outgoing parameters.*/
var resultParameterNames = new string[] { 
   "strValue",
};
string processSchemaName = "UsrProcess_6ff6f";
/* Runs the process via the schema name using transferred incoming and received outgoing parameters.*/
ProcessDescriptor processDescriptor = processExecutor.Execute(processSchemaName, inputParameters, resultParameterNames);
string AiResponseValue = processDescriptor.ResultParameterValues["strValue"];


return true;

I never done this with output parameters, but it may be that your process is in background mode (which is not allowed), or your parameter is not of type "Output"

Show all comments

Hi Everyone,

I have a List page connected to my page-level data source. Each of these records also has related entries in the SocialMessage table, which stores comments and likes for my records. I want to show Number of Likes count and Number of Comments count on my List view, alongside fields from the main datasource object.

In Freedom UI, the list view is typically bound to a single data source, and while I can fetch and display these additional related columns via Model.load on the Form page (as labels, after the record is opened), How to integrate these related fields from other tables into my List page layout, so they can appear as columns with the rest of the fields.

The related column setting on the List page doesn't show the SocialMessage table to select those fields.  What is. Workaround for this?

Thanks in advance!

Ajay

Like 0

Like

0 comments
Show all comments

Hello everyone,

I am trying to implement a permissions model for a collaborative application in Freedom UI, where different users interact with a record based on their role as explained below -

  1. Author – The user who creates the record.
    • Can create new records.
    • Can edit all fields of the records they created, except some restricted fields.
  2. Reviewer – A special role that:
    • Can view all records
    • Can edit only specific fields like:
      • Review Comments (this field can only be modified by the Reviewer and not by the Author)
    • Cannot modify other fields (e.g., Title, Description).
  3. All other employees:
    • Can create new records (and thereby become a new Author).
    • Can view records created by others (including the fields updated by the Reviewer) but cannot edit other’s records.

 

 What I have tried so far

  1. Object Permissions:
    • Enabled Object-level permissions on the entity.
    • Gave All Employees role: Create and Read rights.

      A screenshot of a computer</p>
<p>AI-generated content may be incorrect.

       

  2. Column Permissions:

    • For restricted fields (Reviewer Comments), :
      • Gave “Permit Reading and Editing” permission to the Reviewer role
      • Gave “Permit Reading” to All Employees

        Column Permission Screenshot

     

  3. Record-Level Access via BPM:
    • Created a business process that:
      • Triggers when a record is created.
      • Reads the CreatedBy user.
      • Assigns Read and Edit rights using "Change Access Rights" → “For an employee”.
    • This was intended to ensure that Authors can edit their own records.

      Screenshot of Access rights on the record thru BPM

 

But the current outcome is that while users can create records successfully, they are unable to edit their own records afterward due to lack of permission.

Would appreciate any help on why the Authors are not able to update their own record.  I hope this is a valid scenario supported by Creatio. 

Also, this whole process seems to be a bit tedious. Is there a simpler way to achieve this using the no-code approach (without going into JavaScript coding to set the visible property based on roles)?

Thanks in advance for any insights!

Ajay

Like 0

Like

2 comments
Best reply

Hello,

Please note that the "Use operation permissions" dictates the main overall rights for the object. If you remove the "Edit" right there, you cannot provide this right in any other way.

In this case you need to enable the "Edit" right there and then customize the conditions in which the users will get these rights. This can be done both by the business processes and especially by the "Use record permissions" detail (which allows you to set specific rights to the records on creation).

Also, in order to be able to set different rights for different records, you need to enable the "Use record permissions" detail anyway (without it enabled, the records are supposed to have unified and the same rights). Please make sure this was done (you may also need to add some settings there depending on your business idea) and check the logic again.

Hello,

Please note that the "Use operation permissions" dictates the main overall rights for the object. If you remove the "Edit" right there, you cannot provide this right in any other way.

In this case you need to enable the "Edit" right there and then customize the conditions in which the users will get these rights. This can be done both by the business processes and especially by the "Use record permissions" detail (which allows you to set specific rights to the records on creation).

Also, in order to be able to set different rights for different records, you need to enable the "Use record permissions" detail anyway (without it enabled, the records are supposed to have unified and the same rights). Please make sure this was done (you may also need to add some settings there depending on your business idea) and check the logic again.

Thank you, Mira. 

I gave it the Edit permission at the object level and enabled the Record level permissions and now it works fine.  Object Permission Screenshot

Show all comments
exchangelistener
kubernetes
redis
Studio_Creatio
8.0

As the subject says, I'm curious if anyone has ever done this? We run several on-prem K8s clusters but are interested in moving the EL stuff into Azure.

Like 0

Like

0 comments
Show all comments
Studio_Creatio

Hi;
I read an element from Preconfigured.Page on script task

The default value of this element is take from reading Task
when reading task return an empty entity in one environment it return empty string in other the addres to reading element

Like 0

Like

3 comments

Hi!

Could you please advise how we can assist with this request?

Yelyzaveta Shchyrova,

Hi;
I think that there is some settings because in one environment when I read  attribute from preconfigured page it return an empty string in other it return address to reading task {TaskGuid}. {Table Guid}.{Column Guid}
In this case i solved it by function {Element} ?? string.Empty
but i don't now where such error could  appear.

Hello,

Can you provide screenshots with the configuration of each element involved in the behavior?

Thank you.

Show all comments
Copilot
configuration
Studio_Creatio
8.0

Hello,

I have contacted customer support to enable the AI on my local deployment. I have made all the changes as mentioned by the support.
 

I have enabled co-pilot features.

I have set the system settings - IdentityServerUrl, DefaultExternalAccessClientId, IdentityServerClientSecret, IdentityServerClientId, AccountEnrichmentServiceUrl with respective values..

But when I am trying to use the AI seeing below error in the network tab:
 

errorCode: "IncorrectConfiguration"

errorMessage: "IdentityServer auth failed with [BadRequest] invalid_client\n" 

Something is wrong in the configuration but not sure what's wrong.. Can anyone help debug and fix the issue.. TIA

Note: I have already reported this issue with support, not heard anything yet. As this is a blocker for me so posting it here in hope to get a solution.

Like 1

Like

4 comments

Hello Sagar!

Thank you for your post! We are already working on your case, which has been reported to our support team, and we will continue our communication in that case.

Have a great day!

Is there official documentation on the steps need to activate on-premise Creatio AI ?

Damien Collot,

No, we need to contact the customer support.

😕

Show all comments
local
Studio_Creatio
8.0

Hello, 

I am trying to expose my local creatio instance to public network using a domain. I did all the steps mentioned here - https://academy.creatio.com/docs/8.x/setup-and-administration/on-site-deployment/application-server-on-windows/switch-creatio-website-from-http-to-https

So that I can use Creatio AI locally.

I got a domain and certs(using letsencrypt). 

But the login is not working locally. I can provide more information for debugging.

I am not able to access the app through domain as well.

Like 0

Like

1 comments

Hello!

Usually, this situation occurs when the configuration files -  Web.config have been modified, but the certificate is either invalid or not fully installed.
Please check:

  1. The certificate parameters to ensure it is valid.
  2. The certificate settings on the web server.

 

Show all comments

Hi everyone

I'm trying to install the on-premise enviroment on my local machine and I have a problem, I started my instance with IIS and shows me the login page normally, but once that I login, the shell page is blank, I don't know if I am doing something wrong or if I need to do an extra step, thank you

Error image

Like 1

Like

1 comments

Hello,

To identify what's causing such behavior, I recommend checking the browser console first. If there are some errors, they will indicate where the problem is. If there are no errors, check the Network Tab in the browser dev tools.
If you don't get a response or get a response with an error, it will indicate whether the issue is with the application itself or caused by the wrong configuration.
If none of this gives clarity, you should check the application logs and see if there are any error messages that will indicate what's causing the problem.

For more detailed analysis and assistance with this, I suggest creating a ticket on the success portal or simply by sending an email to support@creatio.com

Show all comments

Is there a simple way to filter a dropdown to show only those contacts that belong to a particular Role?

I have explored several common approaches, but none have provided the ideal, straightforward method:

  1. No-Code Filtering by Contact Folder: Attempted to create a static "Reviewers" folder in the Contacts section. However, this doesnt seem to work for filtering with Freedom UI.
  2. Business Rules in Page Designer
    • Field‑level rules only expose “Make required” / “Read‑only” / value‑copy actions, no lookup‑filter.
    • Page‑level rules let me “Apply static filter,” but they don’t list Folder or FolderId, or any path through SysUserInRole.
  3. Custom Data Model (Object/View):
    • Using a custom object with BaseLookup as its parent forced a mandatory 'Name' (text) field for the lookup value itself, which isn't suitable for directly linking to a Contact record and requires extra, redundant user input.
    • Using BaseEntity as the parent required adding an extra display field (a lookup to Contact) and the dropdown would store the ID of our custom object record, not the Contact.Id directly, making it less intuitive and adding an unnecessary layer.

Is there an out‑of‑the‑box no‑code way in Creatio Freedom UI to filter a lookup dropdown by all users in a given Role (without creating a separate lookup table or writing custom page schema JSON)?

If that’s not supported today, what’s the best “no‑code” or “low‑code” pattern you’d recommend to maintaining a dynamic list of Reviewer users (ideally driven by Role membership or using a custom object)

Thanks in advance for any guidance or creative alternatives!

 

Like 0

Like

2 comments
Best reply

Hello 
To achieve this in a Contact folder, create a dynamic filter that targets contacts linked to system users who are members of the "Reviewer" role. This is done by referencing the “System administration object” associated with the Contact and ensuring that it has a user type of 4 (standard user) and that it is part of the “Reviewer” role through the “User in roles” relationship. The folder will then automatically include all contacts whose users match these criteria, keeping the list dynamic based on role membership.
Please Refer to the Screenshot

Hello 
To achieve this in a Contact folder, create a dynamic filter that targets contacts linked to system users who are members of the "Reviewer" role. This is done by referencing the “System administration object” associated with the Contact and ensuring that it has a user type of 4 (standard user) and that it is part of the “Reviewer” role through the “User in roles” relationship. The folder will then automatically include all contacts whose users match these criteria, keeping the list dynamic based on role membership.
Please Refer to the Screenshot

Thank you. That worked.  I had to ensure that the Lookup for the Reviewer field was set to Contact, after which I was able to see the System Administration Object and proceed with the rest of the steps in the diagram.

Show all comments
foreign
key
constraint
Error Message
Studio_Creatio
8.0

Hello all,

I am having difficulty reading foreign key constrain errors on cloud instances of Creatio. Everything I find says I need to execute a command in a SQL console which I don't have access to just to get something more helpful than "foreign key constraint error" Is there no lookup I can access to read the errors? Why are they so vague?

Like 0

Like

1 comments

That is a database level thing, so can only be read from the directly from the database:

To see it on a cloud instance, you can use Clio Explorer to execute the SQL statement to see what the constraint references. See this article for help setting Clio Explorer up (once all setup and installed, you can use it's Execute SQL function): https://customerfx.com/article/how-to-install-clio-explorer-for-creatio/

As for the query to determine the foreign key error details, see: https://customerfx.com/article/troubleshooting-constraint-violation-errors-in-creatio/

Ryan

Show all comments