# How to Create a Program Query for an Event Calendar in Blackbaud Altru

> Build an Altru program query that feeds a timed-ticketing or event calendar: required output fields, general-admission filters, and naming tips. 4 min.

Source: https://socialgoodsoftware.com/how-to-create-a-program-query/
Published: 2020-03-11 · Updated: 2026-11-15

---

[How to Create a Program Query for an Event Calendar in Blackbaud Altru (video)](https://www.youtube.com/watch?v=6kQOUlEYVcg)

A **program query** in Blackbaud Altru is the list of events your website calendar reads. Create it in **Analysis › Information library** as an ad-hoc query on **Program**, output the event name, start date, start time and **event record**, then filter it down to the events you want on the calendar. Social Good Software’s Calendar Builder turns that query into a live, bookable calendar.

## Steps

1. **Create a new ad-hoc query** ([0:15](https://www.youtube.com/watch?v=6kQOUlEYVcg&t=15s)). In Altru go to **Analysis › Information library**, choose **Add an ad-hoc query**, and select the **Program** source view.
2. **Add the output fields** ([0:45](https://www.youtube.com/watch?v=6kQOUlEYVcg&t=45s)). From **Program events** add **Name**, **Start date** and **Start time**, which are required. **End time** and **Capacity** are optional but useful.
3. **Add the event record** ([1:20](https://www.youtube.com/watch?v=6kQOUlEYVcg&t=80s)). This field is what lets the calendar send each guest to the correct Altru form, so don’t skip it.
4. **Preview** ([1:33](https://www.youtube.com/watch?v=6kQOUlEYVcg&t=93s)) to confirm data is coming back.
5. **Filter to the events you want** ([1:45](https://www.youtube.com/watch?v=6kQOUlEYVcg&t=105s)):
   - **Programs › Query category** equals your parent program’s category (for example *General Admission*).
   - **Program events › Name** contains a specific value (for example *Daily Admission*).
   - **Program events › Capacity** is greater than 0.
6. **Save with a clear name** ([2:45](https://www.youtube.com/watch?v=6kQOUlEYVcg&t=165s)). Use a prefix so your team knows what the query feeds, such as *Calendar – General Admission*, then pick a category and **Save and close**.
7. **Remove repeated columns** ([3:30](https://www.youtube.com/watch?v=6kQOUlEYVcg&t=210s)). If *Name* and *Program events name* show the same value, keep one.

**Tip:** since October 2022, Altru can also query a program event’s **remaining capacity**. Add it as an output field, or filter on it (for example, greater than 0) to hide sold-out times from the calendar.

Next step: [build the calendar from this query in Calendar Builder](https://socialgoodsoftware.com/features/calendar-builder).

## Common questions

### Which fields does the calendar need?

Start date, start time and the event record. End time and capacity are optional.

### Why add the event record?

It links each calendar slot to the right Altru form, so guests buy the correct event.

### Can I make one query per calendar?

Yes. A common pattern is one query per calendar (general admission, a special exhibition, classes), each filtered by category or event name.

## Video transcript

This is Rick with Social Good Software. In this short guide I’ll show you how to create a program query. These queries are useful for event calendars: if you want a calendar for general admission or for a specific event, this is typically the query you’d use.

I’ll go to Analysis, Information library, and create a new ad-hoc query. We’re looking for the Program query, which is used to query program information. I like to start with the results I want to display. From Program events I’ll take the name, then the start date and the start time. Start date and start time are required. End time isn’t required, but it’s an optional field you can add, so I’ll add it, and capacity too. Lastly, the event record. Because I want to link people to a form, the event record is very important: it’s how we link them to the correct form in Altru.

Now I’ll click Preview to see some of the data. I want to narrow it down, so I’ll filter on Programs query category. The category I’m looking for is General Admission, which is the category of the parent program. Then Program events name: we want one specific value, Daily Admission, using “contains”. Previewing now, we only have the daily admissions. Finally, Program events capacity greater than zero. Preview again, and that looks good.

The last step is to save it. I like to prefix queries so I know what they do, so this one is “General admission calendar”. I’ll give it a category and click Save and close. Previewing again, you can see all the data that will populate the calendar. Depending on your organization’s needs, you can customize this to show exactly the data you want on the calendar. In my case the name column repeats, so for simplicity we’d remove one. In the next video we’ll take this query and create a calendar.

---

Social Good Software adds modern checkouts, timed-ticketing calendars, membership portals, and digital membership cards on top of Blackbaud Altru, without replacing it. Book a 1-on-1 demo: https://socialgoodsoftware.com/demo?src=llms · Call 801-822-0183 · hello@socialgoodsoftware.com · Site summary for AI assistants: https://socialgoodsoftware.com/llms.txt
