Is it, for example, possible to get information about Profile.ProfileApplicationVisibility
(like here)? Possible requirements are: Which fields are required or what is the default value of that field.
-
1May be this salesforce.stackexchange.com/a/114222/45062 and salesforce.stackexchange.com/a/231635/45062 would help– Nagendra SinghCommented Jan 9, 2021 at 20:22
1 Answer
If I understand you correctly, what you need is the Metadata API Developer Guide, specifically the Metadata Types section under Reference.
You'll find information about the type Profile.ProfileApplicationVisibility
on the page for the Profile
entity. It includes information about the fields on that type and what is required. Where defaults are present on non-required fields, they're also described in that documentation.
You can use the describeValueType()
and describeMetadata()
API calls to get metadata describe information.
-
Thank you. What I meant is there programmatically way (API) to get these information?– JulianCommented Jan 10, 2021 at 9:22
-
1
-
describeValueType()
helped me. It returned all requiredProfile
fields.– JulianCommented Jan 15, 2021 at 9:53 -
Update: It doesn't seem to work with all types. For example calling
describeValueType()
withPermissionSet
doesn't return all fields like documented.– JulianCommented Jan 28, 2021 at 12:38