Retrieves the datapack type definition for a given datapack input.
The input can be:
An object with sobjectType and datapackType properties,
An object with keys defined by DatapackFields.dataPackType and DatapackFields.sobjectType,
Or a string representing the datapack type.
If the definition for the datapack type is an array, and an object type is provided,
it returns the definition matching the object's sObject type. If no object type is provided,
it returns the first definition in the array.
If the definition is not an array, it returns the definition directly.
Parameters
datapack: DatapackTypeRef
The datapack input, which can be a string or an object with datapack type and sObject type information.
Retrieves the datapack type definition for a given datapack input.
The input can be:
sobjectType
anddatapackType
properties,DatapackFields.dataPackType
andDatapackFields.sobjectType
,If the definition for the datapack type is an array, and an object type is provided, it returns the definition matching the object's sObject type. If no object type is provided, it returns the first definition in the array. If the definition is not an array, it returns the definition directly.