Время создания
Filters
Creatio_Freedom_UI:_How_to_Extend_a_Lookup_Quick_Filter_with_an_OR_Condition?
Sales_Creatio
8.0

Hi Creatio Community,

I'm working on a customized Freedom UI form page and need guidance on implementing dynamic filtering for a List component.

Scenario

I have a grid with a native Quick Filter on a lookup field. There is another lookup field in the same object, referencing a different lookup object.

Both lookup objects contain records with matching names, but their record IDs (GUIDs) are different.

Requirement

When a user selects one or more values in the Quick Filter, I want the grid to display records matching either of the following conditions:

Selected Lookup Field IN (Selected Values)
OR
Second Lookup Field IN (Matching Lookup Values)

The matching lookup records should be identified by comparing their Name fields rather than their GUIDs.

All existing predefined filter conditions on the grid must also be preserved.

What I have tried

  1. Capturing Quick Filter selection using crt.HandleViewModelAttributeChangeRequest.
  2. Reading the selected lookup record IDs from the Quick Filter structure.
  3. Loading the corresponding records from both lookup objects using sdk.Model.
  4. Matching the records by Name.
  5. Dynamically creating lookup filter conditions and adding them to the grid's predefined filter using a nested filter group with OR logic.
  6. Keeping the root predefined filter's logical operation as AND to preserve existing criteria.

However, the native Quick Filter continues to apply its own condition independently. Consequently, the grid displays only records matching the selected lookup value, while records matching only the second lookup field are excluded.

I also tried modifying the Quick Filter's internal filter collection, but this resulted in a query execution error.

const dynamicItems = {};

dynamicItems["FirstLookupCondition"] = {
    filterType: 4,
    comparisonType: 3,
    isEnabled: true,
    leftExpression: {
        expressionType: 0,
        columnPath: ""
    },
    isAggregative: false,
    dataValueType: 10,
    referenceSchemaName: "",
    rightExpressions: [{
        expressionType: 2,
        parameter: {
            dataValueType: 10,
            value: {
                Name: "",
                Id: "",
                value: "",
                displayValue: ""
            }
        }
    }]
};

dynamicItems["SecondLookupCondition"] = {
    filterType: 4,
    comparisonType: 3,
    isEnabled: true,
    leftExpression: {
        expressionType: 0,
        columnPath: ""
    },
    isAggregative: false,
    dataValueType: 10,
    referenceSchemaName: "",
    rightExpressions: [{
        expressionType: 2,
        parameter: {
            dataValueType: 10,
            value: {
                Name: "",
                Id: "",
                value: "",
                displayValue: ""
            }
        }
    }]
};

updatedFilter.items["DynamicLookupGroup"] = {
    filterType: 6,
    isEnabled: true,
    logicalOperation: 1,
    trimDateTimeParameterToDate: false,
    items: dynamicItems
};

updatedFilter.logicalOperation = 0;

request.$context. = updatedFilter;

I also tried modifying the native Quick Filter's internal filter collection to prevent its original condition from being applied. This resulted in a query execution error.

My questions

  1. Is there a supported way in Freedom UI to intercept or override a native Quick Filter condition while retaining the user's selection in the Quick Filter control?
  2. Can the native Quick Filter condition be replaced with a custom OR filter involving two different lookup fields?
  3. Is there a recommended approach using crt.HandleViewModelAttributeChangeRequest, the grid's predefined filter, or another supported Freedom UI API?
  4. How can this be implemented while preserving the grid's existing predefined filter conditions?

I would appreciate a working example or guidance on the recommended implementation approach.

Thank you!

Like 0

Like

0 comments
Show all comments

Hi,

I am facing an issue while trying to access the Change Log for the Activity object.

I have enabled Change Log for the Activity object through System Designer → Change Log and clicked Apply. I can also see the Activity change history under the Change Log section (Log data).

However, when I try to open the Change Log directly from an individual Activity record using the View Change Log action, Creatio displays the following messages:

  • "Logging is currently off for Activity."
  • "Do you want to enable Change Log permissions from System Administrator user?"

Any guidance or suggestions to resolve this issue would be appreciated.

Thank you,

Like 0

Like

0 comments
Show all comments

Is there a way to set the axis values, or add a minimum value when making graphs? Similar to how you can in Microsoft Excel. I have this chart and the values are all similar, so I'd like to have the axis start at 10k to better emphasize the difference. 

Like 0

Like

1 comments

Not to my knowledge, either for bar/column or line charts. I would say that generally it's not good practice to do so for bar/column charts, since it can be misleading given that the area of the bar no longer correlates with the absolute values, and so can make smaller differences appear much bigger. That said, it would be nice to have the option to be able to do so for line charts which don't have that issue.

Show all comments

Hi everyone,

I'm currently working on a file-based integration in Creatio Cloud and wanted to get some feedback from anyone who has implemented something similar.

The integration involves connecting to an external SFTP server, retrieving CSV files, and processing their contents directly in memory using C# rather than downloading them to a local directory.

The general workflow we're considering is:

  1. Establish an SFTP connection and retrieve the file as a stream.
  2. Parse and validate the CSV records in memory.
  3. Transform the records and pass the resulting data to an internal Creatio service for further processing.
  4. Capture processing results and handle file archival or disposition on the SFTP server.

I'm particularly interested in understanding the recommended approach for implementing this within Creatio Cloud.

A few questions for the community:

  • Has anyone successfully implemented SFTP integration using C# within a Creatio Assembly Package?
  • Are there recommended libraries for SFTP connectivity and streaming that work reliably in Creatio Cloud?
  • Is processing files directly from a stream within Creatio a supported and practical approach, or are there platform considerations we should account for?
  • For larger files, are there recommended patterns for managing memory consumption, execution timeouts, and background processing?
  • How have others handled file archival, error recovery, and logging without relying on local filesystem storage?

Our preference is to keep the processing within Creatio using supported C# capabilities rather than introducing an additional external integration service.

I'd appreciate any insight, examples, or recommendations from those who have implemented similar integrations.

Thanks in advance!

Like 0

Like

1 comments

Hi, I created an application that do this (Dimex), I use https://joshclose.github.io/CsvHelper/ to parse the csv, and using Renci.SshNet for SFTP.

Show all comments

In campaigns is there a way to send an email again, if the recipient does not open it? I know you can send a different email. I also know that participants can be reentered into campaigns, but it does not appear to give the option of who reenters. 

Like 0

Like

0 comments
Show all comments