Announcement

Collapse
No announcement yet.

Meetings synced from Google are not being assigned a parent account

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

  • Meetings synced from Google are not being assigned a parent account

    Hello!

    When meetings are imported from our Google calendars and created in Espo, the meetings are not assigned a parent account, which prevents the meetings from appearing on the account page's Activities. When the meeting is created, can the system automatically set the parent account of a meeting based on the contact's primary account?

    We have:
    • EspoCRM 7.0.8
    • Advanced Pack 2.8.9
    • Google Integration 1.5.4

    Thank you!

  • #2
    Does anyone have any ideas about this? Thanks!

    Comment


    • #3
      Hi kd_thl,

      To implement this functionality, you have to create a Workflow for the "Meeting" entity with the "Execute Formula Script" action.
      ​​​​​​​
      Code:
      $email = assignedUser.emailAddress;
      $id = record\findOne('Account', 'createdAt', 'desc', 'emailAddress', $email);
      $name = record\attribute('Account', $id, 'name');
      parentId = $id;
      parentName = $name;

      Comment

      Working...
      X