ISExternalProvider.GetEntityIdBySource

Description

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

Syntax

object.GetEntityIdBySource(aSource)

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

Return Value

ISList

Returns the entities of the external provider with the specified source.

Example

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

Dim aExtProvider
Dim aCode
Dim aEntityCollection
Dim aMessage

aCode = "1"

Set aExtProvider = Profile.LoadExternalProvider(aCode)

if aExtProvider.ID = 0  then 
  Profile.MsgBox("No external provider with the specified code")
  exit sub   
end if
  
aExtProvider.AddEntityId "My source  1", "My identifier", "My value A" 
aExtProvider.AddEntityId "My source  2", "My identifier", "My value B"
aExtProvider.Save
  
set aEntityCollection = aExtProvider.GetEntityIdBySource ("My source  1")
  
aMessage = aMessage & vbNewLine & aExtProvider.FullName & " has " &_
  aEntityCollection.Count & " linked entities with the specified source" 
 
Profile.MsgBox (aMessage) 
Note:

In Profile Client v8 on User Interface Entity Source can be found in Organisation > External Providers > Basic > Registry.

Version information

Added in v7.8.0