Hi Community,

 

Have you tried triggering a business process after successful login? Any idea please?

Like 1

Like

3 comments

Hello Fulgen,

 

Could you please elaborate a bit on your business task? Would you like to start execution of the business process based on the active user session in a system?

 

Looking forward to you reply!

Best regards,

Anastasiia

Hi Fulgen,



Maybe our way allows you to solve your task:

We make scheduled process (every minute) and check if there are unprocessed records in 'Audit log' with Type = 'User authorization' and Result = 'Authorization'



Before you need to add new field 'Processed' to 'Audit log' object in order to set it to True when record is processed

Hi,

 

Thank you for all your reply, I need to start the event after successful login. I believe crm is saving session record somewhere else. Can I use this object to trigger the event? What is this object and the field name I want to start a signal using this.

Show all comments

Можно ли и если можно, то как сделать замещение класса?

Например: есть сервис который вызывается с разных мест(клиентские схемы, БП). Все находится в заблокированных пакетах. Как изменить методы этого сервиса?

Like 4

Like

1 comments

Hello,

I am trying to validate a record before it gets inserted into the DB using entity events layer :  public override void OnInserting(object sender, EntityBeforeEventArgs e);

 

If the validation fails, I would like to display a message to the user. Is there a built in method like set validation message or something? I understand this can be done through Web socket but I would prefer if I am able to use a built in validator.

 

Thanks

Like 0

Like

2 comments
Best reply

Hello Shivani,

You can simply throw an exception from the event and it will halt the insert process and display the exception message to the user.

An an example, this OnInserting event checks to ensure the Also known as field is not empty:

using System;
using Terrasoft.Core.Entities;
using Terrasoft.Core.Entities.Events;
 
namespace FX.EntityEventListeners
{
    [EntityEventListener(SchemaName = "Account")]
    public class UsrAccountEntityEvents : BaseEntityEventListener
    {
        public override void OnInserting(object sender, EntityBeforeEventArgs e)
        {
            base.OnInserting(sender, e);
            var account = (Entity)sender;
 
            if (string.IsNullOrEmpty(account.GetTypedColumnValue<string>("AlternativeName"))) 
            {
                throw new Exception("Also known as cannot be blank");
            }
        }
    }
}

This displays this message when the user inserts an account without this field populated:

Ryan

Hello Shivani,

You can simply throw an exception from the event and it will halt the insert process and display the exception message to the user.

An an example, this OnInserting event checks to ensure the Also known as field is not empty:

using System;
using Terrasoft.Core.Entities;
using Terrasoft.Core.Entities.Events;
 
namespace FX.EntityEventListeners
{
    [EntityEventListener(SchemaName = "Account")]
    public class UsrAccountEntityEvents : BaseEntityEventListener
    {
        public override void OnInserting(object sender, EntityBeforeEventArgs e)
        {
            base.OnInserting(sender, e);
            var account = (Entity)sender;
 
            if (string.IsNullOrEmpty(account.GetTypedColumnValue<string>("AlternativeName"))) 
            {
                throw new Exception("Also known as cannot be blank");
            }
        }
    }
}

This displays this message when the user inserts an account without this field populated:

Ryan

 

Thanks Ryan! This works!

Show all comments

Hi guys,



Anyone here experience not being able to save a formal contact relationship?

Both test kim (contact) and brad wolfe (contact) is connected to test delete 2 (account)

 





Let me know if you experience same thing or got any idea what to do.



Best regards,

Lem

Like 0

Like

0 comments
Show all comments

Hi

I have an existing process which when an email is sent associated with a case it will update the Modified On value to the time the email was sent. This is useful as it allows us to track that a case is being updated.

I would like to include the ability for the Modified On date of the case to be updated if someone adds a Feed note. 

I have however not been able to find a way of adding a source signal, which has the filter in it to only be for feeds added to cases.

Anyone able to give me a steer on how I can achieve this please.

 

thanks

 

 

Like 0

Like

2 comments

Is this not possible to achieve?

Hi Mark,



You can make process on Message/comment added

But you will have Id's of your schema (these are for Activities)



Show all comments

Hi Community,

 

Any idea how can I pass multiple selected rows from section page to business process?

 

I need to pass the selected record Ids stored in "var selectedRows = this.get("SelectedRows");" selectedRows variable from section page to Business process parameter "Collection of Records" and process these record Ids in business process.

Like 0

Like

2 comments

Dear Fulgen,

 

You can trigger a business process with the ProcessModuleUtilities. Check out this post from Ryan Farley, he explains how to achieve that :

https://customerfx.com/article/programmatically-starting-a-process-from…

 

Best regards,

 

Julien

Hi, did you find a solution for this? I need to do the same thing.

 

Show all comments

Hi

I installed a new package in the Creatio environment and then deleted it from the Advanced Settings, but the changes present in the package are still visible in the environment.

Hence what additional steps do I have to perform to restore or reset the Creatio environment to its basic default state after I delete the new package?

 

Thank you 

Like 0

Like

0 comments
Show all comments

How to disable the Select All button on Modal dialog box?

Like 0

Like

4 comments

Kindly Suggest

Roman Rak,

 

Thanks Roman but the links are referring to the section objects. I want to disable the Action Item(Select All) in Lookup Config - please find the screenshot added in the current post.

 

I have tried by overriding the getSelectionControlsConfig and getActionsMenuConfig from LookupPageViewGenerator schema module but it looks like the method is not getting executed.

Kindly suggest

 

 

Hello Anupama,

 

Thank you for your reply. 

If to talk about a selection card from a lookup,  the getSelectionControlsConfig method in the LookupPageViewGenerator. The BaseLookupPageV2 scheme is responsible for this page/window. For example, previously the Add button was called: SeparateModeAddRecordButton, the ActionsButton is action button, etc.. You can override and customize the visibility of these buttons as you need.

 

Here are some examples as well:

Kind regards,

Roman

Show all comments

Hello

I am setting up a service portal for a client

During the tests I had strange behaviours in the password recovery process.

WHat I did:

Create a test portal users with the corresponding contact.

Go to the portal login page, then  link "forgot password ?" 

Enter test user portal login name. and enter > Error cannot send email.

 - When looking in the exchangelistener service logs, I see that it is trying to send the email to the "test user login" name instead of its contact.email!!

If I replace the test portal user name with its email then it works.

 

So it really means the system is using the portal user login name instead of it s email as recipient.

 

Did anyone notice this? 

Like 0

Like

0 comments
Show all comments

Hi,



Does anyone has experience with sysworkspace data bound error when creating a new package?



See reference for better explanation. (you can skipped to 40th second to see the error.)

https://screenrec.com/share/395HMTQoJO







Let me know what you think.

Like 0

Like

0 comments
Show all comments