This is for the products list but if i need to show all the system views from the entity “contact” in a drop down list will be like this:
<fetch>
<entity name=”contact” >
<attribute name=”name” />
<filter>
<condition attribute=”returnedtypecode” operator=”eq” value=”2″ />
</filter>
</entity>
</fetch>
where “contact” is the entity ?
and then to be in a drop down i have to put this:
[msdyncrm_twig]
{% view entity=”contact” name=”contact” cache=”PT2H” %}
<select>
{% for recordId, record in entityview.rows %}
<option value=”{{record[‘productid’].value}}”>{{record[‘name’].value}}</option>
{% endfor %}
</select>
{% endview %}
[/msdyncrm_twig]