I want to notify people that a field value changed, similar to what is done in the stream when a field is audited.
Workflow :
Trigger Type = After record saved (created or updated)
Conditions = Any -> field X changed
Actions = send email
Content of template should state :
"Hi there, field X changed from 001 to 002"
What is the preferred way to do that?
Thank you,
( duplicate of https://forum.espocrm.com/forum/exte...n-billing-data )
----------------------
It would be already OK if in the Workflow part an assignment could be done, eg :
$previousCode = entity\attributeFetched('fieldX');
$message = string\concatenate("You changed fieldX, previous value was:", $previousCode);
and that the declared $message would be available in template (message or mail)
Workflow :
Trigger Type = After record saved (created or updated)
Conditions = Any -> field X changed
Actions = send email
Content of template should state :
"Hi there, field X changed from 001 to 002"
What is the preferred way to do that?
Thank you,
( duplicate of https://forum.espocrm.com/forum/exte...n-billing-data )
----------------------
It would be already OK if in the Workflow part an assignment could be done, eg :
$previousCode = entity\attributeFetched('fieldX');
$message = string\concatenate("You changed fieldX, previous value was:", $previousCode);
and that the declared $message would be available in template (message or mail)
Comment