Procedurally invoke workflows from folder

I am just messing around and trying to make a workflow that automatically initializes all workflows from a project folder like so:

However, every time I try to run it, I get the following error:

What can I do/change to make this work?

EDIT:
My Studio version was not high enough to support the dynamic invoking of workflow files. I am on 2023.4.4 and it requires 2023.10

Hi @phaynes

Try to use CurrentFile.FullName instead

Hi @phaynes

In the Invoke workflow file don’t get whole folder path just give
CurrentFile.ToString

Hope it helps!!

I tried that initially, same problem exactly.

Hi @phaynes

And what is the project compatibility?

Take a look here

Dynamic file path should work in Studio 23.10 or higher

Dynamic invoking is not supported currently. It’s in progress I believe. Please check this post: Invoke Workflow File activity is broken in the 2022.10 release - #15 by alexandru.

Edit: In case of a Windows process, that is. In Legacy it should work.

@phaynes

In windows and cross platform it is not supported…please check the second point…

Try with legacy if you need…

Cheers

Hi @Anil_G

It works in Windows as well in Studio Version 23.10 or higher

@rikulsilva

Thanks for pointing…

Yes if studio is 23.10+ then it supports

@phaynes can you confirm your studio version?

Did you try giving relative paths?..from the project folder it should be relative

Cheers

Where can I check my studio version?

@phaynes

Go to home…left side bottom you would see it

Cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.