text value of the picklist field

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Cloud Applications
Post Reply
bezpal
Posts: 6
Joined: Tue 21 Nov 2017 17:27

text value of the picklist field

Post by bezpal » Thu 14 Dec 2017 23:57

How do I get text value of the PickList column?
Here is part of my Enterprise.wsdl:

Code: Select all

<element name="RecordType" nillable="true" minOccurs="0" type="ens:RecordType"/>
<element name="RecordTypeId" nillable="true" minOccurs="0" type="tns:ID"/>
I can do

Code: Select all

Select RecordTypeId ...
and get 18-digit ID
but if I do

Code: Select all

Select RecordType ...
I get "Unknown column"

In Apex I can do

Code: Select all

RecordType.Name
Is there a way to build a query to extract RecordType text value?

Thanks!

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: text value of the picklist field

Post by Shalex » Wed 20 Dec 2017 06:24

Please specify the name of Salesforce object (table) where you look for the RecordType column.

JIC: you can get the list of all columns available via interface of our provider using conn.GetSchema("Columns", new string[]{"TableName"});

Post Reply