Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 30534

Re: Service Desk Tables in SQL

$
0
0

Hi Caye,

The custom field information is not straight forward in the database, since it needs to be dynamic and we designed it for speed in getting values from the database.  In 1.4 The custom fields are located in KSD.CustomFieldsValues and KSD.CustomFieldsValuesBlob.  To query this information you can get the query string the following way:

select ref, CustomFieldList from kasadmin.orgServDeskDefn

Use the CustomFieldList in the following query to see your information:

select <CustomFieldList from above query>

FROM kasadmin.SDIncident v

LEFT JOIN KSD.CustomFieldsValues cfv WITH (NOLOCK) ON cfv.entityId = v.id

LEFT JOIN KSD.CustomFieldsValuesBlob cfvb WITH (NOLOCK) ON cfvb.entityId = v.id

where v.ref='<TicketId>'

Thanks,

Charles


Viewing all articles
Browse latest Browse all 30534

Trending Articles