How to set values in when the record is in related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2024 04:21 AM
Hi,
In the below related list approvers tab is there. in that tab approver records are there so i need to set approved where requested is available.
I need to add test step for that so please guide which step i need use.
1. Related List
2. File value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2024 11:14 PM
Hi @NaveenKumarSN ,
use the run server side script in test steps.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 01:33 AM
(function executeRule(current, previous /*null when async*/) {
// Check if the state is "Requested"
if (current.state == 'requested') {
// Update the state to "Approved"
current.state = 'approved';
current.update();
}
})(current, previous);
Please check and confirm the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 01:37 AM
Hi @NaveenKumarSN Could you please explain your request more in detail ? Like the use Case or requirement ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 01:40 AM
Hi Wahid,
My requirement is i need to approve what ever the regards in available in Approvars related list.
Please refer above attached images