Schedule Webinar via EspoCRM

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SailReal
    Member
    • Jun 2025
    • 38

    #1

    Schedule Webinar via EspoCRM

    Hey all,

    We are planing to organise Webinars using Espo.

    The current PoC is to create a Meeting in Espo, over time (not all by one but they can register using an website etc) attach the Leads to the Meeting using an Flowchart (`record\relate('Meeting', $meetingId, 'leads', entity\attribute('id'));`) and also send the invitation to the newly attached lead via API call to 'https://crm/api/v1/Meeting/action/sendInvitations' and payload '{"id":"{$$meetingId}","targets":[{"entityType":"Lead","id":"{$$leadId}"}]}'.
    This works quiet well but we need to overwrite the Meetings templates which I would like to avoid to not block this feature to be used for other use cases as well. Is there another way to send invitations by specifying the used template? Or do you have another/better approach in general?

    Thank you!
    Last edited by SailReal; 04-15-2026, 12:46 PM.
  • heint
    Member
    • Jun 2025
    • 85

    #2
    Greetings SailReal,

    If you planning to change exactly the following template as on the screenshot below:
    Click image for larger version

Name:	image.png
Views:	0
Size:	78.3 KB
ID:	126010

    The easiest way here is to use {{#if}} statment for both or even more scenarios.

    1. Create a boolem field for Meeting entity (name of my test field is - cIsStandartTemplate)
    2. Put your desired content into if statment at Administration > Template Manager > Invitation > Meeting (as shown in the screenshot above):

    Code:
    {{#if cIsStandartTemplate}} /////
    <p>Subject: {{name}}</p>
    <p>Start: {{#if isAllDay}}{{dateStartFull}}{{else}}{{dateStartFull }} ({{timeZone}}){{/if}}</p>
    {{#if isUser}}
    {{#if description}}
    <p>{{{description}}}</p>
    {{/if}}
    {{/if}}
    <p>
    <a href="{{acceptLink}}" style="font-size: 1.2em">Accept</a> ·
    <a href="{{tentativeLink}}" style="font-size: 1.2em">Tentative</a> ·
    <a href="{{declineLink}}" style="font-size: 1.2em">Decline</a>
    </p>
    {{#if joinUrl}}
    <p>
    <a href="{{joinUrl}}">Join</a>
    </p>
    {{/if}}
    {{#if isUser}}
    <p><a href="{{recordUrl}}">View record</a></p>
    {{/if}}
    {{/if}} ////
    
    <p>Hello test</p> /////


    (marked fields 1 and -2 with *////* slashes is what i added to the standart template)

    In result, if i want to display only "Hello test" text - i keep my boolem field unchecked (false).

    Not sure if EVERY functionality will persist, but it's really the easiest way to implement your request logic what i could think of.

    Comment


    • SailReal
      SailReal commented
      Editing a comment
      Hey hey,

      Thanks for your answer!

      Are you sure? In email templates I learned that handlebar support is only available for non-custom fields
  • heint
    Member
    • Jun 2025
    • 85

    #3
    Imho, you should at least give it a try and see if it suits your case. Other scenarios most likely will consider custom complex code implementation, so I would start with the "easiest" practice, and I don't think there is an easy method to use the "Invitation - Meeting" template conditionally.

    Comment

    • SailReal
      Member
      • Jun 2025
      • 38

      #4
      Originally posted by SailReal
      Hey all,
      The current PoC is to create a Meeting in Espo, over time (not all by one but they can register using an website etc) attach the Leads to the Meeting using an Flowchart (`record\relate('Meeting', $meetingId, 'leads', entity\attribute('id'));`) and also send the invitation to the newly attached lead via API call to 'https://crm/api/v1/Meeting/action/sendInvitations' and payload '{"id":"{$$meetingId}","targets":[{"entityType":"Lead","id":"{$$leadId}"}]}'.
      We identified another issue with our approach: This API request only sends the invitation email correctly to the specified lead. However, the .ics file in the email lists all attendees as `ATTENDEE`. For a webinar, we do not want this, but I think it is not possible to remove the other attendees from the list without overwriting the existing behaviour. Hmmmm...

      Maybe we could create in Espo an option in the Meeting which then is used to set the full attendee list in the .ics or only the user to be invited.
      Last edited by SailReal; 04-29-2026, 12:55 PM.

      Comment

      Working...