Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Retrieving current entity record ID and other attribute info using Liquid in Portals

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi guys,

I need to display information on the breadcrumb by concatinating three text fields data retrieved from the current custom entity record. 

Is there a way I can retrieve that information on a next step of a Web Form using LIQUID and not the JavaScript?

The query string doesn't contain the id of the record hence entities.customEntity[request.params.id] is out of the question.

  • Suggested answer
    huhwa Profile Picture
    huhwa 5 on at
    RE: Retrieving current entity record ID and other attribute info using Liquid in Portals

    Helped me! Thanks

  • Suggested answer
    Ryan Spain Profile Picture
    Ryan Spain 52 on at
    RE: Retrieving current entity record ID and other attribute info using Liquid in Portals

    Hi there,

    Unfortunately this does not appear to be achieveable via Liquid (major oversight if you ask me).

    You can however achieve this using JavaScript, which isn't ideal. The below should work and return the current records GUID on a Web Form Step.

    $('#EntityFormView_EntityID').val();

    This comes a bit late, but hopefully it helps someone else that comes accross this.

    Ryan

  • Steve Yao Profile Picture
    Steve Yao on at
    RE: Retrieving current entity record ID and other attribute info using Liquid in Portals

    Then I think the Liquid may not achieve that.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Retrieving current entity record ID and other attribute info using Liquid in Portals

    Hi Steve

    I had already gone through those references before I posted my question. The entities.custom_Entity_Name[id], requires the GUID parameter. My question was how do we get the ID of the current record that was created on the Insert step of the previous step in a Web Form.

  • Steve Yao Profile Picture
    Steve Yao on at
    RE: Retrieving current entity record ID and other attribute info using Liquid in Portals

    Hi

    Please refer to below for reference.

    https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-objects

    https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-tags

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

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,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans