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 Platform Community / Forums / Power Automate / Set URL as variable value
Power Automate
Answered

Set URL as variable value

(0) ShareShare
ReportReport
Posted on by 14

I want to save url as a string in a variable, what is the syntax error here - 

ps_noob_to_pro_0-1715750095697.png

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @ps_noob_to_pro 

     

    just use %’URL’% as like below screenshot 

    Deenuji_0-1715750904446.png



    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • ps_noob_to_pro Profile Picture
    14 on at

    Even this does not works- 

    ps_noob_to_pro_0-1715751060314.png

     

  • Verified answer
    CU16071609-1 Profile Picture
    6,255 Moderator on at

    @ps_noob_to_pro 

     

    It seems you have added only % before and after URL.

     

    syntax would be like this %’htpps://google.com’%



    %'Link goes here'%

     

    missing single quote in your screenshot.

     

    Another workaround:

    In PAD, if you have any variables contains this "%" then PAD will understand it as their variables. So, in your cases, PAD recognizes these % and try to parses the variable. Then it will show the syntax error. 

    I think you can just decode your URL before PAD can use it.

     

    Deenuji_0-1715752136808.png

     

     

    Thanks and hope it can help you. 

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @ps_noob_to_pro !

     

    As seen in your link there is % sign. This % sign is part of variable initialization in PAD. All variables are enclosed in two percent signs like this:

    %NewVar%: this is a variable which will contain some value in it.

     

    Now, wherever you see percent sign like this:

    % just add '%'% after this.

     

    Like given below:

    Before:

    NathanAlvares24_1-1715751935747.png

     

    After:

    NathanAlvares24_0-1715751913393.png

     

    This will solve the error. I hope this helps.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @ps_noob_to_pro 

     

    In case both workaround not works, pls let me know 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard