Home > Forum > Actions > Ability to use an action (e.g. start a subflow) from the top menu button without edit permissions

Ability to use an action (e.g. start a subflow) from the top menu button without edit permissions
0

Business example:
We have a process that many people can access, but only the administrator and the creator can edit it.
Other users would like to clone existing documents to save time, but they can only do this for documents they are the author of.

Is there any reasonable workaround to let users without edit rights use such an action?

P.S. I have to use the SQL option because of position lists in the instance.

MVP
In reply to: Jacek Wojnar

Hi,
Perhaps using a hyperlink with the "Start element" function will be sufficient in your case?

Hi,
As far as I am aware, solution proposed by Jacek is currently the only one.

For cloning document's I'm already using exactly this solution, there is a 'Start element' hyperlink on the Menu Action bar, and on the new form I'm dynamically showing new paths on which there are actions responsible for setting all the fields on the form based on document marked in attribute 'previous document' (this value can be passed through start element hyperlink).

MVP
In reply to: Maksymilian Stachowiak

Hi,
As far as I am aware, solution proposed by Jacek is currently the only one.

For cloning document's I'm already using exactly this solution, there is a 'Start element' hyperlink on the Menu Action bar, and on the new form I'm dynamically showing new paths on which there are actions responsible for setting all the fields on the form based on document marked in attribute 'previous document' (this value can be passed through start element hyperlink).

Hi,

as far as I understand the description and the screenshot you already tested the Hyperlink option but switched to SQL Start because of populating item lists.

You could also achieve something similar by executing a path directly by using this parameter in the URL:
u/db/23/app/16/start/wf/14/dt/14/form/edit?PATH_ID=66

This way you would be able to do what you want, before the users sees the workflow.

Best regards,
Daniel

Maybe some hybrid solution?
You can use hyperlink to open a new document and change value of tech field "previous document" like Maks wrote. You wrote that you use start workflow by SQL because you have an item list on main instance.

After opening new document and dynamically showing elements on them you can initialize item list by the same parameter - 'previous document'. Think about the condition of this action but I think you can go with the hybrid solution without actin start workflow by SQL.

Hyperlink has one more advantage than start by SQL. If you start workflow from SQL, the workflow will be saved instantly in database and has WFD_ID and WFD_Sginature. If you use hyperlink you can only open form and until you click any button on form they won't be save in database.
It's very helpful when user refused from filling form.