bcc
Email
Activity
emaillistener
Studio_Creatio
8.0

Greetings!

 

Have noticed that field BlindCopyRecipient in Activity is not being populated when receving an email, that was send using bcc field and specifying an email address that is configured for synchronization.  However email is synchronized and showing correctly in communication panel. Is it a bug or feature?

 

Like 1

Like

1 comments
Best reply

Hello, 

Such behavior is indeed reproduced when the recipients of the email are in the BCC field. If the "To" and "CC" fields are empty, and the recipients are in BCC, this behavior is expected. 

Logic behind how the BCC field works:
The BCC field in the letter is seen only by the sender, and only in the sent email folder. This behavior is based on the message data transfer logic at the email server level; the recipient in the blind copy does not have access to view the list in the BCC field. None of the recipients will see the blind copy (even if you send it to yourself). Therefore, the BCC field in Creatio will be filled in only in two cases: - the letter was sent from our system, and while sending, you need to specify the recipients in this field. - the letter was synchronized from the sent letters folder. In other cases, the BCC field in Creatio will be empty. Since for these emails, recipients were not specified in the "To" and "CC" fields, only in BCC, which according to the logic of the field's operation, we do not see, there is a situation where the email is synchronized, but there are no recipients. Please note that Creatio cannot influence this behavior in any way, as we only synchronize the email from the mail server with the same parameters as the parameters of this email. Since the "To", "CC", "BCC" fields are empty in Outlook itself, they will also be empty in Creatio. 

Best regards,
Ivan

Hello, 

Such behavior is indeed reproduced when the recipients of the email are in the BCC field. If the "To" and "CC" fields are empty, and the recipients are in BCC, this behavior is expected. 

Logic behind how the BCC field works:
The BCC field in the letter is seen only by the sender, and only in the sent email folder. This behavior is based on the message data transfer logic at the email server level; the recipient in the blind copy does not have access to view the list in the BCC field. None of the recipients will see the blind copy (even if you send it to yourself). Therefore, the BCC field in Creatio will be filled in only in two cases: - the letter was sent from our system, and while sending, you need to specify the recipients in this field. - the letter was synchronized from the sent letters folder. In other cases, the BCC field in Creatio will be empty. Since for these emails, recipients were not specified in the "To" and "CC" fields, only in BCC, which according to the logic of the field's operation, we do not see, there is a situation where the email is synchronized, but there are no recipients. Please note that Creatio cannot influence this behavior in any way, as we only synchronize the email from the mail server with the same parameters as the parameters of this email. Since the "To", "CC", "BCC" fields are empty in Outlook itself, they will also be empty in Creatio. 

Best regards,
Ivan

Show all comments
formulas
bpm
Studio_Creatio
8.0

I need to convert a decimal field into words for a report template. Can this be done with a formula or does it have to be a script?

Like 0

Like

2 comments
script task
c#
bpm. processes
Studio_Creatio
8.0

I have created a script to turn integers into words and it keeps compiling with errors.

 

heres the script:

 

using System;
using System.Text;
using Terrasoft.Core;
using Terrasoft.Core.Entities;
using Terrasoft.Core.Process;

public class ConvertCurrencyToTextTask : ProcessUserTask
{
   // ✅ Constructor
   public ConvertCurrencyToTextTask(ProcessExecutingContext context) : base(context) { }

   // ✅ Main execution method (Runs when the Script Task is triggered)
   public override bool CompleteExecuting(UserConnection userConnection)
   {
       try
       {
           // ✅ Retrieve the requested amount from the process parameter
           decimal requestedAmount = Get("DfcReqAmt");

           // ✅ Retrieve the dynamically fetched record ID
           Guid recordId = Get("Id");

           // ✅ Convert the numeric amount to words
           string convertedText = ConvertToWords(requestedAmount);

           // ✅ Store the result in the output parameter
           Set("DfcRequestedAmountText", convertedText);

           // ✅ Update the record in the FinApplication object
           UpdateRecord(userConnection, recordId, convertedText);
       }
       catch (Exception ex)
       {
           throw new Exception("Error in ConvertCurrencyToTextTask: " + ex.Message);
       }

       
   }

   // ✅ Converts numbers to words (DYNAMIC)
   private string ConvertToWords(long number)
   {
       if (number == 0)
           return "Zero";

       if (number < 0)
           return "Negative " + ConvertToWords(Math.Abs(number));

       string words = "";
       int thousandIndex = 0;

       while (number > 0)
       {
           if (number % 1000 != 0)
           {
               words = ConvertHundreds(number % 1000) + Thousands[thousandIndex] + " " + words;
           }
           number /= 1000;
           thousandIndex++;
       }

       return words.Trim();
   }

   // ✅ Converts hundreds, tens, and ones
   private string ConvertHundreds(long number)
   {
       string words = "";

       if (number >= 100)
       {
           words += Ones[number / 100] + " Hundred ";
           number %= 100;
       }

       if (number >= 10 && number <= 19)
       {
           words += Teens[number - 10] + " ";  // ✅ Corrected indexing for Teens
       }
       else
       {
           words += Tens[number / 10] + " ";
           words += Ones[number % 10] + " ";
       }

       return words.Trim();
   }

   // ✅ Updates the record with the converted text
   private void UpdateRecord(UserConnection userConnection, Guid recordId, string convertedText)
   {
       if (recordId == Guid.Empty) // ✅ Ensures ID is valid before updating
           throw new Exception("Record ID is empty, cannot update record.");

       var entitySchema = userConnection.EntitySchemaManager.GetInstanceByName("FinApplication");
       var entity = entitySchema.CreateEntity(userConnection);

       if (entity.FetchFromDB(recordId))
       {
           entity.SetColumnValue("DfcRequestedAmountText", convertedText);
           entity.Save();
       }
   }

   // ✅ Number arrays (DYNAMIC)
   private readonly string[] Ones = { "", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine" };
   private readonly string[] Teens = { "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen" };
   private readonly string[] Tens = { "", "", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety" };
   private readonly string[] Thousands = { "", "Thousand", "Million", "Billion", "Trillion" };
} // ✅ Class correctly closed

 

 

return true; // ✅ Ensures method completes properly
 

 

 

 

these are the errors I am getting:

 

DfcProcess_25a93f1.DfcLoans.cs    Identifier expected    CS1001    34
DfcProcess_25a93f1.DfcLoans.cs    Identifier expected    CS1001    33
DfcProcess_25a93f1.DfcLoans.cs    Identifier expected    CS1001    35
DfcProcess_25a93f1.DfcLoans.cs    Type or namespace definition, or end-of-file expected    CS1022    151
DfcProcess_25a93f1.DfcLoans.cs    } expected    CS1513    36
DfcProcess_25a93f1.DfcLoans.cs    Identifier expected    CS1001    32
DfcProcess_25a93f1.DfcLoans.cs    Identifier expected    CS1001    36

 

Not sure what is missing as far as syntax goes, all bracket appear to be in place.

 

Appreciate the help in advance.

 

 

 

 

Like 1

Like

4 comments

Hi,

 

The error is related to the business proceess DfcProcess_25a93f1. Can you share a source code for the business process, not the user task you shared? You can get the source code of the business process here:

There was no source code?

Hello,
 

In this case, do you perform development on a local environment?

If so, could you search for the schema in the {rootAppFolder}\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\DfcLoans\Autogenerated\Src\DfcProcess_25a93f1.DfcLoans.cs directory?

You can also find the location of the file that causes compilation errors if you look at the application logs (Build.log) for the day of compilation and errors.

Show all comments
8.0
Feed
Email
notification
Studio_Creatio

Hello,

 

I'm wanting to setup a business process so that when a user is mentioned in the feed they receive an email notification. Also, there may be instances where more than 1 user is mentioned in a single comment and I'd want each person to get an email notification in that case.

 

I've tried creating this business process and am stuck as it sends the notification to the person who created the comment in the feed, not the user mentioned in the comment. Any tips on this are greatly appreciated!

 

Thank you,

 

Eric

Like 0

Like

5 comments
Best reply

Hi Eric,

try to use such signal on the object 'User mention' and send notification to Contact:

Hi Eric,

try to use such signal on the object 'User mention' and send notification to Contact:

Thank you! That did it. What's the best method to provide a link to the record via an email? I tried following the steps here - https://community.creatio.com/questions/link-based-feed-notification but it appears to break when there are replies to an existing comment.

 

Eric Curran,

We have such formula (it is for Classic UI, but you can change it for Freedom UI):

"<a href=\""+[#System setting.Website URL#]+"/0/Nui/ViewModule.aspx#CardModuleV2/"+[#Page name#]+"/edit/"+[#Object Id#]+"\">"+[#Record title#]+"</a>"

Eric Curran,

We have implemented this way for replies:

Vladimir Sokolov,

Thanks so much for the assistance! I do have one follow up question, what is the best way to limit this process to a certain object? We only want to turn on these notifications for one object, not every object.

Show all comments
permissions
403
PATCH
Studio_Creatio
8.0

Hello!
I created a new Functional role with oData operations permission and add it to User. 
Using Postman can GET data from "Contact" collection with this User credentials. It also can create new Contact using POST method.
PATCH returns:  403 - Forbidden: Access is denied
DELETE returns:  405 - HTTP verb used to access this page is not allowed

What permissions I have to grant to this Functionsl role and how?

This instruction
https://academy.creatio.com/docs/developer/integrations_and_api/data_se…
say for 405
"The response should contain the Allow header with the list of request methods the resource supports."
Postman returns:
 405 - HTTP verb used to access this page is not allowed

 The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

 

Can you help?

Like 0

Like

1 comments
Best reply

Greetings! 

 

For the user to work through OData, you need to grant them access using the CanUseODataService code in the Operation permissions section. 

Greetings! 

 

For the user to work through OData, you need to grant them access using the CanUseODataService code in the Operation permissions section. 

Show all comments

Hi,

 

I want to make a validator that endDate cannot be erlier than leave startDate, in endDate field in viewModelConfigDiff,

Expectation:

 

My Code:

 

"PDS_UsrLeaveEndDate_quo1xia": {
	"modelConfig": {
		"path": "PDS.UsrLeaveEndDate"
	},
	"validators": {
		"MySuperValidator2": {
			"type": "usr.FutureDateValidator2",
			"params": {
				"message": "#ResourceString(EndDateWarning)#",
				"startDate": "PDS_UsrLeaveStartDate_apq3vdm"
			}
		}
	}
}

 

   "usr.FutureDateValidator2": {
                validator: function (config) {
                    return function (control) {
                        let value = control.value;
                       let startDate =  config.startDate;
                        let valueIsCorrect = value > startDate;
                        var result;
                        if (valueIsCorrect) {
                            result = null;
                        } else {
                         console.log(startDate);
                         console.log(value);
                            result = {
                                "usr.FutureDateValidator2": { 
                                    message: config.message
                                }
                            };
                        }
                        return result;
                    };
                },
                params: [
                    {
                        name: "message"
                    },
                 {
                        name: "startDate"
                    }
                ],
                async: false
            },

 

But, value of startDate from the params is a String, how to get the actual value?

 

Thank you

Like 0

Like

1 comments

Currently, you cannot pass the value of another field to a validator, this function is still under development. However, you can write something similar using global variables as described in this discussion.

Show all comments
Signature_font
Studio_Creatio
8.0

Hi all,

 

I would like to know if and how it is possible to add a font for configuring email account signature.

 

Best regards

 

stefano

 

Like 0

Like

1 comments

Hello,

To upload new fonts and use them in emails, you need to change the values of the system settings "CKEditor fonts list" ("CKEditor fonts list") and "CKEditor default font" ("CKEditor default font"). 

The "CKEditor fonts list" system setting is responsible for which font you will be able to see in the font drop-down list. It should be added to the beginning of the system setting list, with ";". 

Accordingly, in order to use this font, they just need to be installed on the server as a regular font. 

It is also necessary to know that if the recipient does not have this font, he will not see this font.

More information can be found in this instruction.

Best regards,
Antonii.

Show all comments
mini-page
Account_lookup
Add_Button
LookupPageViewModelGenerator
Studio_Creatio
8.0

Hi, everybody!

 

I work on Classic UI. I have a task: to realize opening mini-page instead of full page in Account Lookup by clicking Add Button. 

 

I managed to do it in runtime mode.

 

To do this, it was necessary to make a change to the basic client module  LookupPageViewModelGenerator.js, the needOpenMiniPage method.

But I couldn't override this basic module in the configuration and connect it to my page.

 

Code of my new LookupPageViewModelGenerator:

define("LVLookupPageViewModelGeneratorV2", ["LookupPageViewModelGenerator"], function(LookupPageViewModelGenerator) {
 
Ext.define("Terrasoft.configuration.LVLookupPageViewModelGeneratorV2", {
extend: "Terrasoft.LookupPageViewModelGenerator",
		needOpenMiniPage: function(entitySchemaName) {
		this.lookupInfo.isQuickAdd=true; // додано
		const notUseSilentCreation = !Terrasoft.Features.getIsEnabled("UseSilentCreation");
		const entityStructure = moduleUtils.getEntityStructureByName(entitySchemaName);
		const editPages = entityStructure.pages;
		const hasAddMiniPage = editPages[0].hasAddMiniPage;
		return notUseSilentCreation && this.lookupInfo.isQuickAdd && !Ext.isEmpty(hasAddMiniPage);
				},
    		});
    return Terrasoft.configuration.LVLookupPageViewModelGeneratorV2;
});

 

Code of my page where lookup is contained:

define("ELFinApplicationAccountPage", ["LVLookupPageViewModelGeneratorV2"],  function() {
return  {
entitySchemaName: "FinApplication",
attributes: {},
messages: {},
details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
businessRules: /**SCHEMA_BUSINESS_RULES*/ {}/**SCHEMA_BUSINESS_RULES*/,
methods: {},
diff: /**SCHEMA_DIFF*/[
			{
          operation: "insert",
          name: "LVPartnerWhoRecommended",
          parentName: "AdditionalProfileInfoContainer",
          propertyName: "items",
          values: {
            layout: {
              column: 0,
              row: 6,
              colSpan: 24
            }
          }
        },
         ]/**SCHEMA_DIFF*/
         };
});

 

I wrote this code while I was reading this article: https://community.creatio.com/questions/add-mini-card-contact-lookup-new-optionbutton. But maybe I made a mistake or didn`t take smth into account.

What do I have to do to make this work?

 

Thank you!

Like 3

Like

1 comments

Hello,
Try creating a full copy of this schema (not override) with the modified method needOpenMiniPage and connect this copy in the define of the needed schema.
Also, in newer versions, you can unlock a package for a hotfix, with it, you can modify a base schema directly.

Show all comments
DCM
Business Process
Studio_Creatio
8.0

Hello Everyone, 

 

I created a Dynamic DCM that includes some sub-processes to validate lists on my form page. If validated correctly the stage should continue forward. the first stage works just fine it proceeds. When I validate the following one though the stage does not change. I have re-checked my BP multiple times to ensure it has taken the appropriate path and also the result conditions set in order for the case to move forward dynamically and they both check out. Any idea what the issue could be?

Like 0

Like

1 comments

Hello,

 

Here are a few additional steps you can take to troubleshoot the issue:

  • Ensure that the validation logic in your sub-processes is correctly implemented and that it returns the expected results.
  • Double-check the transition conditions between stages to ensure they are correctly configured and that they match the output of your validation logic.
  • Look at the case logs to see if there are any errors or warnings that might give you more insight into why the stage is not progressing.
  • Try testing the process with different sets of data to see if the issue is data-specific.
  • Ensure that the user executing the process has the necessary permissions to move the case forward.
Show all comments
Rich_Text_field
Studio_Creatio
8.0

Hi all,

 

We have noticed that in formatting options of a Rich Text field there is the possibility to 'Align left', 'Center' and 'Align right'.

 

Is there a way to enable also 'Justify' formatting option?

 

Best Regards

 

Stefano
 

Like 0

Like

1 comments

Dear Stefano,

Unfortunately, currently, there is no option to justify the format in Rich text. 

I have created an idea for the R&D team.


Thank you for making Creatio better!

Show all comments