Question

ContactCarreer

Hi community

 

The "Connected to" section of the Activity entity allows an account to be linked to an activity.

The related contact must belong to the account linked to the activity.

This type of business rule is incorrect because a contact, via the ContactCarreer entity, can be linked to one or more accounts.

Is it possible to change this behavior?

 

 

Like 0

Like

2 comments

Hello!

To remove filtration, please disable the "Contact: Add filter by Account" business rule:

Alona Dolya,

Hi Alona

 

Thank you for you suggestion.

I customized the filter using this snippet code, 

attributes: {
            "Contact": {
                "dataValueType": Terrasoft.DataValueType.LOOKUP,
                "lookupListConfig": {
                    "filters": [function() {
                        var accountId = this.get("Account");
                        var filters = Ext.create("Terrasoft.FilterGroup");
                        
                        if (accountId != null) {
                            filters.add("JobExperienceFilter", 
                                Terrasoft.createColumnFilterWithParameter(
                                    Terrasoft.ComparisonType.EQUAL, 
                                    "[ContactCareer:Contact].Account.Id", 
                                    accountId
                                )
                            );
                        }
                        
                        return filters;
                    }]
                }
            }
        },

Show all comments