Hi,
I am trying to display the selected values of a MultiSelect Option Set in a custom Web page in Portals using Liquid Template.
I wrote the FetchXml query in a webTemplate.
{%fetchxml Contact %}
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="contact">
<attribute name="fullname" />
<attribute name="contactid" />
<attribute name="mrc_brandvaluemultiselect" />
<order attribute="fullname" descending="false" />
<filter type="and">
<condition attribute="fullname" operator="eq" value="{{username}}" />
</filter>
</entity>
</fetch>
{% endfetchxml %}
{% for item in Contact.results.entities %}
brandfilter = {{item.mrc_brandvaluemultiselect}}
{%endfor%}
I test it the query in XrmToolBox, it's return the field with values.
<resultset>
<result>
<fullname>ssssssss</fullname>
<contactid>{415CC5D2-3DEF-E911-A989-7467674746574}</contactid>
<mrc_brandvaluemultiselect name="[-1,717690001,-1]">[-1,717690001,-1]</mrc_brandvaluemultiselect>
</result>
</resultset>
But when Liquid Template executes the query in the Web Template, the brandfilter (multi select optionsetvalues) field is null or empty and getting values for Id,fullname.
Regards,
Susritha

Report
All responses (
Answers (