Vladi Gubler
Vladi Gubler
October 19, 2016
Stay in the know
Get helpful videos

Hi,

In today's world it's important to make your applications talk to each other and exchange data. But in today's cloud-based world, some of the applications you use don't even belong to you! Fortunately, there is an industry-standard way of gluing the pieces together. REST is a simple but powerful protocol that modern applications expose to allow you to fetch, add, update and delete information over the web, without the need for direct programmatic access.

Today I'm going to show you how to leverage this protocol to be able to link together two applications:

  1. Your SharePoint (on-premises or in Microsoft 365)
  2. Mailgun - an incredibly powerful, but simple mass mailing service

Basically, what we are going to do is create a mailing list in Mailgun for our partners and add the partner email to the list automatically whenever a partner is added to a Partners list in SharePoint. So next time you want to send your newsletter to partners, this new partner will already be on the list.

We are going to be using Ultimate Forms app (yes, this example is based on Microsoft 365), but you can also use the on-premises version. We are going to be using just the Actions component, so you can also get it separately if you prefer.

  1. First, create a list of partners in your SharePoint site. It can be any type of list, as long as it contains text columns for the partner name and email.
  2. Set up your free Mailgun account here. They even allow you to send up to 10,000 emails per month for free! Mailgun with provide you with an API key that will need for the following steps. You can find the API key under Domains -> <your production domain>
  3. In Mailgun set up a mailing list called Partners, with an email such as partners@yourdomain.com
  4. From your Partners list in SharePoint click on Design button in the ribbon to enter Ultimate Forms, and then under Configure Business Logic click on Actions
  5. Select Call web service as your action type and choose New as your event.
  6. Switch to Action Settings tab
  7. Switch to REST mode under Service type.
  8. Enter the URL for the REST endpoint. It will be https://api.mailgun.net/v3/lists/<your mailling list URL>/members
  9. Under Authentication choose Credentials.
  10. Under User name enter api.
  11. Under Password enter your API key.
  12. Set Method to POST.
  13. Map paramers name and address to the columns containing your partner name and email address respectively.
  14. Save the action.

This is it, when you add your next partner to the SharePoint list, their details will be automatically added to the mailing list in Mailgun!

Loading...

Add your comment

Comments are not meant for support. If you experiencing an issue, please open a support request.
Development
As a skilled SharePoint developer, I have spent years customizing forms and workflows. My goal is to speed up business processes and improve user experiences. The ability to customize SharePoint to fit individual organizational demands has always been a challenging and rewarding endeavor.  Today, I'll discuss how to create custom SharePoint...
Development
Dynamic Forms are an essential part of SharePoint solutions. Dynamic Forms change in appearance and functionality according to rules defined in the form. It does so in real time as the user fills out the form. This is the opposite of out-of-the-box static SharePoint forms which don't change in appearance or functionality. Learning how to how to...
Development
The best way to show off your product is of course letting your potential customers try it out. In our case, Ultimate Forms is a Microsoft SharePoint application, so it needs SharePoint to run. Of course, potential customers can easily install it and we even provide an installation wizard that will completely automate and streamline the...
Build powerful business applications in SharePoint using only your browser.
100% No-Code Solution
It’s never been easier to create, innovate, and share. All you need is your web browser!
Cost-Effective
Address business process pain points immediately. Save time and money.
Fantastic Support Team
In addition to our responsive support team, a wide variety of resources, documentations, tutorials, blogs and webinars is available to you
Microsoft partner logo
© 2005-2025 Infowise Solutions Ltd. All rights reserved.
Privacy | Cookie Policy | Accessibility | Cloud SLA