mapCensusFields(censusId, groupCensusFieldMappingInputRepresentation)

Map fields on an existing group census to the corresponding quote or contract records without creating new records. Use this method to remap references from quote records to contract records, or from contract records back to quote records, for example after a quote is converted to a contract.

68.0

No

public static ConnectApi.GroupCensusFieldMappingRepresentation mapCensusFields(String censusId, ConnectApi.GroupCensusFieldMappingInputRepresentation groupCensusFieldMappingInputRepresentation)

censusId

  • Type: String
  • ID of the group census whose fields are mapped in place.

groupCensusFieldMappingInputRepresentation

Type: ConnectApi.GroupCensusFieldMappingRepresentation

Use this method to remap fields on an existing group census in place. Specify the census in censusId. All properties on the input representation are optional.

To process only the member plans that belong to a quote, set quoteId on memberPlanFilter. Set exactly one mapping direction on memberPlanReferenceMapping: use contractId to remap quote line items to contract group plans, or quoteId to remap contract group plans back to quote line items. Don’t set both.

The method runs asynchronously and doesn’t create new census records. Use the requestId in the response to track the job. Errors that occur while validating or scheduling the job are in the errors property.

This example remaps quote line item references to the matching contract group plans. The groupCensusFilters block is optional and limits processing to member plans of one quote. Set exactly one of contractId or quoteId on memberPlanReferenceMapping to choose the mapping direction.

This example uses the reverse direction. Set quoteId and omit contractId on memberPlanReferenceMapping to remap contract group plan references back to the matching quote line items.