web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Get Option Set Value f...
Power Pages
Unanswered

Get Option Set Value from Liquid Code

(1) ShareShare
ReportReport
Posted on by 16

Hi, 

 

I try to get the values of a choices field but it's not working.

In my contact table, the user has a field called crc9d_scope and it's a multi-select type.

 

I tried to get the values using liquid in custom javascript form option by doing thess syntaxes but no results :

 

var scope = '{{ user["crc9d.scope"].label}}';
var scope = '{{ user.crc9d.scope.value}}';
var scope = '{{ user.crc9d.scope}}';
var scope = '{{ user["crc9d.scope"].value}}';
 
the outputs are either nothing or 'System.Collections.Generic.List`1[Adxstudio.Xrm.Web.Mvc.Liquid.OptionSetValueDrop]'
 
My goal is to get the values from the user connected and set the field value in my form with these values.
 
Thanks in advance for any suggestions
 
Categories:
I have the same question (0)
  • Inogic Profile Picture
    1,191 Moderator on at

    Hi,

     

    Firstly try to retrieve the contact using fetch xml in web template and try to set the value of multi optionset field.

    You can follow below provided link to retrieve and get the values of multi optionset field.

    https://www.inogic.com/blog/2022/02/easy-configuration-of-choices-column-in-power-apps-portal/

     

    Hope this helps!!!

     

    If you find this solution helpful, please mark it as accepted solution.

     

    Thanks!
    Inogic Professional Services
    An expert technical extension for your techno-functional business needs
    Power Platform/Dynamics 365 CRM
    Drop an email at crm@inogic.com 
    Service: http://www.inogic.com/services/ 
    Power Platform/Dynamics 365 CRM Tips and Tricks: http://www.inogic.com/blog/ 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 17 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 12

#2
CN-06091549-0 Profile Picture

CN-06091549-0 12

Last 30 days Overall leaderboard