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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Portal Liquid Template...
Power Pages
Unanswered

Portal Liquid Template to get current EntityID

(1) ShareShare
ReportReport
Posted on by 9

I have a WebPage with a WebForm in my portal. My WebForm has several WebFormSteps, the first of which creates a new entity, and the subsequent steps all edit this record.

In my second step, which displays a CRM Form Tab, I need to add some custom Liquid logic to load data using the FetchXml liquid tag.  The query that I want to run (which loads a list of child records related to the current entity ) requires a dynamic input that includes the EntityID of the current record.  I was hoping that I would be able to access the ID of the current record, but have not been able to find a way to do this using Liquid.

I am not passing the ID of the record in the query string, because I don't think it is possible in my case. I am not aware of a way to pass the current EntityId around in the query string between the steps of a WebForm. I am using a Source Type in the Edit steps of "Previous Step" and specifying the first step in the WebForm (which creates the record) as the source of all latter steps.

 

Is there any mechanism in Liquid to get the ID of the current record that the page is editing?

I have ideas of a workaround to use JavaScript to get the EntityId and then to call CRM to load the data I need during the page load, but it would be much simpler if I just had a way to get the EntityId in Liquid.

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    one way to retrieve it easily would be via JS/jQuery, using the following:

    $("#EntityFormView_EntityID").val()

    I don't think that can be achieved via Liquid, unless it's on the Query String

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard