ServicePRO SDK Help

CoreServicesManager..::..GetAllTemplates Method

Fetch all Service request and purchase request templates based on organizational unit identifier

Namespace:  ServicePRO.Sdk.Windows.Managers
Assembly:  ServicePRO.Sdk.Windows (in ServicePRO.Sdk.Windows.dll)

Syntax


public void GetAllTemplates(
	string userSessionKey,
	int ouId,
	bool includeServiceRequest,
	bool includePurchaseRequest,
	bool includeProjectTemplate,
	bool includeQuickRequestTemplate,
	Action<ObservableCollection<stcListItem>, Exception> callbackAction
)
Public Sub GetAllTemplates ( _
	userSessionKey As String, _
	ouId As Integer, _
	includeServiceRequest As Boolean, _
	includePurchaseRequest As Boolean, _
	includeProjectTemplate As Boolean, _
	includeQuickRequestTemplate As Boolean, _
	callbackAction As Action(Of ObservableCollection(Of stcListItem), Exception) _
)

Parameters

userSessionKey
Type: String
User’s Session Key.
Key property of the User Session Object of type stcSession.
The User Session has to be established by making a call to InitializeSystemAndSession() method in CoreServicesManager class as a first step with using ServicePRO SDK.
ouId
Type: Int32
Organizational Unit identifier (tblqueue.OUId for the selected folder/queue)
includeServiceRequest
Type: Boolean
if set to true [will fetch service request templates].
includePurchaseRequest
Type: Boolean
if set to true [will fetch purchase request templates].
includeProjectTemplate
Type: Boolean
if set to true [will fetch project templates].
includeQuickRequestTemplate
Type: Boolean
if set to true [will fetch quick request templates].
callbackAction
Type: Action<(Of <(<'ObservableCollection<(Of <(<'stcListItem>)>)>, Exception>)>)>
Callback action that will provide a list of templates (stcListItem.Data will store the type of template, integer value of clsEnumeration.hsmdObject.hsmdServiceRequest or clsEnumeration.hsmdObject.hsmdPurchaseRequest)