web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Problem Calling API

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good Day, 

 

Here is what I am trying to accomplish. 

1. Send an email with a specific subject such as API Ping  and in the body of that email enter an ip address such as 8.8.8.8

2. Then flow reads that email and does an api query to https://api.hackertarget.com/nping/?q=8.8.8.8

3. The response is then sent via email back to the person who sent the original email. 

 

The problem I am having is in the http action. The action reads the dynamic content as HTML.   The api query occurs it can't interrupt the html, as it is looking for an ip address such as 8.8.8.8 

 

Pictures below show what I have setup ( removed email addresses)  and what the return results look like directly from the api. 

 
 

2019-12-30_10-21-07.pngexample api query to hackertarget.png

Categories:
I have the same question (0)
  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @Anonymous 

    Hi there.  If the IP address is the only thing in the body, then you might want to try adding the step "HTML to Text" after the email, but before your HTTP call.  That should work.

     

    20191230b.PNG

     

    Keep us posted.

    -Ed-

     

    If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Because the Body is the HTML format, it can't be used in the HTTP request. If you want to get the Email body for plain text, you can use the Body Preview instead:Annotation 2019-12-31 094536.png

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard