The ID or full name of the record type to add visibility for. If an ID is provided, it must start with '012' and will be resolved to its full name using the Salesforce Tooling API.
Optionalprofile: { id?: string; name?: string }An optional object containing the profile's ID or name. If not provided,
the method will use the default profile.
- id (optional): The ID of the profile.
- name (optional): The developer name of the profile.
A promise that resolves when the record type visibility has been successfully added.
Retrieves the profile information of the currently authenticated Salesforce user.
A promise that resolves to the SalesforceProfile object representing the current user's profile.
Retrieves a Salesforce profile by its developer name or ID. If no name or ID is provided, the current user's profile is returned.
OptionalprofileNameOrId: stringThe developer name or ID of the Salesforce profile to retrieve. If omitted, the current user's profile is returned.
A promise that resolves to a SalesforceProfile object representing the retrieved profile.
Privateget
Adds record type visibility to a specified Salesforce profile.
This method ensures that a given record type is visible to a specified profile. If the record type is identified by its ID, the method resolves its object type and developer name to construct the full record type name.