Skip to main content
Question

Trigger a business rule through a client script

  • Jul 12, 2023 2:27 PM UTC
  • 6 replies
  • 147 views

Forum|alt.badge.img+1

Hello!

I would like to trigger a business rule through a client script. If this is possible please let me know the syntax.

6 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Jul 12, 2023 10:47 PM UTC

Hey @LLCJONATHAN 

As far as I know this is not possible.

A business rule is triggered by a change in the business object.

What are your requirements? We may sugest a way to achieve this in other ways.

Cheers!


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • Jul 13, 2023 8:42 AM UTC

Hello! 
I would like to implement a legal disclaimer about the information we collect.
The idea is to have a initial screen called legal disclaimer, on this screen I would like to trigger a input XML business rule with a checkbox and agree button. When it’s checked and you click the agree button then the business rule will clear the initial screen on the persons screen.

Best regards,
Jonathan


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Jul 13, 2023 8:47 AM UTC

Hi @LLCJONATHAN 

I am not sure what is “...clear the initial screen...”

If I understood correctly, you can create a XML business rule. 

When checkbox is changed to ‘Y’, run the BR.

BR will run an update/delete xml and clear the relevant field on the person screen?

Cheers!


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • Jul 13, 2023 9:04 AM UTC

There is a field under person profile called “Initial screen”. It decides what screen opens when you log in. I would like to use a input xml to make the disclaimer look good instead of just using a normal screen :)


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Jul 13, 2023 11:21 PM UTC

Hey @LLCJONATHAN 

It will be easy to clear the screen with a BR as you wish. The process as described in my previous comment.

But the initial screen will still show until the user log out and back in next time.

BTW, happy to see how you do that good looking screen.

Cheers!


Forum|alt.badge.img+3
  • Do Gooder (Partner)
  • Feb 29, 2024 9:59 AM UTC

Hey @LLCJONATHAN  - I am curious whether you were able to achieve your requirement. I have a similar ask from customer and looking for a solution. 

Cheers!