cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FSM Business Rule variable - assign fields depending on their value

keppi
Discoverer
0 Kudos
159

Hello all,

I am struggling with a problem in FSM Business Rules:

for the equipment we have an additional UDF "EQ_ITOB_INVNR" for customer´s equipment description. This UDF is not always filled.

I want to assign UDF "EQ_ITOB_INVNR" to a variable "equiBez" only if it´s not null, otherwise I want to assign the value of "equipment.code" to that variable (which should be later used in HMTL email text)
I tried with Java expression:

equiBez = ${equipment.udf.EQ_ITOB_INVNR} ?? ${equipment.code}

keppi_0-1746514226938.png

Unfortunately it did not work, the operators '??' don´t seem to be interpreted, they are just displayed as text:

keppi_1-1746514403502.png

 

Can anybody tell me what´s wrong there? 

Thanks in advance for your help,

Kind regards

André

 

 



Accepted Solutions (1)

Accepted Solutions (1)

r_barabas
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi André

For the variables section, Javascript goes inside the curly braces. The outside is CoreSQL.

Have you tried

equiBez = ${equipment.udf.EQ_ITOB_INVNR ?? equipment.code}

Best regards

    Raphael Barabas

keppi
Discoverer
0 Kudos

Hi Raphael,

thanks a lot for your explanation - yes, with putting the js operators into the curly brackets it worked!

Thanks again

Kind regards,

André

Answers (0)