Skip to content

Services - Add Accept or Deny button to email template for volunteers scheduled to serve #1475

Description

@Livestock5

Related Product
Services

Describe the question
How do I get the template, with Accept and Decline buttons, for schedule emails to send to unconfirmed people for a plan?

I can get the template via the endpoint:
https://api.planningcenteronline.com/services/v2/email_templates/{EMAIL_TEMPLATE_ID}/render. See screenshot of email that is sent:

Image

However, this template doesn't include the accept and decline buttons. When I send the emails from the UI (see screenshot), then the accept and decline buttons are appended to the email. However, they aren't added if I send from the api.

Image

This is the exact email I'd like to send from the API. This is what I want to send, but I can't. I can only send this by sending via the UI.

Image

All my code is here

What have you tried that worked?
Nothing has worked so far.

What have you tried that didn't work?
Using the email_templates/{EMAIL_TEMPLATE_ID}/render.

I read this github issue #500 that describes almost the exact issue I'm dealing with. I'm already doing what the GitHub issue recommend. But its not good enough.

My desire is essentially to have a button in the email that a user can click to accept or deny a request. Is that possible somehow? Is there an link that I can add to a button to the template?

Additional context

Python 3.12.9

I have..

  • Reviewed the documentation found at https://developer.planning.center/docs
  • Searched for previous issues answering this question
  • Removed all private information from this issue (credentials, tokens, emails, phone numbers, etc.)
  • Reviewed my issue for completeness

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions