Skip to content

Conversation

@chaitaliKundu
Copy link
Contributor

@chaitaliKundu chaitaliKundu commented Oct 18, 2025

PR Description:

Generate Pdf letter by HR Fulfiller and attached in HR case. To achieve this following the below steps.

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.

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).
Document Template -> All Document Templates - > New
As per the script, the PDF letter is generated and named using the HR case subject's name — for example:
"Letter: " + empName + ".pdf".

Functionality -
When a fulfiller changes the case state to "Work in Progress", the PDF letter is automatically generated and attached to the HR case record.

Business Rule Description -

Name - pdf Letter generation
Table - sn_hr_core_case
Condition - state is "work in Progress"
Update - Check the box
When -select after

This BR will prevent the duplicate letter generation for multiple updates in work in Progress state.

@ravichandra1998g ravichandra1998g self-assigned this Oct 18, 2025
@ravichandra1998g
Copy link
Contributor

Please add a description to this PR

@chaitaliKundu
Copy link
Contributor Author

Hi @ravichandra1998g ,

I have added in README.file , where you want me to add description ?

@chaitaliKundu chaitaliKundu changed the title Generate letter HR case Generate Pdf letter in HR case by Fulfiller. If no pdf letter attached in HR case it will create pdf letter. Oct 18, 2025
@chaitaliKundu
Copy link
Contributor Author

Could you please check @ravichandra1998g ?

@ravichandra1998g
Copy link
Contributor

Hello @chaitaliKundu
The PR title is fine, I'm referring to the PR Description.

@chaitaliKundu
Copy link
Contributor Author

Hi @ravichandra1998g - Could you please check now ?

Copy link
Contributor

@ravichandra1998g ravichandra1998g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me
Thank you!

@ravichandra1998g ravichandra1998g merged commit 35372f3 into ServiceNowDevProgram:main Oct 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants