• Resolved siddiquemahsud

    (@siddiquemahsud)


    THe below code is not working, any help please

    [msdyncrm_twig]
    <select>
    {% for optionMeta in metadata['contact'].Attributes['gendercode'].OptionSet.Options %}
       <option value="{{ optionMeta.Value }}">
          {{ optionMeta.Label.UserLocalizedLabel.Label }}
       </option>
    {% endfor %}
    </select>
    
    [/msdyncrm_twig]

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author alexacrm

    (@alexacrm)

    Dataverse plugin uses [icds_twig] for the twig shortcode. If you’re using HTML or shortcode block (and not a twig block) then use [icds_twig] shortcode:

    [icds_twig]
    <select>
    {% for optionMeta in metadata['contact'].Attributes['gendercode'].OptionSet.Options %}
       <option value="{{ optionMeta.Value }}">
          {{ optionMeta.Label.UserLocalizedLabel.Label }}
       </option>
    {% endfor %}
    </select>
    
    [/icds_twig]
    • This reply was modified 1 year, 3 months ago by alexacrm.
    Thread Starter siddiquemahsud

    (@siddiquemahsud)

    Thanks for your reply, actually I’m using dynamics integration plugin, I needed to display an optionset on a form. Should I need to install dataverse plugin too? or is there a a way to get optionset data in dynamics integration plugin?

    Plugin Author alexacrm

    (@alexacrm)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not able to get optionSet meta data’ is closed to new replies.