Cannot find published Nintex Workflow - sharepoint

I published a Nintex Workflow to my site with NWAdmin:
NWAdmin.exe -o DeployWorkflow -workflowName "Approve Changes" -nwfFile ApproveChangesWF.nwf -siteUrl http://server/site -username username -password 1234 -domain xyz -overwrite
The result returned by the tool is:
Workflow Published.
Yet, I cannot find the workflow.
When i go to Site Actions > Nintex Workflow 2010 > Manage site workflows, I cannot see my workflow, that I just tried to add.
I'm also trying to get the workflow programatically, there are no workflows in the site.
SPWorkflowCollection workflowCollection = spWeb.Workflows;
workflowCollection.Count //returns 0
How can I find this workflow?

SharePoint Manager (for both SharePoint 2007 and 2010) is a tool that shows pretty everything there is to know about your SharePoint farm. If your workflow has indeed been deployed, you should be able to use this tool to find your workflow. Word of caution: this is a very powerful tool and every property for every object within your SharePoint farm is available to read, write, delete, etc...so, tread lightly.
http://spm.codeplex.com/

take a look at this. It could be that you have not activated the workflow. Only activated workflows can be associated with a list, library, content type, or site.
https://technet.microsoft.com/en-us/library/cc262348(v=office.14).aspx

Related

SharePoint Designer 2013 Workflow - remove characters from string variable

I'm creating a SharePoint 2013 Workflow in SharePoint Designer (using SharePoint Online).
How can I remove 2 last characters of a string workflow variable?
Is there a way to do it for example using actions?
Download SharePoint Designer Workflow String Actions WSP from here: http://spdwfstringactions.codeplex.com/
I saved the file in c:\deploy\
To deploy this solution, run SharePoint Management Shell as Administrator:
> Add-SPSolution c:\deploy\<solution file>.wsp
> Install-SPSolution -Identity SPWorkflowStringActions.wsp -GACDeployment
Make sure SPDWorkflowStringActions assembly is in C:\Windows\assembly.
Open SharePoint Designer. Now in workflow actions you will have a String Actions group that you can you for string manipulations. I hope it'll help!
If you are using SPD 2013, you can use the Utiliy Actions from the Action menu and select one of the method that fits your need.
I hope this help...

Create a 2010 workflow in Visual Studio 2012 for SharePoint Online

I have a solution in VS2012 with a SharePoint 2013 sandboxed project. I have created some custom workflows in 2013.
What I really need to do is to have an approval workflow to publish content, and send out an email when a new document is approved.
My first thought was to use the OOB approval 2010 workflow and use an event receiver on the list. When an item becomes approved, I would send out an email, but I'm unable to send emails programmatically in SharePoint online.
My second thought was to recreate the workflow in 2013, since I know I can send emails out that way, but it looks like the activities related to content approval were removed for 2013 workflows. I can try and do the approvals via rest calls, but my concern was that my workflow will fire every time the item in the list changes (even if it's not a publish), so I will have to check (in the workflow) if the item is being published or not. This will cause the workflow history for the items to become pretty useless as it will be filled with mostly white noise. Also, as far as I can tell, the checkbox when you create an association for "Start this workflow to approve publishing a major version of an item." does not apply to 2013 workflows.
I believe my best answer at this time would be to create a custom 2010 workflow, but I don't see how I can do that from inside VS2012. Can anyone help me (or maybe suggestion another alternative to achieving my goal?)
You can just turn on the old (2007) approval workflows. It sounds like those might work for you.
This article references how to do that, but in short it is under
Site Settings -> Site Collection Administration -> Site Collection Features -> enable the feature 'SharePoint 2007 Workflows'
Configuring SharePoint 2013 to use legacy workflows
I ended up using an OOB 2010 Workflow and modifying it with SharePoint Designer. Not really the solution I wanted (which was to package ALL of my customizations into a single WSP), but I've spent more time than I should have trying to get it to work.

Unable to find Approval Workflow in SharePoint 2010 Foundation

I'm new to SharePoint and I'd like to develop a Leave Form Application which utilizes the Approval Workflow, but I cannot find it on SharePoint Foundation 2010. How can I enable it? I have already tried many methods which I found on Google, but I still have no clue. Please guide me.
I found the answer; as I was using SharePoint Foundation, there are now out-of-the-box workflows provided except for the three-state Workflow.
From your document library:
Click library tab
Click library settings tile
Select Workflow Settings Link
Click Add a Workflow link
Approval should be in the Workflow Template list
If that doesn't work, check your site collection features and insure workflows is activated.
Simple approval workflow can be activate ddirectly from library settings:
Go to your list->library settings in the ribbon->versionning settings->allow approval content option to yes...

Allow Content Editor Web Part

Using SharePoint 2007, how could I allow the adding of CEWP's to the selection menu of an "Add a Web Part" dialog while in Edit Page mode? As of the moment, I can only add Announcements, Calendar, Links, Shared Documents, Tasks but I do not have the ability to add a CEWP. I have full access to the site.
At Site Settings > Site Features > Site Collection Features, you will want to have the Office SharePoint Server Publishing Infrastructure set to active.
Then, on the site, go to Site Settings > Site Features, and activate the Office SharePoint Server Publishing feature. You should then be able to add the content editor web part to the site.
Quite often I see SharePoint 2010 websites without the Content Editor webpart (MSContentEditor.dwp)
To enable this web part you need to activate the BasicWebParts feature on that site. I did not find an option to do this by the web site admin; you can enable the feature however by using SharePoint powershell.
Execute the following statement in the SharePoint Powershell and the Content editor web part will be added to your site
Enable-SPFeature 00bfea71-1c5e-4a24-b310-ba51c3eb7a57 -Url [SharepointSiteUrl]
To get the SharePoint site url just run
Get-SPSite
Gertjanvanmontfooort blog
I ran into a similar issue in SharePoint 2010, but I couldn't see other webparts due to my user permissions on the Site Collection. After getting "Restricted Read" rights on the Site Collection I could see all of the different WebParts.
Here is what helped me fo Sharepoint 2013 Online (Office365):
http://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_manage/problems-opening-a-site-from-sharepoint-designer/d1e71427-be3f-4ea7-be3b-8ba6b64af76c?page=2&auth=1
Basically, I had to set flag DenyAddAndCustomizePages to 0 using sharepoint power shell.
Moreover, from time to time I had to reset the flag to 0 as the online sharepoint seems to reset it to deafult 1.
After trying all the above, and other proposed solutions, my eventual success was through PowerShell script. Admittedly I did check that Custom Scripts was permitted and I did have to Activate the two "SharePoint Server Publishing" features described above, but as I am using a sub-site I presmume something else must have been messed up. In the end the following script allowed me to see the Content Editor option when adding a Web Part:
SET-SPOSite -DenyAddandCustomizePages 0
The full article can be found here:
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_manage/problems-opening-a-site-from-sharepoint-designer/d1e71427-be3f-4ea7-be3b-8ba6b64af76c?page=2&auth=1

Cannot associate a custom SharePoint Workflow with a Content Type in SharePoint Server 2010

To preface, I am working with SharePoint Server 2010 Beta 2, Visual Studio 2010 Ultimate RC.
I have built a custom Content Type based on the Item type with a few custom site columns. I also have built a custom Sequential Workflow using Visual Studio 2010. This is a relatively simple workflow that creates a task, waits for the task to complete, sets the workflow to complete. I am able to deploy this workflow to the site collection through VS 2010 deploy (which is pretty nice, btw). The problem I have is that when I try to associate the custom Content Type with my custom workflow, that workflow is not listed in the workflow templates to choose from. There are only the OOTB SharePoint workflows to choose. The kicker is that if I create a list and associate a workflow to that list, my custom workflow is in the workflow template list. This makes sense since at the start of building a custom workflow in VS2010, one of the first questions is whether the workflow is a Site or a List workflow and I selected List. Is the issue that List workflows are not allowed to be associated with Content Types?!?
Thanks.
In your workflow's elements.xml, look for AssociationCategories and change it to ContentType like so:
<AssociationCategories>ContentType</AssociationCategories>
Big thanks to my co-worker, Yves for pointing this out :)

Resources