Returns the available option values for a property set field. For static fields (COMBO BOX, LIST BOX, RADIO BUTTON), returns the list of stored option values. For LOOKUP fields, executes the configured external database query and returns the live results. An optional OptionFilter string can be used to narrow down lookup results.
/srv.asmx/GetPropertySetFieldOptions
/srv.asmx/GetPropertySetFieldOptions?authenticationTicket=...&PropertySetName=...&PropertyFieldName=...&OptionFilter=.../srv.asmx/GetPropertySetFieldOptions (form data)http://tempuri.org/GetPropertySetFieldOptions| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
PropertySetName |
string | Yes | Internal name of the property set. |
PropertyFieldName |
string | Yes | Internal name of the field whose options to retrieve. |
OptionFilter |
string | No | Filter string to narrow results. Used as a SQL WHERE clause parameter for LOOKUP fields. Ignored for static fields. |
Options are returned alphabetically sorted by value.
<response success="true" error="">
<options>
<option value="Active" />
<option value="Draft" />
<option value="In Progress" />
<option value="Rejected" />
</options>
</response>
For external database lookup fields, columns from the SQL query result are returned as attributes. The column names in the result set become attribute names on each <option> element.
<response success="true" error="">
<options>
<option CategoryName="Engineering" CategoryCode="ENG" />
<option CategoryName="Finance" CategoryCode="FIN" />
<option CategoryName="Legal" CategoryCode="LEG" />
</options>
</response>
<response success="false" error="Custom Property field not found." />
Any authenticated user may call this API.
Anonymous callers are blocked from accessing private property sets (PrivatePropertySet = TRUE).
| Control Type | Supports GetPropertySetFieldOptions |
|---|---|
COMBO BOX |
Yes -“ returns static option list |
LIST BOX |
Yes -“ returns static option list |
RADIO BUTTON |
Yes -“ returns static option list |
LOOKUP |
Yes -“ executes the configured database query |
TEXT BOX |
Yes -“ returns empty <options/> (no options defined) |
CHECK BOX |
Yes -“ returns empty <options/> (no options defined) |
GET /srv.asmx/GetPropertySetFieldOptions
?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
&PropertySetName=ProjectMetadata
&PropertyFieldName=STATUS
HTTP/1.1
Host: yourserver
GET /srv.asmx/GetPropertySetFieldOptions
?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
&PropertySetName=ProjectMetadata
&PropertyFieldName=CATEGORY
&OptionFilter=Eng
HTTP/1.1
Host: yourserver
POST /srv.asmx/GetPropertySetFieldOptions HTTP/1.1
Host: yourserver
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c&PropertySetName=ProjectMetadata&PropertyFieldName=STATUS&OptionFilter=
PropertyFieldName lookup is case-insensitive -“ the field name is matched against the uppercase field names stored in the property set.LOOKUP fields, the OptionFilter value is passed to the configured SQL query’s filter parameter. The exact behavior depends on the SQL sentence configured for the field.LOOKUP field’s data source, use SetPropertySetLookupFieldParametersForSQLServer, SetPropertySetLookupFieldParametersForMYSQL, or SetPropertySetLookupFieldParametersForORACLE.| Error | Description |
|---|---|
[900] |
Authentication failed -“ invalid credentials. |
[901] |
Session expired or invalid authentication ticket. |
| Access Denied | Property set is private and the caller is anonymous. |
| Property set not found | No property set with the specified PropertySetName exists. |
| Field not found | No field with the specified PropertyFieldName exists in the property set. |
| Lookup error | The external database query for a LOOKUP field failed. |