ISRecallVisitFilter.ServiceID

Description

This filter property is used to load the interventions by ID of the service.

Syntax

object.ServiceID

Part Attribute Type Description
object Required
The object always implements the ISRecallVisitFilter interface

Return Value

int

Example

Display the number of the interventions filtered by ID of the service.

sub main   
  Dim aFilter
  Dim aService
  Dim aVisits
  Dim aMessage
    
  Set aFilter = Profile.CreateRecallVisitFilter
  set aService = Profile.LoadService("108") 
  
  aFilter.ServiceID = aService.ID
   
  set aVisits = Profile.LoadRecallVisits(aFilter)  
   
  aMessage = aMessage & vbNewLine & "The number of the interventions " &_
    "filtered by ID of the service (" & aFilter.ServiceID & ") is " & aVisits.Count
    
  Profile.MsgBox(aMessage)  
end sub
Note:

In Profile Client v8 on User Interface Service ID cannot be found.

Version information

Added in v7.8.0