Question
Auto-detect section page + recordId + schema name in Freedom UI and auto-add a button
11:59 Dec 05, 2025
Hi ,
I am working on a Freedom UI scenario where I need to perform an action on any record edit page (Contacts, Accounts, Leads, custom objects, etc.).
I need some guidance on how to achieve the following:
- Detect when a section record page is opened (Freedom UI)
- Automatically read the current page’s recordId and the entity schema name dynamically
- Automatically show a button in the Page Toolbar (without manually adding it on every section page)
-
When the user clicks the button, I just need to call a REST service that uses:
/0/rest/UsrMultiFileDownloadService/GetAttachmentsZip?schemaName=<Schema>&recordId=<Id>
- The requirement is that the user should not write any code and the button should auto-populate for all existing sections that have an attachment detail.
I explored Freedom UI page events, environment context, Remote Modules, and client modules, but I could not find a clear example that lets me get both recordId and schema name dynamically for ANY section (Contacts, Accounts, Leads, custom objects, etc.) or inject a toolbar button programmatically across all pages.
👉 Is there any recommended way in Freedom UI to:
- globally detect the current entity/page context,
- retrieve recordId + schema name,
- and auto-add a custom action/button?
Any examples, API references, or best practices would be very helpful.
Thanks in advance!
Like
0 comments