Self-Solve Knowledge Search

Minimize Maximize
How to set true condition in macros
Title :
How to set true condition in macros
Document ID :
Product - Version:
service manager 9.33 ;
OS :
Updated :
Fri May 29 20:58:08 GMT 2015
Summary :
How to set true condition in macros

How to set true condition in macros

Normally, macros are configured using the expressions $ and $L.old to validate if there is a change in the record.
When using "true" conditions, the action in the macro will be executed all the time. Take for example a scenario where a macro sends an email when an Interaction is Saved, Service Manager will send an email even if the record has not been changed, so if there are multiple updates on the record, same number of emails would be sent.
That is the reason why normally, the condition contains a comparison between $L.old and $
not same($L.old,$
So, the system will only perform the task selected in the Macro Type field when the record has been changed.
That said, if there is a need to emulate this behaviour, the following expression can be used: 1=1
Note: Make sure, the type of the condition field in the macros dbdict is logical