Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

Where can I find the real attribute names for web link objects?

Posted on by 5

The tables in the Web Link section list the available attributes but they are not very helpful.

They list the attribute names in "display name format", but when it comes to writing liquid code we need the real attribute in the correct format.

Screenshot-2023_2D00_03_2D00_10-at-13.43.03.png

For example, if I want to target the External URL attribute, how do I know what format it should be?

{{ link.ExternalURL }} ?

{{ link.externalurl }} ?

{{ link.externalUrl }} ?

{{ link.external_url }} ?

{{ link.external-url }} ?


We need another column in the table with this information...
but until then, is there any way I can find out what the correct format is ?
  • HTK421 Profile Picture
    HTK421 5 on at
    RE: Where can I find the real attribute names for web link objects?

    Ive found the reference table

    Just posting here to share the knowledge :-)

    I had originally been looking under [Learn > Power Platform > Power Apps > Manage Weblinks]

    learn.microsoft.com/.../manage-web-links

    However there is an almost identical page under [Learn > Power Platform > Power PAGES > Available Liquid Objects]

    learn.microsoft.com/.../liquid-objects

    This table actually has the proper code format for the object attributes

    so, in my case, the correct format for External URL is actually {{ link.url }}

  • HTK421 Profile Picture
    HTK421 5 on at
    RE: Where can I find the real attribute names for web link objects?

    Thanks for the reply Daniele, I really appreciate it,

    but it Im afraid didn't work for me.

    I have tried several pages that use Liquid code (in the web Templates) and the "?debug=liquid" query did not expose any liquid attributes in the source.

    Also, I need to use some attributes that I have not used before, so even if I can get the debugger to work, I think perhaps I will only see liquid attributes for objects that have been used in the page?  How would I see attributes that I have not used yet ?

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,217 Moderator on at
    RE: Where can I find the real attribute names for web link objects?

    hi

    you can find the correct format for the attribute by using the Liquid debugger. Follow these steps:

    Go to the web page where you want to use the liquid code.

    Add "?debug=liquid" to the end of the URL in the address bar.

    Load the page.

    Right-click on the web page and select "View Page Source".

    In the page source, search for "<!-- debug output start -->".

    Below that, you will find the Liquid code that is being used for the page. Look for the section that corresponds to the Web Link section and find the attribute you want to use.

    The Liquid code for the attribute will be in the format "{{ link.attribute_name }}". Use this format in your code.

    Using the Liquid debugger will allow you to see the actual Liquid code that is being used for the page and find the correct format for the attribute you want to use.

    DAniele

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans