WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
117 stars 56 forks source link

How to Pass Simple Optionset (yes/No) Value in to Update Configuration #46

Closed subratgaur closed 4 years ago

subratgaur commented 5 years ago

We are trying to pass 2 Values to one look up field. Example LookupField - Name Value fields - Field1, Field2

Field2 is a simple Yes/No optionset. What is the correct way to represent the 'A json array of lookup/value pairs' and the Yes value of Optionset.

we have tried

[['TestKey','TestValue3', 'True']] [['TestKey','TestValue3', 1]] [['TestKey','TestValue3', '1']]

But all of them error out with "

System.InvalidCastException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #A36422D1"

What are we doing wrong ?

Any help will be very appreciated.

image

WaelHamze commented 5 years ago

@subratgaur note option sets are not currently supported in this task. This task is only able to set string values for now.

WaelHamze commented 4 years ago

This is now possible using environment variables.