This function returns the entities of the external provider with the specified source.
object.GetEntityIdBySource(aSource)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISExternalProvider interface |
|
aSource |
In, Required | string |
The entity source |
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)
In Profile Client v8 on User Interface Entity Source can be found in
.