Skip to content

Conversation

@Soumyadeep10
Copy link
Contributor

This PR consists of a newly created Flow action whose details are given below:

A) Name: User Birthday Verification

B) Description:
This is a reusable Flow Action that checks whether today is a given user’s birthday and returns:

  • is_birthday → "true" or "false"
  • message → a message saying whether it's their birthday or not

( Note: This action compares the dates and gives you the result. It doesn't send the email itself. You can easily use it inside a Flow to send a greeting email only when is_birthday is "true".)

C) Pre-requisite:
The sys_user table may need creation of a custom field called Birth Date (u_brith_date) which stores all birth dates of users.

D) How it works:

  • Input: User sys id
  • Look Up Record → Fetches the user from sys_user by sys_id
  • Script →
  1. Reads birth date from u_birth_date 
    
  2. Extracts MM‑DD from both the user’s birth date and today’s date
    
  3. Compares both dates and sets outputs
    
  • Outputs:
    • is_birthday → "true" or "false"
    • message → e.g., “Today is Soumyadeep's birthday!”, “Today isn't Soumyadeep's birthday!”, or “Birth date not found”

E) Let's explain with some examples:

  1. Positive Scenario (Birthday is today)
  • Today: October 9, 2025
  • User’s u_birth_date: 1999-10-09
  • Action Output:
    "isBirthday": "true",
    "message": "Today is Soumyadeep's birthday!
  1. Negative Scenario (Birthday isn't today)
  • Today: October 9, 2025
  • User’s u_birth_date: 1999-10-07
  • Action Output:
    "isBirthday": "false",
    "message": "Today isn't Soumyadeep's birthday!
  1. Negative Scenario (Birth date not found)
  • Today: October 9, 2025
  • User’s u_birth_date: NA
  • Action Output:
    "isBirthday": "false",
    "message": "Birth date not found"

@github-actions
Copy link

github-actions bot commented Oct 9, 2025

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@Atul-LNG Atul-LNG self-assigned this Oct 9, 2025
@Atul-LNG Atul-LNG merged commit 2d94cb3 into ServiceNowDevProgram:main Oct 9, 2025
2 checks passed
@Atul-LNG
Copy link

Atul-LNG commented Oct 9, 2025

Thanks @Soumyadeep10 for participation.

@Soumyadeep10
Copy link
Contributor Author

Thank you @Atul-LNG !!

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