- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2024 08:20 PM
Hey everyone, I'm currently using the ARA workspace and trying to locate where specific buttons are defined. I'm particularly interested in the buttons like 'Move to Residual Assessment','Move to Control Assessment' and 'Move to Inherent Assessment.' This setup seems to be part of a playbook experience embedded into the ARA workspace, but I could be totally wrong. Does anyone know exactly where I can find the configurations for these buttons? I'm trying to identify what events are triggered by these buttons for a specific use case I need to address. Any guidance would be greatly appreciated. Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 09:30 PM
hi @RC22 ,
This is a custom assessment component and there it cannot be customized like other OOB components.
The event actions are implemented using scripted rest apis and customization on what the events will do can be done by modifying the rest api.
To review different rest request resources available for this component, please follow the below provided action:
1. Go to All > Scripted Rest API
2. Search to API with name : riskasmntapi
3. Go to "Resources" related list. It will have a list of all the API implementations.
For your requirement, you will have to review "saveFactorResponses".
Regards,
Jai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 09:43 PM
Hi @RC22
These Events are triggered by "scripted rest apis". you can navigate as below to see the script:
- Navigate to All-->Scripted Rest APIs
- Search for the record -- "riskAsmntApi"
- go to related list and open the below record as highlighted in screenshot.
Happy Learning!
…………………………………………..
Mark it helpful 👍and Accept Solution ✅!! If this helps you to understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 09:58 PM
Thanks @jaikishan1 , this is really helpful. Just curious, do we have access to the OOB component where the code exists? I’d like to see how the code looks like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 09:30 PM
hi @RC22 ,
This is a custom assessment component and there it cannot be customized like other OOB components.
The event actions are implemented using scripted rest apis and customization on what the events will do can be done by modifying the rest api.
To review different rest request resources available for this component, please follow the below provided action:
1. Go to All > Scripted Rest API
2. Search to API with name : riskasmntapi
3. Go to "Resources" related list. It will have a list of all the API implementations.
For your requirement, you will have to review "saveFactorResponses".
Regards,
Jai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 09:58 PM
Thanks @jaikishan1 , this is really helpful. Just curious, do we have access to the OOB component where the code exists? I’d like to see how the code looks like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 12:08 AM
Hi @RC22 ,
The source code for the component would not be available to the users.
But you can always review the documentations on custom component creation on the developer portal to understand how custom component works.
Regards,
Jai
Regards,
Jai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 06:29 AM - edited 08-06-2024 06:34 AM
Thanks @jaikishan1, I'm also trying to customize Workspace. Creating component from scratch will take time, it would have been very helpful if ServiceNow shared the code with us.
Is there any tech documentation how the custom component was created?