ISProvider.GetEntityIdBySource

Description

This function returns the entities of the provider with the specified source.

Syntax

object.GetEntityIdBySource(aSource)

Part Attribute Type Description
object Required
The object always implements the ISProvider interface
aSource In, Required
string
The entity source

Return Value

ISList

Returns the entities of the provider with the specified source.

Example

Add the entities with the source "My source 1" to the provider. Get the entities with the specified source and display their count.

Dim aFilter 
Dim aProviders
Dim aProvider
Dim aEntityCollection
Dim aMessage

Set aFilter = Profile.CreateProvidersFilter

aFilter.Category = 2 'pcProvider  

set aProviders = Profile.LoadProvidersByFilter(aFilter)
aMessage = aMessage & vbNewLine &_
  "The number of the providers is " & aProviders.Count

for each aProvider in aProviders
  aProvider.AddEntityId "My source  1", "My identifier", "My value A" 
  aProvider.AddEntityId "My source  2", "My identifier", "My value B"
  aProvider.Save
  
  set aEntityCollection = aProvider.GetEntityIdBySource ("My source  1")
  
  aMessage = aMessage & vbNewLine & aProvider.FullName &_
    " has " & aEntityCollection.Count & " linked entities "
next  
 
Profile.MsgBox (aMessage)  
Note:

In Profile Client v8 on User Interface Entity Source can be found in Organisation > People&Places > People and Places > Open the selected Provider > Registry > Source.

Version information

Added in v7.8.0