Community
Showing results for 
Search instead for 
Do you mean 
Reply

SDK feature request, expose Parent Entity GUID field descriptors

Bronze Super Contributor
Posts: 1,231
Country: USA

SDK feature request, expose Parent Entity GUID field descriptors

It would be helpfull to expose the ID (GUID) field as a field descriptors. This way we could create a lookup using the criteria rather then getContactsByID

 

Current code:

'---------------------------------------------

' Get the contact List

'---------------------------------------------

cList = HostFramework.Contacts.GetContactsByID(Nothing, ContactIDs)

 

New sudo code:

'----------------------------------------------

' Create the criteria

'----------------------------------------------

 Dim cCriteriaColumn As Act.Framework.Lookups.CriteriaColumn

Dim lCriteria() As Act.Framework.Lookups.Criteria

Dim ContactGUIDFielDescriptor As Act.Framework.Contacts.ContactFieldDescriptorContactGUIDFielDescriptor = Durkin.Common.Classes.Contacts.GetContactFieldDescriptorByANY(HostFramework, "ContactID")

cCriteriaColumn = HostFramework.Lookups.GetCriteriaColumn(ContactGUIDFielDescriptor)

lCriteria = New Act.Framework.Lookups.Criteria() {New Act.Framework.Lookups.Criteria(Act.Framework.Lookups.LogicalOperator.End, 1, 0, cCriteriaColumn, Act.Framework.Lookups.OperatorEnum.OnOrAfter, ContactIDs)}

'---------------------------------------

 

' Create the lookup

'---------------------------------------

Dim cLookup As Act.Framework.Lookups.ContactLookup = HostFramework.Lookups.LookupContactsReplace(lCriteria, True, True)

 

This way end-user could perform a "Narrow" on the current lookup. Currently using GetContactsByID the only option is "Replace". Also helpful on other parent entities.

 

Thanks

-- Jim Durkin