- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 03:14 AM - edited 02-29-2024 03:15 AM
I have created a number field 'Count' on the HR Case form. The count field value will be 1 when the HR case is rejected for the first time after case was moved to Awaiting acceptance step. The count field value will be 2 when the HR case is rejected for the second time after case was moved to Awaiting acceptance step and so on.
Whenever HR Case is rejected, we get a pop up where we need to mention the rejection reason and this reason is populated on the work notes/additional comment.
I have created a string field 'Reject Reason' on the HR Case form. When the HR Case will be rejected for the 2nd time or 3rd time and so on but not for the first time, I have to populate the rejection reason for the 2nd rejection or 3rd rejection and so on from the work notes/additional comment to the string field 'Reject Reason' created by me.
Can anyone please help me out ASAP as it is very urgent.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 04:44 AM
Hi @abhisek
Try with the below-mentioned script
Please mark this as helpful and accept it as a solution if this works for you.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 03:42 AM
Hi @abhisek
You can add a BR and put the condition as Count field value is greater than 1 and state changes to Reject and worknotes changes.
Then get the value from the worknotes using getJournalField(-1) and put it in the Reject Reason field.
Please mark this as helpful and accept it as a solution if this works for you.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 04:33 AM
Hi @_Gaurav
Thanks for your reply.
I have written the below script but not working. Could you please help me out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 04:44 AM
Hi @abhisek
Try with the below-mentioned script
Please mark this as helpful and accept it as a solution if this works for you.
Thanks!