Dear All,
Is it possible to set up a VAF script to run at every certain time a day in the background? If so, which method should be appropriate for it?
Thanks.
In addition to the link above, I would strongly recommend the VAF Extensions approach. There's lots of guidance on the readme: VAF.Extensions.Community/MFiles.VAF.Extensions at master · M-Files/VAF.Extensions.Community (github.com)
In addition to the link above, I would strongly recommend the VAF Extensions approach. There's lots of guidance on the readme: VAF.Extensions.Community/MFiles.VAF.Extensions at master · M-Files/VAF.Extensions.Community (github.com)
The extensions stuff just gives you easy configuration of the recurrence. The actual execution is run via a task processor.
The task processor method has a "job" parameter. This has a vault reference which, depending on the transaction mode of the processor, will either be a transactional or non-transactional vault reference.
The "job" is analogous to the environment in this context. It contains the appropriate vault reference, etc.
Anything else is typically loaded from the vault at the point of processing, through searching or something.
Β© 2025 M-Files, All Rights Reserved.