Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

{Portal} Liquid Error retrieving optionset value

$
0
0

I have a content snippet accessing the contact record via the user variable.

let currentMembershipLabel = '{{ user.abc_membershiptype.label}}';

let currentMembership = '{{ user.abc_membershiptype.value}}';

The currentMembershipLabel has the correct text for the option set value selected, however the .value gets a type conversion error:

'Liquid error: Object of type 'System.Int32' cannot be converted to type 'System.String'.';

I have tried:

  • let currentMembership = '{{ user.abc_membershiptype.value | string }}';
  • let currentMembership = {{ user.abc_membershiptype.value}};

however i get the same error.

Thanks in advance for your assistance.


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images