Hi everyone,
I’m working on an EspoCRM project to automatically send internal notifications
Context:
Execute Formula Script used
// Minimal test to fetch some fields
$$title = bpm\targetEntity\attribute('name');
$$date = bpm\targetEntity\attribute('dateStart');
$$assignee = bpm\targetEntity\attribute('assignedUserName');
Internal Notification Template
New meeting: {$$title}
Scheduled date: {$$date} A
ssigned to: {$$assignee}
Current result:
What I tried / Observations
What I’m looking for
If anyone has successfully made dynamic variables work in internal notifications via BPM, I’d greatly appreciate your guidance.
Thanks in advance for your advice and shared experiences!
I’m working on an EspoCRM project to automatically send internal notifications
Context:
- BPM Flowchart setup:
- Start Conditional → After Record Created
- Execute Formula Script to generate variables: $$title, $$date, $$assignee
- Create Notification to send the notification to the assigned user (assignedUser)
- Goal: the notification should dynamically include:
- Meeting name
- Date/time
- Assigned sales rep
- Related contacts / leads
- Objective and internal notes
Execute Formula Script used
// Minimal test to fetch some fields
$$title = bpm\targetEntity\attribute('name');
$$date = bpm\targetEntity\attribute('dateStart');
$$assignee = bpm\targetEntity\attribute('assignedUserName');
Internal Notification Template
New meeting: {$$title}
Scheduled date: {$$date} A
ssigned to: {$$assignee}
Current result:
- Notifications are successfully created and sent, but the content still shows raw placeholders:
- No dynamic values are being replaced.
What I tried / Observations
- Using {entity.xxx} directly in the template → not interpreted
- Using {$$var} from the Formula Script → not interpreted in Create Notification
- Minimal scripts → notification still shows raw placeholders
- Complex scripts for contacts/leads → Execute Formula Script fails
What I’m looking for
- A way to make internal notifications dynamic with real values from the Meeting record.
If anyone has successfully made dynamic variables work in internal notifications via BPM, I’d greatly appreciate your guidance.
Thanks in advance for your advice and shared experiences!
Comment