Power Pages

Unlock multimedia capabilities in Power Pages using liquid and note attachments

_entity/annotation/GUID

This simple URL format is all we need to output multimedia or to provide download links.
In the examples below, I’m getting a GUID from a Fetch XML query in my Songify Portal:

Example providing a download link:

<a href="https://songify.powerappsportals.com/_entity/annotation/{{ result.annotationid }}">Download file</a>

Example setting the source of an image:

<img src="https://songify.powerappsportals.com/_entity/annotation/{{ result.annotationid }}" alt="Cover artwork for {{ result.musdyn_name }} by {{ result.musdyn_artist.name }}">

Example setting the source of a HTML5 audio player:

<audio controls>
<source src="https://songify.powerappsportals.com/_entity/annotation/{{ result.annotationid }}" type="{{ result.mimetype }}">
</audio>
Franco Musso

You may also like

Leave a reply

Your email address will not be published.

More in Power Pages