Skip to main content

Simple Notification App [Param]

Summary​

This script is designed to deliver a one-time, customized message to the partner, featuring your company's branding through an optional image URL. For branding purposes, using a PNG or JPEG image URL is recommended, though not mandatory. Once executed, the script will display the message on the logged-in user's screen within one minute.

Sample Run​

Example 1​

Using custom value for each parameter.

  • Message: Hello there, it''s time to leave for the day. Good night!
  • ImageUrl: https://contentrepo.net/repo/share/logo.png
  • Email: ram.kishor@provaltech.com
  • Phone: 1234567891

Image1

Notification:

Image2

Example 2​

Using default values for non-mandatory parameters.

  • Message: Hello there, it''s time to leave for the day. Good night!
  • ImageUrl: ' '
  • Email: ' '
  • Phone: ' '

Image3

Notification:

Image4

Example 3​

Using custom value for each parameter.

  • Message: It''s not just a secret mission—it''s a fashion emergency! Bond and I are armed with suspicious sunglasses, maximum sparkle, and a missile that might be a hairdryer. If we don''t save the world, we''ll at least confuse the villains with our fabulousness and questionable accessories!
  • ImageUrl: https://labtech.provaltech.com/labtech/transfer/images/alogo.jpg
  • Email: ram.kishor@provaltech.com
  • Phone: 1234567890

Image14

Notification:

Image15

Dependencies​

SimpleNotification

User Parameters​

NameExampleRequiredDescription
MessageThis is a test messageTrueThe message is displayed to the end user. (Maximum 888 characters).
Replace single quotes with two single quotes.
Incorrect: it's
Correct: it''s
ImageURLhttp://p.favim.com/orig/2018/08/24/cute-beautiful-couple-avatar-Favim.com-6224738.jpgFalseThe URL for the image to display instead of the default.
Emailsomeone@testing.comFalseThe support e-mail address is displayed to the user.
Phone000-000-0000FalseThe support phone number is displayed to the user.

Task Setup Path​

  • Tasks Path: AUTOMATION ➞ Tasks
  • Task Type: Script Editor

Task Creation​

Description​

  • Name: Simple Notification App [Param]

  • Description:

    This script is designed to send a one-time customized message to the partner with the company's branding using the image URL option.
    It is required to use the PNG or JPEG image URL for it to work.

    Note: This script will trigger the message within a minute to the logged-in user screen once the script runs.
  • Category: Maintenance

Image5

Parameters​

Parameter NameRequired FieldParameter TypeDefault Value
MessageEnabledText StringDisabled
ImageUrlDisabledText StringDisabled
EmailDisabledText StringDisabled
PhoneDisabledText StringDisabled

Message:
Image6

ImageUrl:
Image7

Email:
Image8

Phone:
Image9

Parameters Section​

Image10

Script Editor​

Step 1: Row ➞ PowerShell script​

  • Use Generative AI Assist for script creation: False
  • Expected time of script execution in seconds: 300
  • Continue on Failure: False
  • Run as: System
  • Operating System: Windows
  • PowerShell Script Editor:

PowerShell Script

Image11

Step 2: Row ➞ Script Log​

  • Script Log Message: %Output%
  • Operating System: Windows

Image12

Completed Task​

Image13

Output​

  • Script Log
  • Popup Message on User's desktop

Changelog​

2026-03-10​

  • Implemented dynamic UI resizing for the notification prompt based on the length of the incoming message.
  • Added three responsive layout tiers: Small (less than equal 300 characters), Medium (between 301-500 characters), and Large (greater than 500 characters).
  • Established a maximum character limit of 888 characters for the Large layout; exceeding text will not be displayed.

2025-08-29​

  • Updated the task to use parameter instead of variable.

2025-04-10​

  • Initial version of the document