Create a Task after saving a document

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1632

    Create a Task after saving a document

    Hi, I want to create a pre defined Task whenever a document, saved from an Email`s attachment, had been created. Is that possible?
  • yuri
    Member
    • Mar 2014
    • 8669

    #2
    Hello, It seems to me that there's no reliable way to detect whether a Document is created from an Email's attachment.

    Maybe to to fetch an Attachment entity by the fileId attribute, check sourceId is not empty, then fetch another Attachment entity by the sourceId. Then check whether that Attachment is related to an Email.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...