Unable to add a declarative action (Action bar)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Team!
I'm unable to add a declarative form action for Opportunity (sn_opty_mgmt_core_opportunity) despite following steps from
https://www.servicenow.com/community/developer-blog/declarative-actions-in-servicenow-the-complete-g...
and
https://www.servicenow.com/community/next-experience-articles/introduction-to-declarative-actions/ta...
Initial displayable actions:
1. Create DA itself:
2. "Test DA" UX Form Actions Layout Item was auto-created, clicking New...
3. ... to create a new UX Form Action Layout for it. Submit.
4. The Layout now looks like this:
5. Refresh the workspace page and no Test DA button appeared
"Test DA" UX Form Action was auto-created and no special conditions
Please help. What did I wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
These steps from AI helped. Missed Action Configuration AND actionConfigId
Step 1: Create Your Own Action Configuration (If one doesn't exist)
Since we can't find the config, let's create a specific one for your app so we know exactly what we are working with.
Navigate to UX Action Configurations (sys_ux_action_config.list).
Click New.
Name: Keystone Action Config (or similar).
Save (Right-click header > Save).
Add your Button:
Scroll to the Declarative Actions Related List.
Click New.
Action: Select your "Test DA" button.
Save.
Copy the Sys_ID:
Right-click the header of your new "Keystone Action Config" record.
Select Copy sys_id. (Keep this for Step 2).
Step 2: Link It via Page Properties
Now we tell your Workspace to use this new configuration using a property.
Navigate back to UX Page Registries (sys_ux_page_registry.list).
Click the Title "Keystone Quote Management" (First column in your screenshot image_be66cb.png).
Do NOT click the "Admin panel" link this time.
Scroll down to the Related Lists at the bottom.
Look for the tab "UX Page Properties".
Note: If you don't see this tab, right-click the related lists header > Configure > Related Lists and add "UX Page Properties".
Check if a property named actionConfigId already exists.
If Yes: Open it and paste your Sys_ID into the Value field.
If No: Click New in that list.
Name: actionConfigId (Case sensitive!)
Type: string
Value: Paste the Sys_ID you copied in Step 1.
Submit.
