Community
Showing results for 
Search instead for 
Do you mean 
Reply

Bug GetOpportunitiesByGroup

Bronze Super Contributor
Posts: 1,231
Country: USA

Bug GetOpportunitiesByGroup

BUG:

GetOpportunitiesByGroup return nothing even when an opportunity is attached to the group.

 

ACTFramework.Opportunities.GetOpportunitiesByGroup(Me.HostApplication.ApplicationState.CurrentGroup.ID, True, Nothing, Nothing).Count()

 

-- Jim Durkin

 

Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: Bug GetOpportunitiesByGroup

Can the IFilterCriteria[] be a null? I seem to remember in some other parts of the Framework it has to have a value even if it's something silly like createDate>DateTime.MinValue...mind you I could be wrong.

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Bug GetOpportunitiesByGroup

IFilterCriteria does not make any difference

 

'-----------------------------------------------------------------
' Add a filter for inly uncleared OPPS
'-----------------------------------------------------------------

Dim FilterArray As ArrayList = New ArrayList
Dim aFilter(0) As IFilterCriteria
Dim StatusFieldDescriptor As Act.Framework.MutableEntities.MutableEntityFieldDescriptor = Nothing
StatusFieldDescriptor = Durkin.Common.Classes.Opportunities.GetOpportunityFieldDescriptorByANYMutable(Me.HostFramework, Act.Framework.Opportunities.StandardOpportunityField.Status.ToString())
Dim aOpen As ComparisonFilterCriteria = New ComparisonFilterCriteria(StatusFieldDescriptor, ComparisonFilterCriteria.Operation.Equals, 0)
FilterArray.Add(aOpen)
FilterArray.CopyTo(aFilter)
count = Me.HostFramework.Opportunities.GetOpportunitiesByGroup(Me.HostApplication.ApplicationState.CurrentGroup.ID, True, Nothing, aFilter).Count()

 

 

-- Jim Durkin