Connectors

/

Microsoft Dynamics GP

/

Dynamics GP customer engagement with a Constant Contact campaign
Report
Cross-Connector

See which customers responded to a campaign and then ordered

For marketers who want Constant Contact campaign engagement matched to Dynamics GP customer accounts and orders, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Dynamics GP customer engagement with a Constant Contact campaign
Which of our Dynamics GP customers engaged with the October Product Update campaign, and did they order?
The campaign reached 1,240 recipients, and 312 are Dynamics GP customers. - Clicked and ordered: 14 customers, led by Contoso with 8,200 since the send - Clicked, no order yet: 37 customers - Bounced: 9 customers, such as Fabrikam, call Jordan Lee to fix the address - Not customers: 928 recipients, counted only Want the table of engaged customers?
Microsoft Dynamics GP
Sample figures. Your results come from your own account.
constant-contact-get-campaign
constant-contact-get-campaign-open
constant-contact-get-campaign-click
constant-contact-get-campaign-bounce
constant-contact-get-campaign-unsubscribe
microsoft-dynamics-gp-get-rm-customer
microsoft-dynamics-gp-get-rm-sales-trx

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Microsoft Dynamics GP

Microsoft Dynamics GP
Run it on your own Microsoft Dynamics GP data.

Connect Microsoft Dynamics GP, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Campaign results that never connect to customers

After a campaign you want to know which customers responded, but Constant Contact sees email addresses and Dynamics GP sees accounts. GP cannot search customers by email, so matching recipients to accounts and orders is manual.

Without PopdockAI

  • Export opens, clicks and bounces from Constant Contact
  • Match each email to a GP customer by hand
  • Search for orders placed after the send
  • Leave bounced customer emails unfixed

With PopdockAI

  • Opens, clicks, bounces and unsubscribes are collected per recipient
  • Emails are matched to active Dynamics GP customers
  • Clickers are checked for orders since the send
  • Bounced customers come with phone and contact, and nothing is changed

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** For the Constant Contact campaign named `{campaign-name}`, list the engagement of the recipients who are Dynamics GP customers, alongside each customer's balance and sales. Use GP company `{company}` (empty means the default company).

**Step 1: Find the campaign in Constant Contact**

Call `constant-contact-get-campaign` with name.contains `{campaign-name}`. If more than one comes back, list them (name, status, last-sent-date) and stop. If its status is not Done, say it has not been sent and stop.

**Step 2: Collect the engagement in Constant Contact**

With the campaign-id, call `constant-contact-get-campaign-open`, `constant-contact-get-campaign-click`, `constant-contact-get-campaign-bounce` and `constant-contact-get-campaign-unsubscribe`. Build one row per email-address with the counts of opens and clicks, and whether it bounced or unsubscribed.

**Step 3: Carry the emails across to Dynamics GP**

Dynamics GP cannot filter customers by email, so call `dynamics-gp-get-rm-customer` once with inactive false, company `{company}` and customer-class `{customer-class}` when given, max-records 500. Build a lookup from every address in main-email-address (split on semicolons and commas, trimmed, lower case) to the customer. Match each engagement row against it. A recipient with no match is not a GP customer; count them but do not list them.

**Step 4: Add the account context from Dynamics GP**

For each matched customer who clicked, call `dynamics-gp-get-rm-sales-trx` with customer-id and document-date.from set to the campaign's last-sent-date, so the report shows any order placed after the email.

**Step 5: Report**

* Campaign name, last-sent-date, and the campaign totals from Step 1 (sends, opens, clicks, bounces, opt-outs)
* A table of matched customers: customer-id, customer-name, email, opened, clicked, bounced, unsubscribed, customer-balance, orders since send (count and total)
* Sort clickers with orders first, then clickers, then openers
* A short list of bounced customers with their GP phone-1 and contact-person, since their email on file needs fixing

**Rules & Guidelines:**

* Tools whose names start with dynamics-gp are on the dynamics-gp server; tools whose names start with constant-contact are on the constant-contact server.
* This prompt is read-only. Do NOT call `constant-contact-resend-campaign-to-non-openers`, `constant-contact-update-contact`, `dynamics-gp-rm-customer-note`, `dynamics-gp-rm-customer-address-email` or any other write tool on either server.

**Validation:**

* If the customer read was capped at 500, say that some recipients may be customers you could not match.
* If no recipient matches a GP customer, say so with the number of recipients checked.

Who it's for

One answer, three teams that use it

Email marketers

Show campaign results in customer terms

Engagement is reported by account with orders since the send, so you can show what a campaign led to.

Which Dynamics GP customers clicked the Spring Promo campaign in Constant Contact, and who ordered after?

Account managers

Follow up on customers who clicked

Customers who clicked but have not ordered are the warmest calls you can make this week.

Show me WHOLESALE class customers who opened the October Product Update but have not ordered since.

Customer data teams

Fix bounced customer emails

Bounced customers come with their GP phone and contact, so the address on file can be corrected.

Which Dynamics GP customers bounced on the September newsletter, and who can I call to fix their email?

How it works

What PopdockAI does when you ask

You name a sent campaign, and your AI assistant matches its recipients to Dynamics GP customers and checks their orders. It reads and reports only.

01

Ask

You name a sent Constant Contact campaign, and optionally a customer class.

Your AI tool

02

Collect

It gathers each recipient's opens, clicks, bounces and unsubscribes.

constant-contact-get-campaign
constant-contact-get-campaign-open
constant-contact-get-campaign-click
constant-contact-get-campaign-bounce
constant-contact-get-campaign-unsubscribe

03

Match

It matches emails to active Dynamics GP customers and checks orders since the send.

microsoft-dynamics-gp-get-rm-customer
microsoft-dynamics-gp-get-rm-sales-trx

04

Report

You get engaged customers, orders and bounced customers to fix.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Microsoft Dynamics GP and one secure connection to your AI tool. No code, no exports.

get-data

constant-contact-get-campaign

Returns Constant Contact email campaigns with their status and headline counts: sends, opens, not opened, clicks, bounces, forwards and opt-outs. Filter by name, status, type and last sent date.
get-data

constant-contact-get-campaign-open

Returns Constant Contact campaign opens with the device used. Filter by campaign, campaign activity, contact, email address or domain, device type and date.
get-data

constant-contact-get-campaign-click

Returns Constant Contact campaign clicks with the link clicked and the device used. Filter by campaign, campaign activity, contact, email address or domain, device type and date.
get-data

constant-contact-get-campaign-bounce

Returns Constant Contact campaign bounces with the bounce type. Filter by campaign, campaign activity, contact, email address or domain, bounce type and date.
get-data

constant-contact-get-campaign-unsubscribe

Returns Constant Contact campaign unsubscribes with the reason given. Filter by campaign, campaign activity, contact, email address or domain, reason and date.
get-data

microsoft-dynamics-gp-get-rm-customer

Returns customer records from Dynamics GP Receivables Management, including contact details, class, terms and balances. Filter by salesperson ID, hold, customer name, state, zip, customer balance, customer class and city, and pick the company and the maximum number of records.
get-data

microsoft-dynamics-gp-get-rm-sales-trx

Returns Sales Order Processing documents such as quotes, orders and invoices from Dynamics GP Sales, with the customer, dates, salesperson and document totals. Filter by batch number, customer ID, SOP type, SOP number, salesperson ID, document amount, customer name and document date, and pick the company and the maximum number of records.
Read only.Nothing in Microsoft Dynamics GP Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

See which customers engaged and then ordered

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation