Skip to Main Content

Check Authorizations

When copying Apex objects (like pages) between applications, you may end up with invalid references to Authorization Schemes, for pages, buttons, processes, etc.
In those cases, in the Designer you see something like this under Security: Authorization Scheme: !66636695904232337 (invalid).

Finding all these invalid references manually is quite a job. You would expect the Advisor to include a check like this, but alas.
So I created a view (ted_p1132_v) to find them for me - see the code below.

I have also included a view (ted_p1132_pre_v) to find all Apex views that contain an authorization_scheme_id column, to build the actual view with. Some manual editing is required there.
The number of views that contain an authorization_scheme_id column usually increases with every Apex version, so make sure to keep this up to date - and if you are using an older Apex version, removed any Apex views that are not present (yet).

Code

View

View
Name
DDL

View

View
Name
DDL