====== ====== This How-To covers how to set up Control to automatically send an email for estimate follow-up. ===== Steps ===== Creating a macro is split up into 3 main parts, creating the macro and configuring the Description, the Trigger, and the Actions. ==== Creating a New Macro and Configuring the Description tab ==== - Click on **Marketing Home** on the main Toolbar. - Click on **Macro Setup**. This will open the Macro Setup Window. - Click on **Estimate Macros** in the left panel. - Click on **New Macro** at the top of the left panel. - Enter **Email Estimates Created 3 Days Ago** as the Macro Name on the **Description** tab. ==== Configuring the Trigger ==== - Click on the **Trigger** tab. - At least for testing, we want to run this macro on the machine you are using. - Uncheck the box **Run on the server in the background**. - If you later want to change this please verify your email settings under Setup | System Setup are set to Internal with the proper mail server settings. If you do not set this settings correctly all emails will fail to send. - Choose **Run this macro manually or on a schedule**. This macro will be executed based on a schedule since we only want to email estimates that were created 3 days ago and are still in a Pending status. We will create a query that identifies those specific estimates so that our macro knows who should get emails. - Under the **Query:** choose **(Custom Query)** and click the **View/Modify Query** button. - A Macro Query window will appear, click the **Clear** button at the top to remove any pre-existing criteria. - Expand the **Estimate Criteria** section by clicking the + sign. - Expand the **Estimate Dates** section by clicking the + sign. - Click on the **Estimate Created Date** criteria, in the middle column double-click on **Equal to...** and enter **3** in the days ago field. Be sure to verify the **Shift dates if run in the future** checkbox is enabled and click **OK**. You have now added the 1st criteria to our query. - Click on the **Status** section under **Estimate Criteria** and double-click on **Pending** to add that criteria. - Click **OK** on the **Macro Query** window to save our query. - If you want to be able to run this macro manually on an order from within the Order Explorer, check the **Allow this macro to appear in the menu and be manually run for an individual order** checkbox. ==== Configuring the Actions ==== - Click on the **Actions** tab. - Add an action to send the email. In the center panel is a list of macro actions, click on **E-Mail Macro** and click the **Add** button above it. This will add a new action on the right. - Fill in these fields in the E-Mail Macro action section: * **Replace To: Field with the email address of:**