?>

Cloud Firestore + ActiveCampaign Integrations

Appy Pie Connect allows you to automate multiple workflows between Cloud Firestore and ActiveCampaign

  • No code
  • No Credit Card
  • Lightning Fast Setup
About Cloud Firestore

Cloud Firestore is a cloud-hosted, NoSQL database that your iOS, Android, and web apps can access directly via native SDKs.

About ActiveCampaign

ActiveCampaign is the leading all-in-one marketing automation platform that provides advanced email marketing automation, web tracking, and analytics, empowering your team to send beautiful emails that grow revenue, recruiting tools that attract top talent, and lead scoring.

ActiveCampaign Integrations
ActiveCampaign Alternatives

Looking for the ActiveCampaign Alternatives? Here is the list of top ActiveCampaign Alternatives

  • Drip Drip
  • Automational Automational

Best ways to Integrate Cloud Firestore + ActiveCampaign

  • Cloud Firestore ActiveCampaign

    Cloud Firestore + ActiveCampaign

    Add Contact Note in ActiveCampaign when New Document Within a Firestore Collection is created in Cloud Firestore Read More...
    Close
    When this happens...
    Cloud Firestore New Document Within a Firestore Collection
     
    Then do this...
    ActiveCampaign Add Contact Note
  • Cloud Firestore ActiveCampaign

    Cloud Firestore + ActiveCampaign

    Create/Update Contact to ActiveCampaign from New Document Within a Firestore Collection in Cloud Firestore Read More...
    Close
    When this happens...
    Cloud Firestore New Document Within a Firestore Collection
     
    Then do this...
    ActiveCampaign Create/Update Contact
  • Cloud Firestore ActiveCampaign

    Cloud Firestore + ActiveCampaign

    Update Contact in ActiveCampaign when New Document Within a Firestore Collection is created in Cloud Firestore Read More...
    Close
    When this happens...
    Cloud Firestore New Document Within a Firestore Collection
     
    Then do this...
    ActiveCampaign Update Contact
  • Cloud Firestore Cloud Firestore

    ActiveCampaign + Cloud Firestore

    Create Cloud Firestore Document to Cloud Firestore from New or Updated Contact in ActiveCampaign Read More...
    Close
    When this happens...
    Cloud Firestore New or Updated Contact
     
    Then do this...
    Cloud Firestore Create Cloud Firestore Document
  • Cloud Firestore Cloud Firestore

    ActiveCampaign + Cloud Firestore

    Create Cloud Firestore Document to Cloud Firestore from New Contact Note in ActiveCampaign Read More...
    Close
    When this happens...
    Cloud Firestore New Contact Note
     
    Then do this...
    Cloud Firestore Create Cloud Firestore Document
  • Cloud Firestore {{item.actionAppName}}

    Cloud Firestore + {{item.actionAppName}}

    {{item.message}} Read More...
    Close
    When this happens...
    {{item.triggerAppName}} {{item.triggerTitle}}
     
    Then do this...
    {{item.actionAppName}} {{item.actionTitle}}
Connect Cloud Firestore + ActiveCampaign in easier way

It's easy to connect Cloud Firestore + ActiveCampaign without coding knowledge. Start creating your own business flow.

    Triggers
  • New Document Within a Firestore Collection

    New Document Within a Firestore Collection

  • New Contact Note

    Triggers when a new contact note is added.

  • New Updated Account

    Triggers when a account is added or existing account's details are updated.

  • New or Updated Contact

    Triggers when a new contact is added or existing contact's details are updated.

    Actions
  • Create Cloud Firestore Document

    Creates a new document within a Cloud Firestore collection.

  • Add Contact Note

    Adds new contact note.

  • Create/Update Contact

    Creates a new contact.

  • Update Contact

    Update an existing contact.

How Cloud Firestore & ActiveCampaign Integrations Work

  1. Step 1: Choose Cloud Firestore as a trigger app and authenticate it on Appy Pie Connect.

    (30 seconds)

  2. Step 2: Select "Trigger" from the Triggers List.

    (10 seconds)

  3. Step 3: Pick ActiveCampaign as an action app and authenticate.

    (30 seconds)

  4. Step 4: Select a resulting action from the Action List.

    (10 seconds)

  5. Step 5: Select the data you want to send from Cloud Firestore to ActiveCampaign.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of Cloud Firestore and ActiveCampaign

Cloud Firestore

Cloud Firestore is a NoSQL cloud database that makes it easy to build online applications and offline mobile apps. It is a NoSQL document database for mobile, web, and server development from Google. (https://cloud.google.com/firestore/)

It provides a scalable database that lets you store and sync data across multiple devices at globally distributed scale. With Cloud Firestore, you can quickly add real-time features to your app, such as chat messages, cplaborative notes, high scores, and more.

It also has built-in integration with Google products such as Cloud Functions for Firebase, Cloud Storage for Firebase, Cloud Endpoints, and Google Analytics for Firebase.

ActiveCampaign

ActiveCampaign is an innovative marketing automation platform that helps businesses generate leads and sales using email, SMS, social media, and online marketing campaigns. (https://www.activecampaign.com/)

Integration of Cloud Firestore and ActiveCampaign

Firebase Cloud Firestore offers many ways to save and sync data in the cloud using documents in JSON format. You can use documents to save key-value pairs, lists, or ordered maps. In this integration example, we will save data into documents of type “list” and retrieve that list using the Cloud Functions for Firebase REST API.

Note. The code in this section is written in Java 8 but can be easily translated to other languages supported by Cloud Functions for Firebase.

In this example, we are assuming that we have an existing database of users in ActiveCampaign. Some of these users might have opted-in for our service, while some of the inactive users might have opted out. When the user registers for our service, we want to send an opt-in or opt-out email allowing them to choose their preference. This email should be personalized according to the information already stored in the database. We will use the activecampaign-plugin library that was developed by the Firebase team to accomplish this task. Our goal is to get all the users of our service in Cloud Firestore so they can be accessed programmatically through Cloud Functions for Firebase. This would allow us to send customized emails based on the preferences of each user. In this example, we will not implement the backend code for sending emails but rather focus on getting the user data into Cloud Firestore. If you want to learn more about sending emails using ActiveCampaign and Firebase Cloud Messaging, check out this article by my cpleague, Andrew. https://blog.cloudfunctions.net/2018/09/27/send-notifications-to-users-in-firebase-using-activecampaign/.

We will use a few helper classes to set up the necessary configuration steps before sending data to Cloud Firestore. These classes are required by the activecampaign-plugin library used in this example and are found in src/main/java/com/example/firebase/cloudfirestore/support/. Please note that this is not part of Google’s open source project and is used only for convenience here:

The first class we need is a DatabaseReferenceFactory class that helps us create a reference to our database. Since we do not know the name of the database in advance or which database is already installed on the device (i.e., the one used by ActiveCampaign or the one cloud function uses for saving data), we will use a hardcoded value of “default” as shown below. public static final String DATABASE_NAME = "default"; public static DatabaseReferenceFactory getDatabaseReferenceFactory(. { return new DatabaseReferenceFactory(DATABASE_NAME); } Next, we need a class that allows us to store data as well as retrieve it from our database. public class UserDataSaver implements WritableDatabaseCreator<List<UserData>> { private static final String KEY_USER_ID = "id"; private static final String TYPE_USER_DATA = "user_data"; public UserDataSaver(. { } public void execute(@NonNull final SQLiteDatabase db. throws IOException { List<UserData> userData = new ArrayList<>(); // Add users from ActiveCampaign here... db.execSQL("INSERT INTO " + USER_DATABASE_NAME + ".`(" + KEY_USER_ID + ", " + KEY_TYPE_USER_DATA + ". VALUES(" + KEY_USER_ID + ", ?)"); for (UserData ud . userData. { db.execSQL("INSERT INTO `" + USER_DATABASE_NAME + ".`(" + KEY_TYPE_USER_DATA + ", " + KEY_USER_ID + ". VALUES(" + KEY_TYPE_USER_DATA + ", ?)"); } } } We also need a class that will help us retrieve data from our database. public class UserDataRetriever implements WritableDatabaseReferenceFactory<UserData>, WritableDatabaseReference<UserData> { private static final String KEY_USERS = "users"; public UserDataRetriever(. { } public void execute(@NonNull final SQLiteDatabase db. throws IOException { List<UserData> userData = new ArrayList<>(); db.rawQuery("SELECT * FROM `" + USER_DATABASE_NAME + ". WHERE " + USER_DATABASE_NAME + ".." + KEY_USERS + "` IS NOT NULL", null.forEach((String rowId. -> { UserData userData = new UserData(); userData.setId(Long.parseLong(rowId)); userData.setType(rowId); userData.setId(Long.parseLong(rowId)); db.insertOrThrow(KEY_USERS, userData); }); } } Now that we have the helper classes ready, we will create an object called CloudFunctionsPlugin that will allow us to configure our functions used for saving and retrieving data from Cloud Firestore. import io.firebase.*; import com.google.gson.*; import com.googlecode.androidjsonparser.*; import java.io.*; import java.util.*; import java.util.concurrent.*; import java.util.logging.*; import java.util.regex.*; import java.util.stream.*; // These classes were taken from https://github.com/GoogleCloudPlatform/cloud-functions-kotlin package com . example . firebase . cloudfirestore ; /** * Contains a number of functions related to using ActiveCampaign with Firestore * @author Jochen Gersmann / public interface CloudFunctionsPlugin { // Initialize Firebase plugin functions @NonNull Future < Void > initialize (); // Get all data from Firestore @NonNull Future < List < UserData >> getAllUsers (); // Save a single row from Firestore @NonNull Future < UserData > saveNewUser ( long id , String type ); // Remove a row from Firestore @NonNull Future < Void > deleteUser ( long id ); // Insert a new row into Firestore @NonNull Future < UserData > insertNewUser ( long id , String type ); // Update a row in Firestore @NonNull Future < Void > updateUser ( long id , String type ); } Use these helper classes along with the CloudFunctionsPlugin interface in your Android application’s build script so that you can call any of these methods from your application when needed. apply plugin. 'com.android.application' dependencies { compile 'io . firebase :firebase - plugin :4 . 5 . 1 ' } android { ... } dependencies { compile fileTree ( dir. 'libs' , include. [ '.jar' ]. compile 'com . android . support :appcompat - v7. 25 . 3 . 1 ' compile 'com . google . firebase :firebase - core . 4 . 5 . 1 ' compile 'com . google . firebase :firebase - plugin :4 . 5 . 1 ' // This library is not part of Google's open source project compile 'com . github . mikephilbin :activecampaign - plugin . 0 . 2 . 1 ' } apply plugin. 'com.googlecode.androidjsonparser' repositories { google(. jcenter(. mavenCentral(. } dependencies { // This library is not part of Google's open source project implementation 'com . github . mikephilbin . activecampaign - plugin . 0 . 2 . 1 ' implementation 'com

The process to integrate Cloud Firestore and ActiveCampaign may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.