Power Automate – Damien Devaney https://damienpdevaney.co.uk Everything Computer Wed, 07 May 2025 21:48:45 +0000 en hourly 1 https://wordpress.org/?v=6.9.4 https://damienpdevaney.co.uk/wp-content/uploads/2025/05/cropped-ITmusingFavIcon-2-32x32.png Power Automate – Damien Devaney https://damienpdevaney.co.uk 32 32 Updating Hubspot from Power Automate https://damienpdevaney.co.uk/updating-hubspot-from-power-automate/ https://damienpdevaney.co.uk/updating-hubspot-from-power-automate/#respond Thu, 01 Feb 2024 21:36:09 +0000 https://damienpdevaney.co.uk/?p=283 The connector from Power Automate to Hubspot is not reliable in my experience. Fortunately Power Automate allows us to build a HTTP request from scratch.

To do this you need a Hubspot API key.

In Power Automate choose the HTTP step:

This is how to set it up for a POST request to add a contact to Hubspot:

Note you have to write “Bearer ” and then the API key.

Note also that attributes in the body are lower case.

]]>
https://damienpdevaney.co.uk/updating-hubspot-from-power-automate/feed/ 0
Using emails and Power Automate as a simple API https://damienpdevaney.co.uk/using-emails-and-power-automate-as-a-simple-api/ https://damienpdevaney.co.uk/using-emails-and-power-automate-as-a-simple-api/#respond Thu, 11 Jan 2024 21:04:12 +0000 https://damienpdevaney.co.uk/?p=276 Sometimes you might have a website or service without an API but which has some sort of emailing facility. For example, an online form that sends a standard email response.

With Power Automate you can extract whatever data you wish from that email and do what you like with it (update a database for instance).

For example if we have an email like this:

Subject: Form Submission
Body: 
First name - Mickey
Second name - Mouse
...

Power automate can be programmed to search for the text between “First name – ” and “Second name” and (in this case) return “Mickey”.

As the trigger choose “When a new email arrives in a shared mailbox V2” with the Subject Filter “Form Submission”.

Next “HTML” to text:

Next and for several subsequent steps choose the Data Operation step:

Using string manipulation functions like index, length, left, right, mid etc. extract the required data from the body if the email.

Finally, for each item of data extracted, create an Initialize Variable step, setting the value as the output from an earlier Data Operation step.

]]>
https://damienpdevaney.co.uk/using-emails-and-power-automate-as-a-simple-api/feed/ 0