Tag Info

New answers tagged

2

You would have to either start the workflow programmatically, or find a way for workflows to be started by the System Account. When changes are made programmatically, the associated modified by is a System Account. SP has a built in feature which does not start workflows when a change is made by the system account (which is good in ways, but can be ...


0

For your custom workflows you can add OnError activity and handle the notifications, for a list workflows, you will have to comeup with a solution that iterates with the workflow instances and check the status for you. Think about PowerShell if you have access to the server.


0

I am trying hard to understand what exactly is the problem here - do you not see the option of creating a SharePoint 2013 Workflow in SharePoint Designer? If so, did you make sure to register your site collection using the Register-SPWorkflowService command? More info


0

You can easily copy WF to another site, so back it up that way. Select wf, copy, go to another site to Workflows, click paste. Then all you need to change (in case of list WF) is the associated list ID in .xml.wfconfig.xml file. source: http://mikessharepoint.wordpress.com/2013/01/17/moving-sharepoint-designer-workflows/


0

I would use (timer) job which would run (every day) only on specific date (5 days before month ends) check for running workflows in specific list/library/site. If any WFis running -> get WF item and send email to approver.


1

A better way to set the configuration value via powershell (s. http://msdn.microsoft.com/en-us/library/jj680843(v=azure.10).aspx). To set the timeout to 2 min open Worflow Manager Powershell and use Set-WFServiceConfiguration -ServiceUri *YourURI* -Name WorkflowServiceMaxHttpResponseTime -Value 00:02:00 See the Warning on MSDN Page about possible ...


1

You may follow this link which has clear explanation of how create to create a timer job. It may help you. http://www.codeproject.com/Articles/403323/SharePoint-Create-Custom-Timer-Jobs


1

Is this required by workflow process or are you trying to use workflow just to contact DB and update specific list item in the list? If yes - it might be work looking into writing a custom Timer Job. If you have to do this in workflow - I guess you could build a custom activity and make it do all the required calls from there - someone who is workflow ...


0

Another reason this Started "HTTP Unauthorized to http://..." error can exist is that you do not have "User Profile Service Application" service installed. It is auto-installed on most SharePoint installs, but given it's descriptive - "Adds support for My Sites, Profiles pages, Social Tagging and other social computing features. Some of the features offered ...


0

What about setting an "empty" loop? (i have tried with a comment on an useless workflow variable repeated for 10 k or 20 k depending on how long time I need, it worked fine)


0

Based upon experimentation, <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" /> is required for a subsite to be created within a specific site collection. I was not able to find any link that describes the permission scopes required for various REST api's


1

One thought: create a hidden field that increments each time a person approves. Use a separate workflow to perform the increment. Set countfield to value+1. Then, set approval field to approved once the count is greater than or equal to 2.


1

I have found timeout setting in WFResourceManagementDB database, WorkflowServiceConfig table (WorkflowServiceMaxHttpResponseTime value). Increasing the value resolved my issue.


1

You can get SPListItem via powershell, set property and update item without firing event, see example below: #Add SharePoint PowerShell SnapIn if not already added if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin "Microsoft.SharePoint.PowerShell" } $web = Get-SPWeb "http://dev2" $list = ...


0

No OOB workflow will do that for you. You have to create a SharePoint Designer workflow that will do the following: Read the Department property Add IF conditions to check the value of the Departments property Inside each IF block, send the e-email to the correct users. Hope this helps.


1

Craig, You can use SPEmailEventReceiver to parse the email body.. Tip: If you want to debug your custom EmailEventReceiver, you have to attach your debugger to the ows process (not the w3wp) and you have to reset the Sharepoint Timer Service after deployment. - it costed me 3 days to figure this out. See here Reference: Event receiver not ...


2

Solution was: Register-SPWorkflowService –SPSite "http://localhost/yourSite" –WorkflowHostUri "https://localhost:12290" –AllowOAuthHttp had to be executed!!


1

According to the section Workflow limits in Software boundaries and limits for SharePoint 2013 For variables Maximum workflow definition (xaml) size Description: Attempts to publish xaml files that exceed the size limit will fail. Max value: 5,120 KB Limit Type: Boundary Workflow variable value size Description: The maximum amount of data that can be ...


0

I'm not sure this question is still actual for you, but it could be helpful for others. I recently wrote the blog post: How to send bulk e-mail with attachments to external users using SharePoint 2013/Online workflow I think it is just what you were looking for to send e-mails, but regarding scheduling, I use there list level workflow. You can implement ...


0

If you use SharePoint 2013 all described functionality without creating list level workflows. You can use just single site level workflow. SharePoint 2010 workflows don't support loops, but SharePoint 2013 workflows support. I would recommend 3rd party products developed by my team: SharePoint workflow Scheduler Workflow Actions Pack I would ...


1

SharePoint Workflows doesn't start workflow automatically if the list item is created by system account. If you use account of application pool to create items the workflow will not be started automatically. Use another account to start workflows.


0

As mentioned in comments for your question. If you call the web service using system account your service updates data also as system account. SharePoint workflows doesn't work correctly with system account. You need to use another account to call you service.


0

I used the following to hide the last empty row in datasheet view (where new items are added): //Add jquery reference <script type='text/javascript' src='../../SiteAssets/javascript/jquery-1.10.2.min.js'> </script> <script type='text/javascript'> //Use _spBodyOnLoadFunctionNames.push to prevent any collisions ...


0

It could possible something to do with that the workflow did not publish before saving your project site as a template. The "Elements.xml" file, which is packaged within the "wsp" solution file contains 2 " PropertyName="WSPublishState" Value="3" Also note that the WSPublishState property is also duplicated within the "MetaInfo" property, so both ...


0

I see this error so you must follow workflow sharepoint 2013 syntax. Use transition to stage to goin end of workflow! And if you can Put your Workflow ScreenShot Hope this is usefull


0

I've implemented new method in the service for checking the status of all these tasks. In the workflow I've used Delay and HttpSend activities in While Activity for checking tasks status on timer. So the main logic implemented in web service and the workflow invokes needed methods from the service in the right order. In such way I also simplified the ...


0

The new Workflows(2013) are hosted by the Workflow Manager Farm, you can try to recycle the Workflow Management Service. You can try also to remove the workflows from 'wfsvc' list to have a clear situation in the deactivation of your feature implementing FeatureDeactivating in the feature reciver. For example in following way: public override void ...


0

I assume that you create task for the user or use custom workflow form. In both cases you can construct URL for editing document properties. you must get SPList object containing document use its DefaultEditURL Append this URL by "ID=" and ID of the document and make the full URL of it. list.ParentWeb.Site.MakeFullUrl(list.DefaultEditFormUrl + "?ID=" + ...


0

If workflow run under system account token it will not call event receiver, you have to provide user's token for call event receiver, please refer below code would be help to you SPUserToken userToken = null; SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite spsite = new SPSite(url)) { ...


0

Just in case someone has the same question, here is how I resolved it: I had to republish the .xsn form, promoting the appropriate fields. The fields I needed were not being promoted by default so I had select them manually when I republished with the publish wizard.


0

One of my colleagues found out a solution for this. First we have to create a Site workflow for this.Not a list workflow for site feed. In the site workflow we have to create a loop. In the workflow first we have to create an infinite loop and wait for a item adding event for Microfeed list. Then in the email action we can add lookups for the ...


0

If anyone else needs to do this, here is the script I used. It's based on a couple of examples I found through googling, and I've added to it by finding the current item's ID and passing it to the URLs I'm generating. On my list, I created a single line of text column called "Actions" and then placed it in the view where I wanted my buttons to appear. This ...


1

I encountered the same high CPU problems on our Workflow Manager server. However, on our server we had already installed the February 2013 Cumulative Update. The Workflow Manager event log was flooded with the following error message: Failed SQL command after 1 tries with error '229'. Exception: System.Data.SqlClient.SqlException (0x80131904): The EXECUTE ...


0

I figured it out by myself. I've added the code below to the OnClick event of my reject-button. protected void Button_Reject_Click(object sender, EventArgs e) { try { SPListItem spListItem = SPContext.Current.ListItem; Hashtable ht = new Hashtable(); ht[SPBuiltInFieldId.PercentComplete] = 1.0f; ...


2

This is the expected behavior: in SP 2010, the query only returns the first item. To update multiple items, you'll have to resort to tricks, for example add a column that serves as a flag once an item is updated. Another option is to attach the workflow to the second list (the one with the Owner field). This has been addressed in SP 2013 (kind of...) where ...


2

No, not in 2010. Workflow products like Nintex and K2 give you that functionality at a price though. Alternatively, you could use web services to bulk update information. The SPServices library has a great wrapper to help you out.


2

How to get Workflow status via CSOM function getWorkflowStatus(listTitle,listItemId,workflowTitle, success,error) { var context = new SP.ClientContext.get_current(); var web = context.get_web(); var list = web.get_lists().getByTitle(listTitle); var listItem = list.getItemById(listItemId); context.load(listItem); context.executeQueryAsync( ...


1

You can use the fact that files from _layouts\ folder are stored separately on every server. For example deploy a text file Test.txt to http:\yoursite_layouts\yourproject\Test.txt and put different content of this file to each of the servers (edit the file manually in c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS). ...


0

An other solution would be to override the edit profile page and add your code to the save button. I've found it here To do it, you'll have to create an other page and redirect the edit page.



Top 50 recent answers are included