Retrieve Builder URL of Email Rules

Last Updated: 06/17/2025

If you need to determine where your email rules are located when building any knack application through the console without being a builder or signing in.

Original post: https://forums.knack.com/t/quickly-locate-email-rules-in-your-knack-application/14883

Step 1 - Navigate to Application URL

This can be in any page of the application. For example - Arterial Management

Arterial Management Data Tracker

Step 2 - Copy/paste the code below into the console

  1. Right-click web page - > Inspect

  2. Navigate to Console tab - > Copy/Paste JS code below using the "Copy" button on top right of code block and press Enter

    1. NOTE: If a warning shows up you may have to write allow pasting if the browser console will not let you.

  3. Scroll down to Array object and right click it - > Copy Object

From there, the list of URLS will be saved on your clipboard and you can put it in a spreadsheet or note document.

JavaScript

const buildUrl = (appSlug, sceneKey, viewId) => {
    return `https://builder.knack.com/atd/${appSlug}/pages/${sceneKey}/views/${viewId}/form/emails`;
};

const hasEmails = view => Boolean(view.attributes?.rules?.emails?.length);

const getEmailUrls = models => {
    const appAttributes = Knack.app.attributes;
    const { name: appName, slug: appSlug } = appAttributes;

    return models.reduce((acc, model) => {
        const foundView = model.views.models.find(hasEmails);
        
        if (foundView) {
            const url = buildUrl(appSlug, foundView.attributes.scene.key, foundView.id);
            acc.push(url);
        }

        return acc;
    }, []);
};

const emails = getEmailUrls(Knack.scenes.models);
console.table(emails);

Last updated

Was this helpful?