Is there a way to create new DataType in BPMs for Variables?

I have a linq query that sets a list variable to a nice ordered list. Is it possible to set a global bpm variable to it, instead of having to write the same query out in 2 places?

Not that I know of, but User Codes are great for stuff like this, although it wouldn’t have a fancy BPM type.

Thanks, however for this purpose I’m querying an OrderAlloc dataset .ToList(), but I love those user codes!

Its no big deal, this is all just for polish, easier readability etc.

Oh gotcha, makes sense!

I wonder if you can just assign it to “DataSet” using expression and use that?

// going to assume this will be just null and not work, but perhaps something similar to it. I am sure there are posts out there to Conv List to DataSet
myvar = (DataSet)(new List<string>(){ "a", "b"}).AsEnumerable();