Announcement

Collapse
No announcement yet.

Auto Document folder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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);

    Comment

    Working...
    X