@mentions working in flow designer

TerryC03
Tera Guru

Hello,

 

Is it possible to hard code an automated string in a flow designer step to activate the @mentions functionality (sending the Activity Stream @Mentions notification email)?

 

A step I currently have is something like

Action - Update Record

Table - Task

Field - Work Notes

var requestedBy = fd_data.trigger.current.requested_by.name;
var notes = "@" + requestedBy + " test123";
return notes;

I've tried placing requestedBy in [] brackets and tried requestedBy.user_name, but to no avail. Any help would be appreciated.

4 REPLIES 4

lochuynh33
Tera Guru

Hi @TerryC03 ,

@mention has a dedicated notification (Activity Stream @Mention Email) that runs on the live_notification table when a record is inserted or updated.
Therefore, the relevant fields must be populated on this table in order to trigger the notification.

image.png

 

If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution.

 

Ok. My table is different. I'll try that. Thank you.

Mark Manders
Giga Patron

If your goal is to notify someone, why not just use the 'send email' or 'send notification' action from the flow? Since you have this in the flow, it means you always want to do this. The @ mention functionality is to notify someone from the ticket itself, while working on it. Automation can use normal notifications.

What is your use case? Why are you trying to get something so complex while the simple solution is there?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

yashkamde
Mega Sage

Hello @TerryC03 ,

 

did that worked ?

If not !! try using @[sys_id] instead of @DisplayName. That’s the format Flow Designer needs to trigger the Activity Stream @mention notifications.

var requestedBySysId = fd_data.trigger.current.requested_by.sys_id;
var notes = "@[" + requestedBySysId + "] test123";
return notes;

 

If my response helped mark as helpful and accept the solution.