Skip to main content
Solved

Use field values in the message of a validation business rule

  • September 29, 2021
  • 4 replies
  • 158 views

Forum|alt.badge.img+9
  • Sidekick (Partner)
  • 59 replies

Hi experts,

This is somewhat of a trivial question. I’m attempting a basic validation on the task line under a request


the validation is to throw an error if,

Material Order Date > Delivery Date

Delivery Date > Planned Start

The business rule I created is as following,

The business rule works ok. But the validation message is not picking up the task id. It’s appearing as following,
 


What’s the correct way to refer to the fields of the related table in the message?

Best answer by Saranga Amaraweera

HI @Miraj ,

 

You can write this in the expression field of the output parameters to get this working with following syntax. :slight_smile:

 

4 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • 1183 replies
  • September 29, 2021

Hi @Miraj 

I think the correct syntax is  {TASK.TASK_ID}, instead of @task_id

Cheers!


Forum|alt.badge.img+9
  • Author
  • Sidekick (Partner)
  • 59 replies
  • September 29, 2021

Thanks @Shneor 

 


Now I’m getting this


 


Saranga Amaraweera
Superhero
Forum|alt.badge.img+22

HI @Miraj ,

 

You can write this in the expression field of the output parameters to get this working with following syntax. :slight_smile:

 


Forum|alt.badge.img+9
  • Author
  • Sidekick (Partner)
  • 59 replies
  • September 29, 2021

HI @Miraj ,

 

You can write this in the expression field of the output parameters to get this working with following syntax. :slight_smile:

 

Thanks a lot @Saranga Amaraweera :relaxed: