createNewGroup Method

Creates a new (Quote or Order)-group with or without the corresponding Group Quote or Group Order record.

parentIdRequiredOpportunity ID.
contextIdRequiredParent cart Id (Master/Enterprise Quote/Order Id)
groupNameRequiredName for the group.
groupDescriptionOptionalDescription of the group.
cartTypeOptional: Defaults to QuoteQuote or Order.
memberTypeOptional: Defaults to ServicePointCPQ Group Member Type Name. For example: ServicePoint.
isGroupAssociatedWithCartOptional: Defaults to trueTrue value will create the corresponding Group-Cart record as well.
groupIdGroup ID of the created record.
groupInfoAll details related to a group. This contains groupCart, parentId, contextId, groupCartId, and groupName. See sample output
messageIn case of any error.