Skip to content

Automating Azure Tables for CRM with Azure Functions

Azure Functions pulls leads from Azure Tables and maps them into Microsoft Lists. Scheduled runs keep your CRM up to date and trigger welcome emails.

Automating Azure Tables for CRM with Azure Functions

In the first part of our CRM automation series we explained how we combine leads from multiple sources in a single Microsoft List. This article builds on that foundation and shows how we move AppSource sales automatically from Azure Tables into the same CRM list.

Initial setup: capturing AppSource leads

Azure Tables CRM automation – Azure Tables to Microsoft Lists via Azure Functions

Whenever a customer buys one of our apps such as Smarter Event Booking or Smarter Tombola through AppSource, the transaction lands in an Azure Table in our tenant. We want a single list that acts as the hub for every lead, so we move each entry from the Azure Table into our Microsoft List without touching it manually.

Why Azure Functions won out

Our first article described a Power Automate flow that files email leads in Microsoft Lists. We could have repeated that approach for Azure Tables, but there is no ready-made action and the HTTP request connector would add extra licensing costs. Logic Apps offer the necessary connectors, yet the consumption-based billing model turned out to be too expensive for our volume. Azure Functions, on the other hand, give us full control over schedules, scaling, and cost, so we built the integration there.

The function executes three concise steps:

Step 1: Retrieve unprocessed entries

We use an OData query to request every lead that has not yet been synchronized.

Step 2: Parse and normalize the payload

We map the Azure Table entity to a clean object, making sure mandatory CRM fields and optional metadata (language, product interest, reseller) are available for downstream logic.

Step 3: Create the Microsoft List item

For each new lead we add a fresh row to the Microsoft List and flag the Azure Table entry as processed. That prevents duplicates and gives us a quick audit trail.

Because the function runs on a timer trigger, the list stays current without anyone kicking off a flow manually.

Automated welcome email

To round out the experience we also send every fresh lead a welcome email. It contains setup guidance so new customers can install and configure the product without waiting for a consultant.

Azure Tables CRM automation – Automated welcome email for new leads

Ready for the next step? Continue with the third part of the series to learn how we notify the team about new leads using list conversations and deep links.

Related articles

Notify your team about new leads for CRM automation
Notify your team about new leads for CRM automation

Notify your team about new leads for CRM automation

Notify your team about new leads using Adaptive Cards, deep links and list conversations in Microsoft Teams—automated with Power Automate for faster follow-ups.

Read more
What You Can Achieve and Streamline with Microsoft
What You Can Achieve and Streamline with Microsoft Lists

What You Can Achieve and Streamline with Microsoft Lists

Discover how Microsoft Lists keeps your sales pipeline organized, color-codes priorities with rules and formatting, and nudges you before follow-up is due.

Read more
Automate Azure DevOps Work Items from Office 365 Email
Automate Azure DevOps Work Items from Office 365 Email

Automate Azure DevOps Work Items from Office 365 Email

Learn how to capture support emails in Office 365 with Power Automate, automatically create Azure DevOps work items, and keep customers informed with confirmations at every step.

Read more

Questions about this topic?

We are happy to help you put this into practice in your environment.