What is purpose of GlideTransaction isVirtual function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2019 11:43 PM
Hi
I have a requirement where is need to do validations for non interactive user accounts
I am achieving this using gs.getSession().isInteractive();
One additional test i need to do is to validate whether the transaction is an external or system generated (e.g. through workflow or some job or auto activity)
I was wondering if i can use
var trans = GlideTransaction.get();
trans.isVirtual() function
Any thoughts.. welcome
Regards
Hetal
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2019 01:11 AM
Hi Hetal,
Unfortunately, there is no API reference available for GlideTransaction. Its a java class which you cannot access it directly.
If you are already using isInteractive() and if it returns true, then it would mean that its a manual update. If it returns false, then it an update from the script or from an external source.
Mark the comment as a correct answer and helpful if this answers your question.