Community
Showing results for 
Search instead for 
Do you mean 
Reply

OpporunityProduct Fields

Copper Contributor
Posts: 21
Country: United Kingdom

OpporunityProduct Fields

I'm a little confused about the OpportunityProduct entity. Please see the two samples below. Please could someone explain why the fields returned are different? Thanks.

 

SAMPLE 1

Here I want to get all of the field definitions for the OpportunityProduct. There is an item “Item #” returned.

 

Dim Fields() As DBFieldDescriptor

Fields = _App_ACT.Instance.ActFramework.Products.OpportunityProductManager.GetFieldDescriptors

 

 

SAMPLE 2

Here I am trying to get the field data relating to an Opportunity and assumed that it would consist of the same fields (as returned by the above). Here there is no field called “Item #” but there is a field called “ItemNumber”.

 

Dim OppProductList As Act.Framework.CustomEntities.CustomEntityList(Of Act.Framework.Opportunities.OpportunityProduct)

OppProductList = _App_ACT.Instance.ApplicationState.CurrentOpportunity.GetProducts(Nothing)

Copper Super Contributor
Posts: 478
Country: Australia

Re: OpporunityProduct Fields

My understanding (which is limited) is the Opportunitites is a primary table now in Act where as the Product table is a subEntity, and i think your sample code is around the wrong way

Jason Dawson Financial Planning
Brisbane | Australia - JDFP Home Page

Act Ver - Act! Premium Version 17.1.169.0, Hot Fix 3
OS - Windows 7 (stand alone machine)
MS Office - Enterprise 2007
Phone - Samsung Galaxy s6