Need to understand what triggered the info message

Annie10
Tera Contributor

Hello,

The following info. message were triggered when a RITM gets approved or rejected.  Could someone please let me know what is the name of the object that fired those messages. This is for educational purposes.  Thank you

 

 

Annie10_0-1717721677565.png

 

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

That is triggered by the approval record on the sysapproval_approver table.

When a approval record is approved or rejected, it'll call a script include called: ApprovalUserFeedback.

Inside that script include, you'll see all the various infoMessages that are triggered.

Example:

AllenAndreas_0-1717725207193.png

 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

10 REPLIES 10

Allen Andreas
Administrator
Administrator

Hi,

That is triggered by the approval record on the sysapproval_approver table.

When a approval record is approved or rejected, it'll call a script include called: ApprovalUserFeedback.

Inside that script include, you'll see all the various infoMessages that are triggered.

Example:

AllenAndreas_0-1717725207193.png

 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hello @Allen Andreas 

Thank you for replying. You mentioned it's triggered by the approval record on the sysapproval_approver table. However, I'm still unsure about the specific trigger mechanism. Is it implemented through Business Rules, Client Scripts, or another named component that calls a script include? I would like to reference it for a clearer understanding.

Hi @Annie10 

My apologies, I thought I mentioned it previously, but when you approve or reject it using the UI Actions (buttons), that is what calls the script include, thus resulting in that message:

AllenAndreas_0-1717770367567.png

 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hello @Allen Andreas 

We have frequently referred to your resolved threads from the community to address our own challenges, and I'm sure other community users, including our team, are grateful for the knowledgeable programmer like you who share their experiences. It's a big help to our community.  Thank you so much.

 

Today, I learned something new: the ability to utilize a UI Action to invoke a script include. This got me thinking, and I would like to clarify the following things:

 

1. For instance, let's consider a scenario where a record in the approval table changes to "rejected."

 

Annie10_0-1717781270452.png

2. It updated the record:

 

Annie10_1-1717781270455.png

 

3. Then it triggered the script include named "ApprovalUserFeedback"?
Within this script include, the function "rejected(current)" is called, passing in the current record?  I'm assuming it is passing the current RITM sys ID

 

Annie10_2-1717781270456.png

 

I would appreciate any corrections or additional information you can provide.