-
Notifications
You must be signed in to change notification settings - Fork 908
Currency conversion and Masking of data in description #2223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Create Mask Sensitive Data in Descriptions
…escriptions to Server-Side Components/Business Rules/Mask Sensitive Data in Descript/readme.md Mask Sensitive Data in Descriptions
Automatically replaces sensitive patterns (like credit card numbers) with masked text
Automatically replaces sensitive patterns (like credit card numbers) with masked text
Mask Sensitive Data in Description Field
…escript directory
Currency conversion
This script automates the conversion of an annual budget value from a selected currency to USD using exchange rates stored in the fx_rate table. It performs the following steps: Extracts the currency code from the budget_currency field. Validates the input amount and currency. Checks if the currency is already USD; if so, it directly stores the amount. Queries the fx_currency table to confirm the currency exists. Retrieves the most recent exchange rate for both the selected currency and USD. Calculates the converted amount using the formula: USD Amount = (Original Amount / Source Rate) × USD Rate Stores the result in the u_annual_budget_usd field. Includes error handling for missing or invalid data.
|
Thank you for your contribution. However, it doesn't comply with our contributing guidelines. As a reminder, the general requirements (as outlined in the CONTRIBUTING.md file) are the following: follow the folder+subfolder guidelines and include a README.md file explaining what the code snippet does. Validation errors: Review your contribution against the guidelines and make the necessary adjustments. Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one. |
PR Description:
Currency conversion and Masking of data in description
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions