getProfileObjectTypeTemplate method

Future<GetProfileObjectTypeTemplateResponse> getProfileObjectTypeTemplate({
  1. required String templateId,
})

Returns the template information for a specific object type.

A template is a predefined ProfileObjectType, such as “Salesforce-Account” or “Salesforce-Contact.” When a user sends a ProfileObject, using the PutProfileObject API, with an ObjectTypeName that matches one of the TemplateIds, it uses the mappings from the template.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter templateId : A unique identifier for the object template.

Implementation

Future<GetProfileObjectTypeTemplateResponse> getProfileObjectTypeTemplate({
  required String templateId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/templates/${Uri.encodeComponent(templateId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetProfileObjectTypeTemplateResponse.fromJson(response);
}