I am going to add custom button which alerts some text on contact page. Is it possible?

Like 0

Like

2 comments

Hello Muhammadjon,

 

in order to achieve this you need to create a Replacing view model at the Custom package.

For the partent object you will need to select ContactSectionV2, or the section where you want to create this button.

Then you need to create a new localizable string (you will see the possibility to create a new one on the left) where you will put the desired text. for the button. While creating the localizable string you will need to enter the value, and the code. The code is something that you will use later.

 

After that you insert this code on the page:

 define("ContactSectionV2",

        function(BaseFiltersGenerateModule, Enums, ConfigurationConstants, BusinessRuleModule) {

            return {

                entitySchemaName: "Contact",

                messages: {},

                attributes: {},

                rules: {}/**SCHEMA_MODULES*/,

                /**

                 * Current schema mixins

                 */

                mixins: {},

                methods: {

                    OnTestButtonClick : function() {

                        Terrasoft.showInformation('Test') 

                    }

                },

                diff: /**SCHEMA_DIFF*/[

                    {

                    "operation": "insert",

                    "parentName": "ActionButtonsContainer",

                    "propertyName": "items",

                    "name": "TestButton",

                    "values": {

                        "itemType": Terrasoft.ViewItemType.BUTTON,

                        "style": Terrasoft.controls.ButtonEnums.style.GREEN,

                        "caption": {"bindTo": "Resources.Strings.TestButtonCaption"},

                        "markerValue": {"bindTo": "QualificationProcessButtonCaption"},

                        "classes": {"wrapperClass": ["t-btn-wrapper t-btn-text t-btn-style-blue actions-button-margin-right"]},

                        "iconAlign": Terrasoft.controls.ButtonEnums.iconAlign.RIGHT,

                        "click": {"bindTo": "OnTestButtonClick"},

                        "layout": {

                            "column": 6,

                            "row": 0,

                            "colSpan": 2

                        },

                        "visible": true

                    }

                }    ]/**SCHEMA_DIFF*/

            };

        });

 

The method  Terrasoft.showInformation('Test')  is the one responsible for displaying the message on screen. Here instead of Test you can write any message. 

The part where it says "caption": {"bindTo": "Resources.Strings.TestButtonCaption"}" , this is where you put the code from the localizable string previously created. So if the code of the string was called TestButtonCaption, then you need to put Resources.Strings.TestButtonCaption. If you name the code like "RandomButton" then it will be Resources.Strings.RandomButton.

 

Best regards,

Dariy 

Thanks so much! This is so helpful

Dariy Pavlyk,

Show all comments

Hi All,

 

We have a requirement to enable SSO with OKTA. Please suggest whether is it possible? If yes, how we can do that?

 

Thanks & Regards,

Sourav Kumar Samal

Like 0

Like

5 comments

Hello,

 

Yes, it is possible to set up SSO through OKTA. Unfortunately, we do not have specific instructions for this product, but you can use the Single Sign-On via ADFS Academy article for your reference. 

 

Best regards,

Bogdan

 

 

Bogdan,

 

We are also trying to configure from OKTA's side as well. But there are certain ask that we are unsure about. Could you please suggest on the following questions from Creatio perspective?

Thanks,

Sourav

Bogdan,

Is there any information on this?

 

Thanks

Sourav, 



This application is in "Upcoming" state meaning that it will be available in Future. 

As for your first question, you need to insert following values:

 



Kind regards,

Roman

 

Roman Brown,

 

What is the LocalCertificateFile and where to get this for onsite applications?

 

Thanks,

Sourav

Show all comments
Question

I'm trying to update a column of type date using Entity object as below:

//Example 1
entity.SetColumnValue("BirthDate", "2001-09-15");
 
//Example 2
DateTime Date = DateTime.Parse("2001-09-15");
entity.SetColumnValue("BirthDate", Date );

The second example modifies the value successfully but when I open in client side the value doesn't show.

 

Like 0

Like

1 comments

Which error message do you get in the console from the client-side when opening a record? Also which value is being stored in the database. Finally, what does this.get("BirthDate") returns inside the onEntityInitialized method execution from the client-side?

 

Best regards,

Oscar

Show all comments

Is it possible to disable the option to create a new record when editing a Lookup field, so that the user can select an existing record, but not create one?  Users can sometimes unwittingly do this when not able to find the record using the Lookup.  If not is there a workaround?  It is not an option to remove create rights for the Lookup object.

Like 1

Like

2 comments

Hello Gareth,

 

Please check the answer on this post: 

https://community.creatio.com/questions/disable-new-option-city-state-l…

 

Here was a contrary question to DISABLE "NEW" OPTION. But you can try by analogy to change  "Lookup view" from  "List" to "Selection window" and the "New" button should be available.

 

Best regards,

Bogdan

 

 

Hello Gareth,

 

you can also disable New in "List", but with a little coding:

1. Override LookupQuickAddMixin

 

define("UsrLookupQuickAddMixin", ["LookupQuickAddMixin"], function() {
	Ext.define("Terrasoft.UsrLookupQuickAddMixin", {
		override: "Terrasoft.LookupQuickAddMixin",
		onLookupDataLoaded: Terrasoft.emptyFn
	});
});

 

2. Replace BootstrapModulesV2

define("BootstrapModulesV2", ["UsrLookupQuickAddMixin"], function() {
	return {};
});

 

Show all comments

I've created a process that send email.

I'm trying to inject process parameters into an HTML element of a custom email template, But the values are NOT populated into the html output.

 (see attached screenshot..)

 

Thank

Eran 

File attachments
Like 0

Like

2 comments

 Hello Eran, 



in order to do that first you need to add a block to the designer, and then add a text element. When you click on the text element, you will see at the top corner a thunder. If you click on the thunder you will be able to add your parameter to the text element.



Then, you need to click again on the text element, and you will see near the tunder another button, which has a tag inside <>, it is called "Edit source HTML code". You can click on it and it will show you the HTML for this text element, including the HTML for the parameter. Now you need to copy the  HTML code for this parameter (it will be an image tag) .



Then, you can go to the HTML block where you want to use this parameter, and paste it.  This will be enough to pass the parameter.

Also, you can create a parameter at the HTML element, and at the  "Value" field, you can pass this image tag that represents your parameter. 



Both options are valid to pass a parameter to your HTML element. I'll attach here photos showing how to do the steps mentioned above.

 

Best regards,

Dariy

 

 

Hello Eran, 

 

following our conversation over the email, I'll share here as well the two ways to dinamically insert Id's into a link, in order to use that link at an email.

 

-The best one is creating a formula where you will concatenate two strings, the URL + the activity ID. 

You just need to create a formula before the email and modify the strings like this

"http://my.domain.com/0/Nui/ViewModule.aspx#CardModuleV2/ActivityPageV2/edit/"+[#Parameter 1#]  

I'll attach a photo showing how you can do this.



After that, your Parameter 1, will be a ready to use link with the ID attached at the end.

Now you can insert it into a text block (clicking on the thunder icon as I've shown in photos from previous messages) .

Or you can directly insert the img tag into the HTML code, you dont need to use the <a> tag because the img tag will be automatically converted to a link once you send the email. The formula will be responsible to merge the dynamic value of the parameter with the URL, and when you insert that into the email it will be a ready to use link.





-You can also create a text block in the email, then copy and paste the URL, after that you insert the Parameter with the ID, and then you put quotation marks between them "http://my.domain.com/0/Nui/ViewModule.aspx#CardModuleV2/ActivityPageV2/edit/[#Parameter 1#]".

This method is less desirable to use but i'll also attach a photo showing how does it look in the email designer.

 

Best regards,

Dariy

Show all comments

Hi,



How can we filter to left "client" field in opportunities to show only accounts for selection and not contacts or accounts ?



Damien

Like 0

Like

2 comments
Best reply

Hi Damien,

You can add this to the page attributes to remove the contact lookup option:

attributes: {
  "Client": {
    "multiLookupColumns": ["Account"]
  }
}

Ryan

Hi Damien,

You can add this to the page attributes to remove the contact lookup option:

attributes: {
  "Client": {
    "multiLookupColumns": ["Account"]
  }
}

Ryan

Ryan Farley,

 



Thanks, worked perfectly :)

Show all comments

Hello,



I have a requirement to bind Organizational Roles to the package. I have come across some similar questions on academy and found that we can use SQL script to perform the same. Could someone please help with this if they are familiar with this approach or have done this activity previously. Thank you

Like 1

Like

2 comments

Hello,

 

Thank you for your question. 

 

Please, note that it's not recommended to bind users, organizational structure, roles, licenses, and other administrative things to a package. It will be very hard to handle that if you decide to install that package after the moment when the client adjusts that administrative things according to his or her needs directly on the production.

 

Unfortunately, there is no script we could provide you with but in case you decide to bind this data and transfer it to another environment we suggest checking all changes on the copies before delivering it to the production websites. The organizational structure is in the "SysAdminUnit" and "SysAdminUnitInRole" tables and you are right, it's possible to bind it to the package via SQL scripts only.

 

Best regards,

Anastasiia

We usualy do the following:



Create separate package for Roles

1. Add Data for SysAdminUnit 

2. Add Data for SysUserInRole



Before you install the package

Switch off trigger TRSysAdminUnitRoot in table SysAdminUnit (otherwise it will block adding new roles)



Install the package

 

Switch on trigger TRSysAdminUnitRoot in table SysAdminUnit



And always remember, that deleting of data cannot be transfered without SQL script

Show all comments

how can I add a link to a created activity on the email sent by "Send email to case assignee"  process ?? 

 

 

Like 0

Like

3 comments

Hello Eran, 

 

Could you please elaborate a bit on your business task, do you need to have the direct link to the activity page ( meaning email record sent by "Send email to case assignee"  process) or which functionality exactly should be achieved?

 

Thank you in advance!

Best regards, 

Anastasiia 

Hi,

There is a process (in process library) "Send email to case assignee" that sends email to the employee once a task is assigned to him. 

This process creates a new activity (for the employee to handle the case) and populate the "Specifying case assignee" email template, then sends it to the employee email.

 

I need to add a link in this template that will take the user directly to the newly activity page that was created by the process.

 

I hope it's clearer now  :-).

 

Thanks.

Hello Eran,

 

We've been able to build a process that would make such an idea work. Please follow this link to download the process, then you need to install it on your instance to see how everything works.

 

Just a few comments though:

In the [Add data] element, you would need to change the "To" and "From" fields to the values you need. Also, please remember that this is just an example of how such logic can be implemented and that it is possible. However, though this process could work on its own, you will need to implement it into the "Send email to case assignee" business process on your own and make changes to it so it could work seamlessly within the main process.

 

Please let me know if any questions appear or additional information is needed!

 

Kind regards,

Mira

Show all comments

Hello community! 

I would like to know if there's an easy way to check whether or not an input string is an acceptable email address (mening that it contains at least "@.")

I would like to check the correctness of the input received by the user, no need to verify the validity of the email address (I know there's an addon in the marketplace for that). 

Otherwise I'll just stick to the old but gold "[#myParam#] !=  String.Empty" check.

Thank you in advance.

Have a great day (:

Like 0

Like

2 comments
Best reply

Hi Federica, 

The very basic way to check for a character or a string inside another string is to use String.Contains('char') method. 



For example, you can use it in your conditional flow like this :

[#ReadDataUserTask1.First item of resulting collection.Notes#].Contains('@')

 

Best regards,

Yurii. 

Hi Federica, 

The very basic way to check for a character or a string inside another string is to use String.Contains('char') method. 



For example, you can use it in your conditional flow like this :

[#ReadDataUserTask1.First item of resulting collection.Notes#].Contains('@')

 

Best regards,

Yurii. 

 

Thank you Yurii! 

 

Show all comments

Hello 

When creating a new Task the system automatically sets the task duration 30 minutes. How can I change this default value?

 

There is an older question about it, but I can't find that line that is mentioned there  

 

Thanks in advanced for your help!

Like 0

Like

3 comments
Best reply

Hello Cesar,

 

Unfortunately, there is no option to change the default value anymore.

As a workaround, you are able to change the duration after creating the task.

 

Thank you,

Artem. 

Hello Cesar,

 

Unfortunately, there is no option to change the default value anymore.

As a workaround, you are able to change the duration after creating the task.

 

Thank you,

Artem. 

Hello Artem,

 

In version 8.0.10, is it possible to change the default value assigned to the duration of activities?



Thank you,

Andreia

 

 

Hello Andreia,

 

Unfortunately, this option is still not available at the moment. However, a task has already been registered in our R&D team to consider and implement such a feature in future releases.

 

 

Show all comments