in-app Notification for newly created users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rouhu
    Member
    • Sep 2020
    • 39

    in-app Notification for newly created users

    I am trying to figure out how to create a workflow that creates an in-app notification for new user, like "Welcome to CRM".
    This formula did not work for target entity update:
    $notif_id = record\create('Notification','message','Welcome to CRM');
    entity\addLinkMultipleId('Notification', $notif_id);​​
  • lazovic
    Super Moderator
    • Jan 2022
    • 810

    #2
    Hi rouhu,

    You can create a notification with an Create Notification action in Workflow without using a formula.
    Please note that this notification will not be displayed as a pop-up window, it can be seen by clicking on the bell in the upper right corner of the instance.

    Comment

    • rouhu
      Member
      • Sep 2020
      • 39

      #3
      I did not see the possibility to pickup user id in "Create Notification" destinations.

      Anyway, this worked:
      Update Target Record » System User
      entity\setAttribute('createdById', id);

      Create Notification
      Recipient
      Related: Created By
      Message Template
      Welcome to CRM​

      Comment

      Working...