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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Problem Calling API

(0) ShareShare
ReportReport
Posted on by

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)
  • Verified answer
    v-litu-msft Profile Picture
    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.

  • 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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 211 Most Valuable Professional

#3
trice602 Profile Picture

trice602 198 Super User 2025 Season 2

Last 30 days Overall leaderboard