This update includes several fixes related to On Save events.
It includes and replaces the following previous updates (now discontinued):

2.5.2.319 SP10-SetUserContextRegularly
2.5.2.319 SP10-Update-Asset-OU-from-Location

The current version does this (28-jul-2025):

-For Assets
    Set OU From Locations
    Set Assignee Organizational Context
    Create Lost Asset HD Tickets
     Auto Set Status From Query Rules

- For HelpDesk
    Fix Repair Tickets: set some special fields related to the asset and used in the ticket template for a repair. Ensure also the contact and location of the ticket are as expected.
    Fix Lost Tickets: same as above but for Lost tickets.
    Fix Tickets Location From Related Asset: Search any tickets that have a related asset and no location and set the location of the ticket to be the location of the asset.
    Update Related Asset For Resolved Tickets:  Search any repair tickets that have a related asset, and if the ticket is resolved, move the Status of the related asset to In Stock if no other repair tickets open.	


---------------------------------------------------------
To Install:

- Run the setup.exe of the setup folder.
- It copies the files to the folder:
	C:\Program Files (x86)\Vector\ConnectTools\OnSaveFixes\

- Run the Custom Setup with the key "OnSaveFixes":

This will create the scheduled task:
	VZ On Save Fixes

The task runs every 1 min and processes the assets modified in the last 5 minutes (the 2nd parameter)

No web views need to be regenerated.

- It deletes these older scheduled tasks that may exist:
"Set the User Context to Assets Regularly"
"Update Asset OU from Location"




