Skip to content

Commit 9169a95

Browse files
README.md
1 parent ce0dbee commit 9169a95

File tree

1 file changed

+21
-0
lines changed
  • Server-Side Components/Business Rules/Pdf Letter create

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#Contribution
2+
3+
The Business Rule is triggered after an update on the (HR case)"sn_hr_core_case" table, specifically when the case state is set to "Work in Progress". This rule generates a PDF letter based on the trigerred conditions.
4+
5+
Document Template created seperately. Document Template Name - PDF Letter Employee.The Document Template Sys ID is passed within the script, and the corresponding document template has been created separately (refer to the attached screenshot for reference).
6+
Document Template -> All Document Templates - > New
7+
As per the script, the PDF letter is generated and named using the HR case subject's name — for example:
8+
"Letter: " + empName + ".pdf".
9+
10+
Functionality -
11+
When a fulfiller changes the case state to "Work in Progress", the PDF letter is automatically generated and attached to the HR case record.
12+
13+
Business Rule Description -
14+
15+
Name - pdf Letter generation
16+
Table - sn_hr_core_case
17+
Condition - state is "work in Progress"
18+
Update - Check the box
19+
When -select after
20+
21+
This BR will prevent the duplicate letter generation for multiple updates in work in Progress state.

0 commit comments

Comments
 (0)