Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
postInsuranceSyncCensusSummary(groupCensusId)
API Version
63.0
Requires Chatter
No
Signature
public static ConnectApi.InsuranceCensusSummarySyncOutputRepresentation postInsuranceSyncCensusSummary(ConnectApi.InsuranceCensusSummarySyncInputRepresentation censusSummarySyncInputParam, String groupCensusId)
Parameters
- groupCensusId
- Type: String
- ID of the group census to synchronize.
Return Value
Type: ConnectApi.InsuranceCensusSummarySyncOutputRepresentation
Example
Here's an example of how to invoke the Insurance Sync Census Summary API from Apex code.
1// Census Summary Sync via Connect API (simple version)
2
3// 1) Create the top-level input (no fields required)
4ConnectApi.InsuranceCensusSummarySyncInputRepresentation input =
5 new ConnectApi.InsuranceCensusSummarySyncInputRepresentation();
6
7// 2) Execute the POST API with the Group Census Id
8String groupCensusId = '0rfxx000000000RAAQ';
9
10try {
11 ConnectApi.InsuranceCensusSummarySyncOutputRepresentation result =
12 ConnectApi.InsuranceGroupBenefitsFamily.postInsuranceSyncCensusSummary(input, groupCensusId);
13
14 System.debug('Census Summary Sync result: ' + JSON.serializePretty(result));
15} catch (Exception e) {
16 System.debug('Error during Census Summary Sync: ' + e.getMessage());
17}