Add Approve and Reject button on approval table which are visible on workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi,
We have workspace where users are able to approve the request from sysapproval_approver table but there are no Approve and Reject button from workspace I have tried to add custom once but button is not getting visible on workspace.
Please let me know if something is missing.
Regards,
Prudhvi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi ,
Yes I have tried creating Declearative form action but still button is not visible.
Regards,
Prudhvi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
hi @Prudhvi Raj Y ,
you can check approve or reject action is active or not .
or can create new one , refer this
https://youtu.be/Nk7iHn38AD0?si=o8296l_zZf4pC_kJ
If you found my solution helpful, please mark it as Helpful and Accept Solution.
thanks ,
tejas😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
If you need that customization , you have to use Declarative Actions are the recommended way to create buttons and actions in ServiceNow Configurable Workspaces.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Yes, this can be done using Declarative Actions in Configurable Workspace. Try these steps:
Create two Form Declarative Actions on sysapproval_approver: Approve and Reject.
Use this visibility condition:
current.state == 'requested' &&
(gs.hasRole('approval_admin') ||
new global.ApprovalDelegationUtil().isMyApproval(current))- Approve script:
current.state = 'approved'; current.update(); new global.ApprovalUserFeedback().approved(current);
- Reject script:
current.state = 'rejected'; current.update(); new global.ApprovalUserFeedback().rejected(current);
- Create corresponding records in:
- sys_ux_form_action
- sys_ux_form_action_layout_item
Add both layout items to the Form Action Layout used by your Workspace.
I verified in my instance, this should work
Thank you,
Vikram Karety,
Octigo Solutions INC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
I followed the same steps but still I'm not able to see the button the form. Do I need to create the UI action as well apart from above steps?
Regards,
Prudhvi