Copying Child Stream Notes to Parent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tvittitoe
    Junior Member
    • Mar 2018
    • 16

    Copying Child Stream Notes to Parent

    When we write a note on the contact level or the opportunity level, we would like to copy these notes to the business level as well. On my workflow I have "Target Entity: Note; Trigger Type: After record created; Formula: partenType!='Account'". I just can't figure out what to do on the action side. "Link with Another Record" only gives me options for: attachments, Portals, Teams,Users.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    read application/Espo/Services/Stream.php
    Notes have as well superParent field. Here you can find how does this field set.
    For this Workflow is not good, because it's run after note saved, you need to set this field before record saved.
    Create beforeSave hook for Note and set fields 'superParentType' and 'superParentId'

    Comment

    Working...