Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Get Catalog Product Group Information for PRODUCT — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Get Catalog Product Group Information for PRODUCT

Received Response
8
Views
2
Comments
edited Dec 10, 2020 3:38PM in Sales 2 comments

Summary

Need to get catalog product group information for the products added into revenue lines

Content

Have revenue lines with type as Group & Product. Able to get catalog information for type Group revenue lines using ProductGroupDetail related collection of revenue line in groovy. But it won't return any information for Product revenue lines.

So how to get catalog product groups for the revenue lines which have PRODUCTS?

Version

20D

Code Snippet

def RevItems = ChildRevenue
	
	while(RevItems.hasNext())
	{
		println('******* Revenue Lines *********')
		def RevItemRec = RevItems.next()
		
		println('RevnId: '  +  RevItemRec.RevnId + ' ProductType: ' + RevItemRec.ProductType + ' InventoryItemId: '  +  RevItemRec.InventoryItemId  + ' Description: '  +  RevItemRec.Description  + ' ProdGroupId: '  +  RevItemRec.ProdGroupId  + ' ProdGroupName : '  +  RevItemRec.ProdGroupName + ' ResourcePartyId: '  +  RevItemRec.ResourcePartyId + ' PartyName2: '  +  RevItemRec.PartyName2 + ' OldOwnerId_c: ' + RevItemRec.OldOwnerId_c + ' Name1: '  +  RevItemRec.Name1 + ' PrTerritoryVersionId: ' + RevItemRec.PrTerritoryVersionId + ' TerrOwnerPartyId: '  + 
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!