Recipe - Send Group RSVP Request Link via SMS
Skill level: Intermediate
Organization: Hallmark Church
Requires Rock: 1.13.0
{# strip images & classes from the HTML but otherwise leave structure #}
Would you like to give people the ability to RSVP via SMS? Then follow this simple guide.
The key to making this work is generating the appropriate URL linked to the Group Attendance Occurrence and then turning that URL into a ShortLink.
Full Code Sample
{% capture link %}
{{ 'Global' | Attribute:'PublicApplicationRoot' }}RSVP?p={{ Person | PersonActionIdentifier:'RSVP' }}&AttendanceOccurrenceId=45440&isAccept=1
{% endcapture %}
Hi {{ Person.NickName }}, tomorrow is our New Member orientation at 10:45am in room FC 104. If you're planning on attending, please RSVP by clicking this link: {{ link | CreateShortLink }}Explanation
Everything in the capture lava tags is what we use to generate the appropriate URL that is linked to the Group Attendance Occurrence.
The only thing you need to change is the AttendanceOccurrenceId to the ID of your specific group attendance occurrence (45440 in the sample code above).
To find your AttendanceOccurrenceId:
- Open your group in Group Viewer.
- Click the Group RSVP icon (see screenshot below).
- Click the RSVP Occurrence that you want to use.
- Copy the OccurrenceID from the URL in your browser address bar.
E.g. https://rock.yourchurch.org/page/741?OccurrenceId=45440&GroupId=27814
Update the SMS Lava
Replace 45440 in the code sample with the OccurrenceID you just copied.
That's it!
You're done! The {{ link | CreateShortLink }} lava will keep the link short and readable in your SMS message. Place that wherever you want in your message. Anyone who clicks that link will be RSVP'd as attending for that specific RSVP Occurrence.
Screenshots
- /GetImage.ashx?guid=b94bd984-00d8-4d8c-86de-1af313303e22
- /GetImage.ashx?guid=9818ad99-9e90-4f06-944d-065a60e14e3e