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 Platform Community / Forums / Power Automate / Exctract http link fro...
Power Automate
Answered

Exctract http link from email and attach it to a certain word in Excel

(0) ShareShare
ReportReport
Posted on by 24
  • Hello everyone,

I would really appreciate some help now.

I have 2 autogenerated links in my email (it differed from email to email, only the compony name is the same in the link). 

I need to extract the second link and attach it to a certain word in online Excel in Sharepoint.

I have tried first(split(slice(outputs('Html_to_text')?['body'], indexOf(outputs('Html_to_text')?['body'], 'http://')), ' ')) but it returns random letters as a value.

Thank you very much for your help!

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @AK989 ,

     

    Could you please share a sample of the Email body, so we are able to test with it?

     

    Best regards,

  • AK989 Profile Picture
    24 on at

    tmp_b4bf98bd-3ce6-4f88-8be5-d1230c68c9b1.png

    • will that be enough?
  • v-jefferni Profile Picture
    on at

    Hi @AK989 ,

     

    Text is preferred and I can copy to test it with. Please remember replace sensitive data with *.

     

    Best regards,

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @AK989 ,

     

    I made a test with something similar to your sample:

    vjefferni_0-1705912320037.png

     

    So, if both URLs are included by [ ], you can use below expression:

    split(split(outputs('Html_to_text')?['body'],'[')[2],']')[0]

     

    Best regards,

  • AK989 Profile Picture
    24 on at

    Omg, you are a magician, it worked.Thank you for your understanding, as the data I am automating is a bit sensitive. The last question please. Can I attach this link to a certain word in online Excel. One more time thank you a million!

  • v-jefferni Profile Picture
    on at

    Hi @AK989 ,

     

    It seems simple. But without the details of your excel, I'm not sure. You'd better post a new case with detailed scenario so more users in the forum will see it and help.

     

    Best regards,

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard