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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

request.param not returning ID

(0) ShareShare
ReportReport
Posted on by 15

Hi Experts,

I have created a custom field 'Page ID' on the web page entity and have assgned a value in theis fielfd for all my web pages. I would like to display this number on the footer of my web pages. I have created a web template with the following code:

{% assign x = entities['adx_webpage'][request.params.adx_webpageid]  %}
{{ x.adx_webpageid }}

and i get an error Liquid error: Value cannot be null. Parameter name: key.

I have tried the same code passing a GUID string into the variable and that works so it leads me to believe that the request.params is not calling the record GUID.

Any help would be appreciated thanks.

I have the same question (0)
  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    Have you set up Entity Permissions for the entity "adx_webpage"?

    And you can adjust the code into the following way.

    {% if request.params.adx_webpageid %}
    ...
    {% endif %}

  • Nya Profile Picture
    29,060 on at

    Hi,

    If the issue has been solved, it would be appreciated if you could click "Yes" to verify my answer.

    Image

    If there is any further doubt, please do not hesitate to 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 80

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans