✨ Automating feature flag management with Zapier

Mythu Siva
3 min readDec 28, 2023

--

Manage feature flags based on any trigger provided by Zapier.

Photo by Gerrie van der Walt on Unsplash

If you missed it, I posted a quickstart article on setting up feature flags with your application in only a few minutes.

In this article, I’m going to show you how to manage your feature flags using Zapier. For example, you may want your application/website to show particular information at various parts of the day.

Let’s set up an integration for a conference website, where we want registrations to be open every morning at 9am and then closed at 10am.

Adding the Zapier integration

At the time of writing this article, the zapier integration is available by invite only. So, here’s your invite!😃

In the future, you will no longer need this, and you can skip this section.

Creating a Zap

We want this zap to run at 9am, so use the schedule trigger provided by Zapier.

Using the schedule trigger.

Set it to everyday and then hit continue.

Next, let’s set it to run at 9am, everyday, except for weekends.

Click test and save, and now we are ready to set up the action.

Click the Action block and search for Feature Flags.

Next we have a few options we can choose for the event we want to do.

In this case, when it’s 9am, we want to update a flag. For this example, let’s assume our feature flags look like this:

{
"registrationsEnabled": true,
"registrationLink": "https://googleforms"
}

At 9am, the registrationsEnabled field should be true and then at 10am, we want to flip that to false.

Next, let’s update the zap to set flag to true.

Note, I don’t have to specify any other flags, just the ones I want to update. FFlag-MS will merge the JSON, while preserving any existing top-level keys.

Save this and you’re done! 🎉

To close registration, you would simply create the same zap, and adjust the time to 10am, and the update JSON to:

{"registrationsEnabled": false}

--

--