I know this is an old thread, but I can't get this solution to work for me for a site workflow in Office 365.
My goal is simply to put a link or button on a SharePoint page that starts a site workflow; anyone have any tips or assistance? I've been searching on the community but I'm mostly finding either 2013 solutions (that won't work for me) or List solutions I've not been able to tailor.
Hey Andrew, sorry if I wasn't clear, I'm trying to do this for a site workflow. Are you suggesting that I basically use a NWC workflow to do that, and have the button start the NWC Workflow?
Appreciate any assistance.
Sure, you will need SharePoint Designer to add the custom button. There you can create Custom Actions for any list/library. In the custom action you want the "Navigate to URL" option. Here you will put the URL to start either a list workflow or a site workflow. We've used both. The site workflow, when users don't have edit permission to a list/lib, which then calls the list/lib workflow for them.
The URL is structured as follows:
You will need an image to place in the ribbon that gets added to the custom action in two sizes; 32x32 and 16x16. These can be saved to one of the site asset libraries if you like.
Currently, I am using the Nintex forms. But, how will I be able to use that workflow to create a new record in the current list and copy selective data from the record (FORM) currently being viewed. That is part of my issue.
Thanks for the time and reply.
Hope this makes sense.
Kevin, you could do this in an alternate method. By simply creating a Choice field in the list of type radio button. Then select to display as a button in control settings. Then in the item workflow that starts on new or modified, it can check for a value in the new Choice field, when it is there it can then create a new item in any list with any of the available data in the form (current item). Or calculate to new values.
No Andrew. Nothing has helped me. However, when the script posted above by you was working pretty well with SPD workflows, but not with Nintex. I also posted my SPD working script in another similar question.