Skip to main content

Notifications

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.

  • Nya Profile Picture
    Nya 29,056 on at
    RE: request.param not returning ID

    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.

  • Suggested answer
    Nya Profile Picture
    Nya 29,056 on at
    RE: request.param not returning ID

    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 %}

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans