The following screenshot shows the folder structure of my project.
I’m making a reusable click event where I include:
Check if the element exists
Click on the element
Check if the corresponding page loads
The call route is:
Call Click-Interacciones.xaml (where you get the name and relative path of the workflow) → Invoke EventClick.xaml → Invoke CheckStateAfter.xaml (which is located within the folder with the same name of the main Click-Interacciones workflow).
If the main workflow is Click-Polizas.xaml, the relative path and name of the workflow will change accordingly.
If I do not do it dynamically and the folder structure is changed in the future, I must update it in each workflow.
I have seen that it could be obtained with the Alphabet package but now it is not compatible with Windows projects.
I have also seen that with get current job info you can obtain the name of the workflow but not the relative path.
The code in the above topic is for custom activity. Basically it’s necessary to create it using Visual Studio, I think. Unfortunately, as CurrentJobInfo returns only workflow name yet, we need to wait for it until officially support it.
Thanks for the reply. I will try to do my own activity. Once the steps in the post that you indicate have been completed, would it be just copy and paste the code?
A shame, I thought it could be solved in a simpler way.
In the activity builder yes you can use the code as is…just make sure all dependencies mentioned are imported…all the details are there in the activity builder pge