
Announcements
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.
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