Conversation
…ification or Script Action
…st. It normalizes the email input, extracts the domain portion, and compares it against approved domains. Returns detailed validation status, normalized email, extracted domain, and descriptive messages for workflow routing and user notifications.
|
✅ Valid PR for ActionPack Thank you for your contribution. This PR complies with the CONTRIBUTING.md. |
SapphicFire
left a comment
There was a problem hiding this comment.
Thanks for your submission. It appears that this pull request contains more files than described in the title. Please review and update the pull request to either remove the extra/unintended files or to update the description to be more comprehensive. Ensure your contributions are meaningful and adhere to the project’s standards. You can create a new branch on your forked repository to avoid accidental inclusions of new commits in the future.
Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one.
There was a problem hiding this comment.
This file is showing on your branch. Please sync your main branch, and consider creating a new branch to introduce only the domain action
Email Domain Validator Flow Action
ServiceNow Flow Action for validating email addresses against an approved domain allowlist.
Purpose
This Flow Action validates email domains in ServiceNow workflows, ensuring that only users
from approved organizations can access resources or complete processes. It provides detailed
validation results for workflow routing, user notifications, and audit logging.
Features
Inputs
|
email| String | Yes | Email address to validate (e.g.,john.doe@company.com) ||
allowed_domains| String | Yes | Comma-separated list of approved domains (e.g.,company.com, partner.org, trusted.net) |Outputs
|
isValid| Boolean | Whether email domain is approved (true/false) ||
statusCode| String | Machine-readable status:APPROVED,REJECTED, orERROR||
email| String | Normalized (lowercase, trimmed) email address ||
domain| String | Extracted domain from email ||
message| String | Human-readable validation result ||
errorMessage| String | Error details if validation fails ||
allowedDomainsCount| Number | Total count of allowed domains |