Skip to content

Instantly share code, notes, and snippets.

View mlisowsk's full-sized avatar

mlisowsk

View GitHub Profile
@mlisowsk
mlisowsk / Set date to today - workflow action script.vbs
Created September 6, 2024 09:55
M-Files workflow action script: set a Date property to today's date
'Set an M-Files Date property to today
'Property ID 1187 = the date property you want to change (please change ID below)
'Original author: sweise
'Source: https://community.m-files.com/forums-1552881334/f/m-files-api/5306/vbscript-set-date-property-to-current-date
Dim oPropVal : Set oPropVal = CreateObject("MFilesAPI.PropertyValue")
oPropVal.PropertyDef = 1187
oPropVal.TypedValue.SetValue MFDatatypeDate, DateSerial(Year(Now), Month(Now), Day(Now))
Vault.ObjectPropertyOperations.SetProperty ObjVer, oPropVal
@mlisowsk
mlisowsk / free_email_provider_domains.txt
Last active January 25, 2023 16:36 — forked from okutbay/free_email_provider_domains.txt
Most complete list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created. I also use this list in my free link shortener service https://www.cut.lu and some day i want to release an API for rela…
This file has been truncated, but you can view the full file.
0-00.usa.cc
0-180.com
0-30-24.com
0-420.com
0-900.com
0-aa.com
0-mail.com
0-z.xyz
0.pl
00.pe
@mlisowsk
mlisowsk / MarkAssignmentComplete.vbs
Created November 2, 2022 18:05
M-Files Workflow state action script: Mark assignment complete for all users
'Workflow state action for M-Files assignments
'Assumes current object is an assignment
'Marks complete the assignment for every user in AssignedTo property
'Note: M-Files history will show (M-Files Server) as the user who completed this assignment
Option Explicit
'Get Assigned To PropertyValue
dim pvAssignedTo: set pvAssignedTo = PropertyValues.SearchForProperty(MFBuiltInPropertyDefAssignedTo)
'Something is selected in Assigned To
@mlisowsk
mlisowsk / getversion.ps1
Created October 31, 2022 16:56
Get version string from M-Files addon appdef.xml file PowerShell script
$addon = (Select-Xml -Path .\appdef.xml -XPath '/application/version' | Select-Object -ExpandProperty Node).InnerText
Write-Host $addon