addToGroup Method

Adds a service point to a group.

Class 

Input Parameters 

ParameterRequiredDescription
parentIdRequiredOpportunity ID.
contextIdRequiredParent cart Id (Master/Enterprise Quote/Order Id)
groupIdRequiredGroup ID.
groupCartIdRequired if corresponding cart record is presentGroup Quote/Order Id.
groupJSONRequiredPass the IDs of member to add to the group.{"servicePoints":["a3R6g000000BAN3EAO", "a3R6g000000BAN4EAO"]}
filtersOptionalA SOQL condition added by the API to narrow query results. For custom CPQ Group Member Types in Custom Metadata, no context filter is applied automatically. You must include a filter (e.g., OpportunityId__c:0060b00000vGbYbAAK) to limit results to the relevant Quote, Opportunity, or Account; otherwise, all records will be returned.
cartTypeOptional: Defaults to QuoteQuote or Order
memberTypeOptional: Defaults to ServicePointCPQ Group Member Type Name. For example: ServicePoint

Output Parameters 

ParameterDescription
messageIn case of any error.

Example Input Data 

1{"groupId":"a4M0b000002CWMaEAO","groupCartId":"0Q00b000000znU2CAI","groupName":"South Group","parentId":"0060b00000vGbYbAAK","contextId":"0Q00b000000znTYCAY","groupJSON":{"servicePoints":["a3h0b00000CwSUFAA3","a3h0b00000CwSUGAA3"]},"memberType":"ServicePoint","OpportunityId\_\_c":"0060b00000vGbYbAAK","cartType":"Quote"}

Example Output Data 

1{"error":"OK"}