Triggering a BPM via schedule with UserCodeTypes

We had a consultant use UserCodeTypes to trigger BPMs to run. You cant schedule a BPM, but you can now schedule a function. While you can code pretty much anything you want into a function, it can be harder to troubleshoot than a BPM. So you can have the Function trigger a BPM by updating the UserCodeType table.

Edit - This is pretty dumb now though, best just to copy-paste the BPM into the function once it is working.

Why do you need to schedule a bpm in this way when functions are essentially bpms that can be scheduled?

4 Likes

Yeah what @tkoch said you are in 2021 just schedule a Function!

2 Likes

True and I initially tried that, but ran into issues with the widget designer available references / datasets/assemblies. Maybe I just need to turn more options on etc in the library configuration…

A prior consultant had used the UserCodeTypes to trigger some other stuff, and now I’m thinking that isn’t necessary anymore either…