Skip to content
Franco Mussopower pages
Code snippet

use Liquid and Fetch XML to retrieve a single record without a GUID

Copy it with the button on the code. For the why and the walkthrough, see “Use Liquid and Fetch XML to retrieve a single record without needing a GUID”.

use Liquid and Fetch XML to retrieve a single record without a GUIDLiquid
{% fetchxml most_recent_track_query %}
    <fetch version="1.0" output-format="xml-platform" mapping="logical" top="1">
        <entity name="musdyn_track">
            <attribute name="musdyn_name" />
            <attribute name="createdon" />
            <order attribute="createdon" descending="true" />
            <filter type="and">
            <condition attribute="statuscode" operator="eq" value="1" />
            </filter>
        </entity>
    </fetch>
{% endfetchxml %}

Search

Book a discovery call

30 minutes. Bring your trickiest Power Pages problem — I’ll tell you honestly whether I’m the right fit.