Dear,

 

In the section, I have a DateTime field.

In the email template I want to display the Date only, so no timestamp.

 

Email template: https://prnt.sc/10aa38n

Result: https://prnt.sc/10aa4ux

 

In the Academy I found following article which describes how to add a fixed text as a macro, but not how I can format an existing field.

https://academy.creatio.com/docs/developer/front-end_development/creati…



Any idea how this can be fixed?

 

Kind regards,

Vincent

Like 1

Like

1 comments

Hello Vincent,

 

I did a research but it seems that there is no easy way to complete your business task. I've registered the request for the R&D team to investigate how the macro functionality can be extended with more features.

As a workaround, you can add a hidden column into the object that will contain the same date as in your DateTime field. After that, you can add it to the template with the help of macro.

 

Best regards,

Bogdan S.

Show all comments

I recall in the past seeing documentation on this, but now I can't find it. In the cases section, there are several actions that result in a user following the feed for that case. For example, if they post a feed message on that case, if they are set as the assignee. Is that it? Are those the only two things that make a user default to following the case? Is there a comprehensive list of all the actions a user can do that will result in them automatically following the feed of a case?

 

Like 0

Like

2 comments
Best reply

Dear Mitch, 



There are a few ways of getting subscribed to the case feed:

- If the user creates a record;

- If the user posts a message to the feed;

- If the user set as assignee to the case. 

- If the user subscribed to follow the feed manually in the action panel; 



This information will be added to our academy soon. 



Kind regards,

Roman

Dear Mitch, 



There are a few ways of getting subscribed to the case feed:

- If the user creates a record;

- If the user posts a message to the feed;

- If the user set as assignee to the case. 

- If the user subscribed to follow the feed manually in the action panel; 



This information will be added to our academy soon. 



Kind regards,

Roman

Roman Brown,

Thank you Roman. That is what I was looking for.

Show all comments

Hi Team,

 

Have a query regarding widget we design in the dashboard can be read filter from the dashboard to modify our output on the widget.

If it is possible please share a scenario with implementation 

This will be really useful to meet some business requirement 

 

Thank You in Advance 

Like 1

Like

4 comments

Hello Braj,

 

Unfortunately, I was not able to find an example you requested but you can always check all the needed parameters in the Academy Article that is related to Dashboard widgets and their customizations.

 

Best regards,

Bogdan S.

Hi Bogdan,

 

we need to calculate the loss ratio from some data sets 

 

ex. we have 100 records out of which 70 has profit field filled and 30 has loss field filled.

Based on filtration we performed on the dashboard/pivot report we get  records (N can be  10,20,30 or any number 

 

Now I want a loss ratio (loss/profit) of those N records only.

 

in this case loss ratio = sum of loss from filtered records /sum of profits from filtered records.

 

Hope you got the requirement if case any query please contact me.

 

Thank You

Braj Raj singh Kushwaha,

 

Your business task is quite clear but still, there is no existing example of code that you can use. Please, check the article that I sent before and do all the required development.

 

Best regards,

Bogdan S.

Bogdan Spasibov,

Thank You so much 

 

your article was very useful It helped me to do some other requirement.

Even fund some app that was free to use and my task was completed using them.

 

Once again thank you so much

Show all comments

Hi Community,

 

How to get the current user contact in Mobile? What is the counterpart of this in Mobile Terrasoft.SysValue.CURRENT_USER_CONTACT? Thank you

Like 0

Like

1 comments

Hi Fulgen,

 

Please use Terrasoft.CurrentUserInfo.contactName in the mobile app to get the current user contact name.

 

Best regards,

Oscar

Show all comments

Hi Community,

 

In mobile, how can I get the value of some fields in lookup fields?

 

Suppose in Case, using I will get MobilePhone from Contact using CreatedBy field in case. I tried below but it is undefined:

 

var mobile = record.get("CreatedBy.MobilePhone");

 

Any idea please

 

 

Like 0

Like

1 comments

Hello Fulgen,

 

You need to use the following code:

record.get("CreatedBy").get("Name")

 

You can also set the breakpoint in one of the business rules and study which keys and values the record object returns.

Please also note that two possible values that you can get from the related record are:

 

1) Record Id

2) Record display column value

 

Best regards,

Oscar

Show all comments

Hello all,

 

I noticed that by default Creatio adds a Non-Unique/Non-Clustered index on all foreign key columns (Look up references). Want to understand this better. 



Indexes can be detrimental when there is a lot of Writes into that table as compared to Reads. This effect gets multiplied when a Table has 5 or more look up reference columns. 



1. Are these indexes Mandatory for the functioning of Creatio?

2. Will there be any side effects (Apart from performance implications) to removing these indexes on a case by case basis - After evaluation of whether table has more Read vs Write frequency. 

Like 0

Like

4 comments

Hello,

 

Foreign key indexes are not mandatory but if you disable or remove that index, it may result in a slower search. We do not recommend removing OOTB indexes. Instead, you can safely disable indexes. E.g. for MS SQL Server use:

 

ALTER INDEX [YOUR_INDEX_NAME] ON dbo.[YOUR_TABLE_NAME] DISABLE;

 

Best regards,

Bogdan S.

Bogdan Spasibov,

Thank you Bogdan. If we disable it at the DB level, wouldn't a subsequent package install re-enable that index? 



From my understanding, the Index is controlled by the 'Indexed' attribute against that column in the Object designer. Is it better to remove it from here or disable it at the DB level directly?

M Shrikanth,

 

If you are not going to use that you can remove it from the Object Designer and disable it on the DB level.

But let me ask you what is the business task you are trying to achieve?

 

Best regards,

Bogdan S.

Bogdan Spasibov,

Hi Bogdan. Thank you. Indexes by default do not add a performance benefit. They aid read performance but slow down writes as the indexes are to be updated as well. Creatio seems to add by default an index to all foreign key columns irrespective of whether that table is read heavy or write heavy. In cases where performance is a big deal, disabling these indexes might give a performance edge. 

 

This is to better our understanding of Creatio and not for a specific business task. 

Show all comments

Hi

i want to reload the detail record after i chose the "Processed" case.

i have found this.reloadDetails() but it's use for the function from editpage

Can anyone help me out with this issue ?

Like 0

Like

1 comments

Thank you for your question!

 

Please be advised that you may feel free to use the "this.reloadEntity();" method for your case.



In addition, you may use a Marketplace solution for refreshing detail`s or section`s lists: https://marketplace.creatio.com/app/refresh-data-button-creatio



Or, you may find more information on your case by these community threads below:

1. https://community.creatio.com/questions/how-refresh-entire-page-without…

2. https://community.creatio.com/questions/default-value-custom-objects

3. https://community.creatio.com/questions/reload-record-page



Thank you!

 

Regards,

 

Danyil

 

Show all comments

Hello collegues,

 

I saw the process have an script to generate a MSWord Printable, I need to get one to generate a FastReport printable, somebody can help?

 

The code in this case to MSWord printable is 

var reportService = new Terrasoft.Configuration.ReportService.ReportService();
Terrasoft.Configuration.ReportService.ReportData report = reportService.GenerateMSWordReport(
    (PrintableId.ToString()), ObjectId.ToString(), ConvertToPdf);
var entity = UserConnection.EntitySchemaManager.GetInstanceByName("labQuoteFile");
var fileEntity = entity.CreateEntity(UserConnection);
fileEntity.SetDefColumnValues();
fileEntity.SetColumnValue("labQuoteId", QuoteId);
fileEntity.SetColumnValue("TypeId", AttachmentType);
fileEntity.SetColumnValue("Name", FileName);
fileEntity.SetColumnValue("Data", report.Data);
fileEntity.Save();
return true;

Thanks in advance

Like 0

Like

1 comments

Hello Julio,

 

I've noticed that you've already found the solution to this question in terms of this community post. Please specify if additional help is needed in this thread.

 

Thank you!

 

Best regards,

Oscar

Show all comments

Hi community,

 

We've this situation where we need to send all the attachments that are linked to Documents, including the byte[] data, to a SOAP based service.

We have two solutions in order to implement this:

  1. To send the attachments we could simply convert the byte[] data to base64 string and send it within the body of the SOAP message. Some of the files are more than 10MB, so this is not the best solution.
  2. The other solution is to use the MTOM message encoder, to send the attachments in multiple parts.

We have two questions:

  1. What are the best ways to send multiple attachments through SOAP based requests?
  2. If we choose to send the attachments using MTOM, how can we implement this?

Thanks in Advance.

 

Best Regards,

Pedro Pinheiro

 

 

Like 2

Like

1 comments

Hi Pedro,

 

Maybe it's better to call the https://<instance>/0/rest/FileService/GetFile/7B332DB9-3993-4136-AC32-09353333CC7A/fileId for all the files and receive a response from the third party service? You need to call this link for each record from the DocumentFile table (filed should be modified for each time with an actual Id of a record from the DocumentFile table). Previously we didn't have such requests and we have no practical example of the logic deployment. The link above is a base link used to download attachments when clicking them on the "Attachments" detail so you can try calling it in the webservice.

 

Best regards,

Oscar

Show all comments
Question

Hi community!

 

Is it possible to block the change of lead status to final positive according to account status?

My case:

For submitted or rejected account status, Lead status can be any, except final positive (in my case qualified). To set lead status as qualified, the account must be in Approved status.

How can this be achieved?

BR

Like 0

Like

3 comments

Dear Paulina,

 

You may create the business process that would update the lead status to qualified once  the account is approved. At the same  time, you may lock the lead stage from manual selection in DCM settings and set up the business rule to lock it (if you use simple lookup filed for selecting the statuses)

 

Regards,

Dean 

Dean Parrett,

Hi Dean, 

Thanks for this idea but it doesn't fully meet my requirements.

The manual selection has to be possible (the user needs to decide when the Opportunity should be created). The Account status is copied from the Account and updated if it is changed (Lead can be created with unapproved account and during lead flow, the account can be accepted.) The issue is that lead cannot achieve final positive status if Account status field on the lead is other than Approved. 

BR

Hi Paulina,



you should use validation on your Lead Page.



We do similar in our projects:



 

asyncValidate: function(callback, scope) {
 this.callParent([function(response) {
  if (!this.validateResponse(response)) {
   return;
  }
  this.Terrasoft.chain(
   function(next) {
   this.asyncValidateSomeDetails(function(response) {
    if (this.validateResponse(response)) {
     next();
    }
   }, this);
  },
  function(next) {
   callback.call(scope, response);
   next();
  }, this);
 }, this]);
}

And create your method for validation that returns true or false

Show all comments