cancel
Showing results for 
Search instead for 
Did you mean: 

Which JavaScript functions are supported in Business Rules (SAP Field Service Management)

502197
Advisor
Advisor
0 Kudos
247

Hello,

Could someone let me know which JavaScript functions are supported in Business Rules (SAP FSM).

Are there any restrictions?

 

Accepted Solutions (0)

Answers (1)

Answers (1)

thilo_mothes
Advisor
Advisor
0 Kudos

"JavaScript expressions used to define variables, conditions and input fields in business rule actions should be based on the ECMAScript 6 standard."

Aside from ECMAScript 6 expressions we support the following commands:

  • Comparing two arrays
arrays.equals(array1, array2)
  • Comparing two arrays ignoring the order
arrays.equalsIgnoreOrder(array1, array2)
  • Getting a translated string

i18n.translate(language, key, [argument1[, argument2[, ...[, argumentN]]]])
  • Convert an Identifier to a UUID

fsm.identifierToUUID(id)
  • Convert a UUID to an Identifier

     
fsm.UUIDToIdentifier(uuid)