Auto Document folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ryan_WHR
    Member
    • Feb 2016
    • 37

    Auto Document folder

    i am looking to make a workflow to create a related document folder when a contact is made.
    it would need to be labeled with the related contact info.


    any help is appreciated.
    Thanks
    Ryan
  • yuri
    Member
    • Mar 2014
    • 8627

    #2
    1. Create hook for Contact with afterSave mether
    2. Check there if ($entity->isNew()) {...
    3. Create Document Folder $folder = $this->getEntityManager()->getEntity('DocumentFolder'); $folder->set('name', $contactName); $this->getEntityManager()->saveEntity($folder);
    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...