Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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!

  • v-jefferni Profile Picture
    on at
    Re: Exctract http link from email and attach it to a certain word in Excel

    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,

  • AK989 Profile Picture
    24 on at
    Re: Exctract http link from email and attach it to a certain word in Excel

    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!

  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Exctract http link from email and attach it to a certain word in Excel

    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,

  • v-jefferni Profile Picture
    on at
    Re: Exctract http link from email and attach it to a certain word in Excel

    Hi @AK989 ,

     

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

     

    Best regards,

  • AK989 Profile Picture
    24 on at
    Re: Exctract http link from email and attach it to a certain word in Excel

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

    • will that be enough?
  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Exctract http link from email and attach it to a certain word in Excel

    Hi @AK989 ,

     

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

     

    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492