UI Builder Action Assignment - Can't Submit Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 03:04 AM
Hi, I'm trying to create an action assignment in UI Builder for a configurable workspace. It should be an email client for users to access in the action bar on a record.
However, when I go to create it, I get the error message "The Following mandatory fields are not filled in: Action Model". This field isn't even on the form view, so I can't amend it.
Even if I use SNUtils to show this hidden field, there's no options to choose from. I'm stuck as it won't let me progress at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 03:54 AM
This could be the potential cause of Field being removed from the form view.
Please add it to the view by configuring the Forrm. Else try removing the manatory logic where it has benn applied(only to the current view). There will be some global client side logic running for the same. Make it to view specific
Please mark it Correct and Hit Like if you find this helpful!
Regards,
Karthiga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 04:27 AM
@Karthiga S As far as I can tell everything is OOB so there is no possibility of it being removed from the form view. I'd expect this would just work OOB. I've checked the table and no changes have been made.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 07:11 AM
Yeah, I would be hesitant to just start changing OOTB.
My recommendation would be to look into what is required for that field to display on the form. Then figure out if maybe there is a dependent field that needs to be set first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2024 04:04 AM - edited 04-12-2024 04:06 AM
Hi @Harrison Wingf1,
I just faced a similar situation, where I just went to the URL
<instance-name>.service-now.com/sys_declarative_action_assignment.do
to manually create a new Action Assignment record. But as your rightly said, there is no way so specify the Action Model in the form.
Therefore, if your approach was similar, I'd suggest, that you create the new Action Assignment record via the dedicated modules. E.g. for the Related List Action Model , the module is located at All > Workspace Experience > Actions & Components > Related List Actions.
If you look into the configuration of this module, you can see, that it points to
<instance-name>.service-now.com/sys_declarative_action_assignment.do?sysparm_fixed_query=model%3Dd91731a9534723003eddddeeff7b121c&sysparm_view=list_action.
I.e. the Action Model seems to be implicitly set via the URL parameters (if you look up the record in the Action Model table sys_declarative_action_model_definition via the sys ID d91731a9534723003eddddeeff7b121c, you'll see that it is indeed the recorde fot that Related List Action Model).
In your situation, the corresponding module should be located at All > Now Experience Framework > Actions and Events > Action Bar Declarative Actions.
As per the URL
<instance-name>.service-now.com/sys_declarative_action_assignment.do?sysparm_fixed_query=model%3D360935e9534723003eddddeeff7b127d^form_position=action_bar&sysparm_view=form_action,
this module is using the Form Action Model.
Hope this helps you.
Kind regrads,
Carl