function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JaiJai 

Could you please help me the way of solution for this scenario.

Hello,

If the Asset status field equals "Inactive" and the "Inactive Reason" field equals "Missing/Lost Items", "Stolen Units" and "Trade-in" and a user tries to reactivate an Asset  by changing the status field from "Inactive" to "Instaled,", the system must display a sort of "Alert Box" with 'Yes' and 'No' Button, with the message "Do you want to create a support ticket to request the approval for the Asset reactivation"
1).If the user clicks on "Yes", the system must create a support ticket and send an approval message to the manager in charge whenever an inactive Stolen Unit is reactivated.
2).If the user clicks on "No", there is no action, leaving the asset record with no changes.

Thanks!!
Bryan Leaman 6Bryan Leaman 6
There is no way to create a custom interaction from a standard record edit page (if that's what you're using to edit the Asset record).
You could hire a developer to create a custom component (or visualforce page) to present the status and inactive reason fields, which could then examine the contents of the fields before trying to issue an update and present the dialog as described. Either way, you probably need a validation rule to simply prevent the update from a list view or report or other means of updating the status.

Alternatively, you could simply create the validation rule to prevent the update and in the error message indicate the steps they need to take to accomplish the update, like entering a support ticket and submitting it for approval. That might be handled with a salesforce approval process or by some other means. You could possibly create a custom lightning action to create the ticket right from the Asset. There are a lot of details missing from your description that would help design an appropriate solution.