SharePoint 2013 Workflow for MDS 2012 - Sample Code

Hi All, I want to integrate MDS 2012 with SharePoint 2013 workflow. I have read the whitepaper on this integration but I am looking for code samples on SharePoint 2013 workflow which can be used for this as I am not much into SharePoint development. If
not the source code, any good blog links to achieve this integration?
Thanks, Ashish Singh

If you want to avoid the SharePoint development, then use a custom IWorkflowTypeExtender and interact with SharePoint using the Lists OData service.  That way your code runs on the MDS server, and you don't have to deploy custom code to SharePoint. 
You would simply add an item to an existing or purpose-built SharePoint list, and that could kick off a standard list workflow (which can be built without custom code).
Otherwise you need to create a custom SharePoint Site Workflow in Visual Studio, and deploy it to SharePoint (yuck). Per:
http://msdn.microsoft.com/en-us/library/ee231573.aspx
David
David http://blogs.msdn.com/b/dbrowne/

Similar Messages

  • SharePoint 2013 workflow for page publishing

    Hi Folks,
    I need to implement a page publishing workflow.I am going in brief to explain scenario.
    When a page is getting created by a user from a specific group it needed to be approved by four different group of people in a sequential approach.
    After getting approval from all group only last user group member should be authorized to publish the page.
    There could be a scenario where once page is created it will require to be directly published without any approval
    Kindly suggest me which approach i should follow ? 
    Either of SharePoint designer workflow or Visual Studio Workflow ?
    Appreciate if can provide some tutorial kind link or suggestion.
    Keshav Roy

    There's not really too many examples out there to share for SharePoint 2013 workflows. Personally I believe SharePoint Designer workflow is an quick and easy of developing workflows but it has limitations - like it's tightly integrated with the SharePoint
    site/list. However if you have an existing Visual Studio project then I don't see any reason to use SharePoint Designer (SPD) workflow. Visual Studio workflow is more like developer tools and you can do more with VS than SPD. So if you have developer
    skills (or someone in your team), have already a VS project and need more customisation (as per your requirements, you have complex one), I would prefer to go for Visual Studio workflow.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • SharePoint 2013 workflows for SPD - need a separate server to run workflow engine?

    Hi there,
    I have a single machine dev installation of SharePoint 2013. How to have SP 2013 Workflows done in SharePoint Designer - so we can migrate them from one environment to the other without having to make manual changes again.
    Does this need any special software installed? Can we install it on our APP server?
    Thanks.

    Hi Frob,
    If you want to be able to move workflow manager to another environment, then you need to install the workflow manager in a separate server.
    When you want to use the workflow manager in another environment, you need to leave the workflow manager from the existing farm.
    And then join the workflow manager to the farm where you want to use the workflow manager and also re-register the workflow service.
    Here is a similar issue for you to take a look:
    http://sharepoint.stackexchange.com/questions/132524/move-workflow-manager-to-new-farm-in-a-new-domain
    More references:
    https://msdn.microsoft.com/en-us/library/jj193527(v=azure.10).aspx
    https://msdn.microsoft.com/en-us/library/jj193433(v=azure.10).aspx
    Best regards,
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SharePoint 2013 Workflow - Change the From Address for an email

    Hello
    I am creating a SharePoint 2013 Workflow Manager Workflow to send out an email when a document is uploaded to a document library. I want to set the From address for the Email activity added to my Workflow. There is no option in Properties to change this.
    This used to be done when creating a SharePoint 2010 workflow in Visual Studio 2012.
    How can I add a From email address for my workflow?
    Thanks
    Yoshi

    Having problems getting SPD 2013 installed on my laptop because of a trial of O365, but I know in SPD 2010 you could find the BCC fields, etc... in the Advanced properties, it wasn't directly available via the common interface.  I know 2013 is very
    different from 2010, and if I can get it to install correctly, I will update, but look for an advanced property, or an XML view where you can find the FROM: field.

  • Prerequisites download location for SharePoint 2013 SP1 on Windows 2012 R2 platform

    Can any one share prerequisites download location for SharePoint 2013 SP1 on Windows 2012 R2 SP1 platform.

    Did you see this
    http://blogs.technet.com/b/cjrawson/archive/2014/04/06/offline_2d00_sharepoint2013sp1_2d00_prerequisites_2d00_server2012r2.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • SharePoint 2013 Workflow (SPD 2013) fails for Active Directory Group members

    Hi
    I have a SharePoint 2013 site called "Team Meetings". There are a number of lists and an InfoPath form library.
    The site's SharePoint Group "Team Meeting Members" has two Active Directory groups (All Club Managers and All Club Police) as members. Those two AD groups contain all the people that I want to have  access to the library and list, except for
    a few additional folk who I have made individual members. 
    My PROBLEM:
    I  have created a SharePoint 2013 Workflow using SPD 2013 associated with the  Form Library. Workflow is set to start on new or modified item. The first action is to write to history list, then determine the status (Submitted or Pending) of
    the form and go to different Stages depending on that status.
    The workflow works perfectly for any user who has been added directly to the SharePoint group (Team Meetings Members) BUT FAILS at the very first action for anyone who is a member of one of the AD groups. I know the Workflow is fine because I've tested it
    with numerous people who are direct members of the SharePoint Group, but whenever a person who is a member of the AD group tries it the Workflow just fails.
    Here's a print of the info from the Workflow Status page (I don't have access to server logs):
    RequestorId: 4494760f-92ff-2e8c-90d2-cc7df0e6baa4. Details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPRequestGuid":["4494760f-92ff-2e8c-90d2-cc7df0e6baa4"],"request-id":["4494760f-92ff-2e8c-90d2-cc7df0e6baa4"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Mon, 10 Mar 2014 01:31:42 GMT"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
    The HTTP response content could not be read. 'Error while copying content to a stream.'. at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor 
    Members of the SharePoint Group "Team Meetings Members" have Contribute Access to both the form library and another list that the workflow writes to as well as the Workflow History list (which in SP 2013 uses the credentials of the
    user who started the workflow, unlike 2010 which used System Account).
    All members of the Team Meetings Members group, whether they are individual members or part of one of the AD groups, have no problems opening and saving forms etc. It's just the Workflow that doesn't like them...
    I am stumped. I've spent many hours searching for a reason for this. There are about 200 people in the two AD groups so I really don't want to have to add them all individually - especially when these groups are managed in AD for a whole bunch of other reasons
    and using the AD groups means I'll basically never have to worry about modifying the SharePoint access permissions.
    Does anyone have any ideas why this is happening and what I can try to fix it?
    Mark

    Hi Lars,
    I'm afraid not so far but we are trying a few things today so I will post back with results.
    First thing we are doing is making the AD Group universal because one of our (external provider) gurus remembers seeing something about that. He also sent me a link to a post where they were talking about earlier
    versions but having similar issues and their solution was to make sure the app pool account has sufficient permissions in AD::
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/27a547da-5cc0-49d7-8056-6eb40b4c3242/failed-to-start-workflow-access-is-denied-exception-from-hresult-0x80070005-eaccessdenied
    This part of that thread looks interesting but we haven't checked it yet as were trying the universal setting first:
    "If the users participating in the workflows have been added to the SharePoint site via Active Directory groups, SharePoint has to update the user’s security token periodically by connecting to
    the domain controller. By default, the token times out every 24 hours. But if the application pool account did not have the right permissions on the domain controller to update the user’s token, user will keep getting the access denied error. The error was
    intermittent because when the user browsed to any page other than the workflow form, the token was getting updated successfully.
    You can try to fix it through granting the application pool account the appropriate permission by adding the account to the group “Windows Authorization Access Group” in Active Directory."
    I'll update when we try these ideas. If you have any luck please do the same.
    Mark
    (sorry about formatting - using my phone....)
    Mark

  • How to configure workflow manager 1.0 ? Scenario "sharepoint 2013 and sql server 2012 workflow manager in one server" .

    i have sharepoint 2013 and sql server 2012 in one server . how to configure workflow manager 1.0 on the same server ?

    Please follow below technet article :
    http://technet.microsoft.com/en-us/library/jj658588(v=office.15).aspx
    Installing and Configuring Workflow Manager 1.0 (Step by Step)
    Note: The steps in this article apply to SharePoint Server 2013.
    The SharePoint 2013 Workflow platform is not supported in SharePoint Foundation 2013.
    If my contribution helps you, please click Mark As Answer on that post and
    Vote as Helpful
    Thanks, ShankarSingh(MCP)

  • SharePoint 2013 Workflow created on SharePoint Designer gets canceled

    Just wanted to share my solution to a problem that I was having when creating a SharePoint 2013 Workflow that includes creating a task and assigning it to a group of people. After publishing the workflow and initiating it you get:
    Retrying last request. Next attempt scheduled in less than one minute.
    Microsoft.SharePoint.Client.ResourceNotFoundException: Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals
    An unhandled exception occurred during the execution of the workflow instance.
       Exception details: System.ApplicationException: HTTP 404 {"error":{"code":"-1, Microsoft.SharePoint.Client.ResourceNotFoundException",
       "message":{"lang":"en-US","value":"Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals."},
       "innererror":{"message":"Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals.",
       "type":"Microsoft.SharePoint.Client.ResourceNotFoundException","stacktrace":" at
       Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathRoot(Boolean mainRequestPath, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)\u000d\u000a at
       Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String pathForErrorMessage)\u000d\u000a at
       Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()\u000d\u000a at
       Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()\u000d\u000a at
       Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)"}}
       } {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["46"]
       ,"SPRequestGuid":["624f66f8-a70c-81db-bf0d-c042443f5435"],"request-id":["624f66f8-a70c-81db-bf0d-c042443f5435"],
       "X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4569"],"X-Content-Type-Options":["nosniff"],
       "X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Mon, 06 Apr 2015 22:17:23 GMT"],
       "Server":["Microsoft-IIS\/8.0"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at
       Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at
        System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at
        System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    I was not able to find any answer anywhere, so my solution was:
    1. Simply upgrade SharePoint Server 2013 to the latest version which in turn updates Microsoft.Activities.Proxy.dll
    2. Clear the SharePoint Designer cache
      Workflow Error - Sharepoint Designer cannot display the item
       http://community.office365.com/en-us/f/154/t/74327.aspx
    I hope this is helpful to somebody
    Thanks

    Hi,
    I doubt its not possible.
    http://stackoverflow.com/questions/17925555/windows-workflow-4-appfabrix-1-1-suspended-workflow-will-not-resume
    http://social.msdn.microsoft.com/Forums/en-US/fd85c5f9-36dd-4be5-872f-9ba73b1eb0b8/appfabric-11-for-windows-server-versus-workflow-manager-10?forum=wfprerelease
    http://seroter.wordpress.com/2012/11/02/interview-series-four-questions-with-jrgen-willis/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Updating In-Flight SharePoint 2013 Workflows (Visual Studio)

    Is there any guidance on the best strategy for upgrading in-flight SharePoint 2013 Workflows?  I am currently developing a SharePoint 2013 Workflow using Visual Studio 2012.  The workflow has 6 phases and may take up to a month to complete. 
    I need a plan for when I will inevitably need to make a change to the workflow.
    I am concerned that simply deploying a new version of a WSP with new XAML might cause a breaking change to in-flight workflows.  This was a major problem in 2007/2010, and in the past I have created a new version of the workflow when deploying a change. 
    SharePoint 2013 designer workflows automatically create a new version when published, but unfortunately with Visual Studio workflows this is not the case.  Updating the WSP and reactivating the feature will force new workflow code to run, but I think
    this could cause issues when the workflow state data is de-serialized.

    Hi,
    According to your post, my understanding is that you want to update in-flight SharePoint visual studio workflow.
    To update the in-flight workflow, such as in the production environment, we can do the steps as below(Make sure you test this first on a DEV server).
    Updated the solution (Update-SPSolution)
    Disabled the feature(Disable-SPFeature)
    Enabled the feature again (Enable-SPFeature)
    Then the existing workflow would use the old version workflow, the new workflow instances would use the new version workflow definition.
    For more information:
    https://social.technet.microsoft.com/Forums/en-US/f3ae607b-a16c-477e-9c2f-f0dc76f6849f/updating-sharepoint-2013-workflow-in-production-environment-not-during-development?forum=sharepointdevelopment
    More reference:
    http://sp2013workflows.blogspot.com/2014/06/update-workflow-definition-in.html
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • SharePoint 2013 Workflow Calendar Entry Create Time AM PM Conflict

    Windows 2012, SharePoint 2013 Enterprise.
    I have a change control form that basically creates a calendar entry once it's been approved. Works well, but discovered a bug with the calendar create portion when there are events that have the same time in AM\PM. 
    Use case:
    1. Create a change control item in the list with a planned start time of 2PM, I'll approve it, which then fires off a workflow and it will create an event in the change control calendar for 2PM, all good.
    2. Create another change control item in the list with a planned start time of 2AM this time, I'll approve it, which then fires off a workflow and it will create an event in the change control calendar for 2PM and not 2AM. ???
    Yes the original event entry created in the list shows planned start time of 2AM, but its being created in the calendar entry as 2PM. This only happens when the time is exact. For example if I had created the second entry at 3PM, it will create the calendar
    entry at 3PM. It only happens if there is an existing entry for the same time, then all subsequent entries for the same time will have the same AM\PM depending on the first entry.
    I can manually create an entry in the calendar and specify 2PM and it will take, so its something with the workflow that is causing it. The workflow is very simple all its doing is checking the item to see if the field says approved for the change request
    form if so, create calendar event and carry over the fields, planned start time, planned end time, title description, that's it. 
    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com

    Hi James,
    In my test per your description, I cannot reproduce the issue, however, I attached the screenshot of my test for your reference, let me know if there is misunderstanding.
    Please capture the screenshot of your workflow process design so I can try to reproduce or find out if there is action that may cause the issue.
    In addition, could you please try to locate workflow error message? If there is obvious error information, please refer to the Activate Workflow Manager Logs part in the article below:
    http://blogs.msdn.com/b/vincent_runge/archive/2014/01/07/troubleshooting-actions-for-sharepoint-2013-workflows.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Problem refering to a custom activity in a SharePoint 2013 workflow

    I have created a few custom activities to handle common tasks in a workflow. The activities are deployed in a separate sandbox solution from the workflows referencing them.
    This has been working fine for a couple of months now, but suddenly I get an error when trying to activate the feature that provisions the workflow that refers to the custom activity (WriteMessage). The error is:
    Error 1
    Error occurred in deployment step 'Activate Features': Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors:
    Cannot create unknown type '{wf://workflow.windows.net/default/f0b36ec0-d40f-4df8-a99b-39f6dc4854a8/09e1bc2d-1cc8-4cff-ae22-32a52f54b685/$Activities}WriteMessage'. HTTP headers received from the server - ActivityId: ac291077-6536-4c63-b7b0-7701b6d29268. NodeId:
    DKRDSSP15DEV03. Scope: /SharePoint/default/f0b36ec0-d40f-4df8-a99b-39f6dc4854a8/09e1bc2d-1cc8-4cff-ae22-32a52f54b685. Client ActivityId : e9d2bfd0-bb0e-4c28-bf55-8748368feb5b. ---> System.Net.WebException: The remote server returned an error: (400) Bad
    Request.
       at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
       at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
       --- End of inner exception stack trace ---
       at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
       at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
       at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)
       at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, ActivityDescription activity, Boolean overwriteXClass, Nullable`1 terminateInstances)
       at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementClient client, ActivityDescription activityDefinition, String serviceGroupName)
       at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.<>c__DisplayClass5.<PublishDefinition>b__4()
       at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)
       at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workflowDefinition)
       at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperties properties)
    0 0
    Vestas.SP.CMS.AlarmReports
    I have tried creating a simple workflow using the custom activity, by referencing the sandbox solution. This works fine, if I create the simple workflow in a new project and deploys it and activate the workflow feature. However, if I create a similar simple
    workflow in the original solution and omit the original workflows. Then I still get the above error when deploying / activating the workflow feature. 
    How do I clean up my original project so it does not give me this error when deploying and activating the workflow feature?
    best regards
    Lars Kohsel
    Best regards Lars Kohsel

    Hi,
    As the error still occur when you create a simple workflow in the original project, maybe some configurations have been changed in the project.
    You can check with the new created project whether there are some difference configurations in the project.
    There is a similar article for your reference.
    http://blogs.msdn.com/b/cliffgreen/archive/2013/03/11/sharepoint-2013-workflow-deployment-errors.aspx
    What’s more, you can also copy your original project code to the new project, then check whether it works.
    If it works, the we can use the new project instead of the original project.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • SharePoint 2013 workflow task gets canceled

    Just wanted to share my solution to a problem that I was having when creating a SharePoint 2013 Workflow that includes creating a task and assigning it to a group of people. After publishing the workflow and initiating it you get:
    Retrying last request. Next attempt scheduled in less than one minute.
    Microsoft.SharePoint.Client.ResourceNotFoundException: Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals
    An unhandled exception occurred during the execution of the workflow instance.
      Exception details: System.ApplicationException: HTTP 404 {"error":{"code":"-1, Microsoft.SharePoint.Client.ResourceNotFoundException",
      "message":{"lang":"en-US","value":"Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals."},
      "innererror":{"message":"Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals.",
      "type":"Microsoft.SharePoint.Client.ResourceNotFoundException","stacktrace":" at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathRoot(Boolean mainRequestPath, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String pathForErrorMessage)\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)"}}
      } {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["46"]
      ,"SPRequestGuid":["624f66f8-a70c-81db-bf0d-c042443f5435"],"request-id":["624f66f8-a70c-81db-bf0d-c042443f5435"],
      "X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4569"],"X-Content-Type-Options":["nosniff"],
      "X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Mon, 06 Apr 2015 22:17:23 GMT"],
      "Server":["Microsoft-IIS\/8.0"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at
      Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at
       System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at
       System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    I was not able to find any answer anywhere, so my solution was:
    1. Simply upgrade SharePoint Server 2013 to the latest version which in turn updates Microsoft.Activities.Proxy.dll
    2. Clear the SharePoint Designer cache
      Workflow Error - Sharepoint Designer cannot display the item
      http://community.office365.com/en-us/f/154/t/74327.aspx
    I hope this is helpful to somebody
    Thanks

    Hi Amit,
    According to your description, my understanding is that you want to approve workflow task using web service in SharePoint 2013.
    For troubleshooting this issue, please provide the more detailed code.
    Here are some similar posts, please check if they are useful:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b999a417-dce3-4590-9173-89aea91f23a3/complete-workflow-after-approving-all-tasks?forum=sharepointdevelopment
    http://www.sharepointblog.in/2013/07/programmatically-approvereject-task-in.html
    http://aarebrot.net/blog/2011/10/how-sloppiness-and-spworkflowtask-altertask-could-inadvertantly-lock-your-workflow-task/
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • SharePoint 2013 Workflow Permission

    We are running into a problem with SharePoint 2013 and workflows.
    We have the following site collection setup:
    Site Collection
        Subsite A
        Subsite B
    The following are the permissions:
    [Site Collection] Owners
    [Site Collection] Members
    [Site Collection] Vistors
    The members of these SharePoint groups are Active Directory security groups. If we put these AD groups into the SharePoint group we get the following error when trying to run a workflow:
    RequestorId:
    171a693d-7b50-a70a-0000-000000000000. Details: RequestorId: 171a693d-7b50-a70a-0000-000000000000.
    Details: An unhandled exception occurred during the execution of the workflow
    instance. Exception details: System.ApplicationException: HTTP 401
    {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access
    denied. You do not have permission to perform this action or access this
    resource."}}}
    {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPRequestGuid":["171a693d-7b50-a70a-ba75-67ea8bc83fb4"],"request-id":["171a693d-7b50-a70a-ba75-67ea8bc83fb4"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4481"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Cache-Control":["max-age=0,
    private"],"Date":["Tue, 16 Jul 2013 15:28:13
    GMT"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
    at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext
    context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at
    System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
    executor, BookmarkManager bookmarkManager, Location resultLocation
    Obviously, this is a permissions issue. I am able to resolve the issue by adding individuals to the SharePoint group 1 by 1, however, I don't want to do this. Can anyone explain why this is acting the way it is?

    Hi,
    I am also running into this issue and am stuck in solving it.
    I have a list workflow that runs on item change event, checks if a certain value is true and then should create a new list item in a list on a different site.
    Site structure is the same as Hhancocks:
    Site Collection
       Subsite A => workflow
       Subsite B => list where new item should be created
    With the same HTTP REST call I can create a new item on any list of Subsite A, but as soon as I try to create the item on a list in Subsite B, I get the response Code "Unautherized" and the response:
    {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this
    resource."}}}
    I found the following blogs on the internet, none of which solved my issue:
    http://www.sharepointviking.com/system-unauthorizedaccessexception-when-running-sharepoint-2013-workflows/
    http://www.sharepointmaestra.com/Blog/Post/1/Workflow-2013-Not-Starting-on-Incoming-Email
    According to this thread:
    http://community.office365.com/en-us/forums/148/p/178921/527970.aspx the REST calls don't work in SharePoint online which would explain the behaviour in one of our environments, but the error also occurs for our on prem environment. The user triggering
    the workflow has full control on both subsites.
    Any hints would be really appreciated.

  • SharePoint 2013 Workflow Not Updating on Deployment

    Developing a 2013 Workflow on SharePoint 2013 using Visual Studio 2012, deploying workflow changes does not update the workflow that runs. This has already been posted on the SP 2013 dev forum, but I wanted to check here with the workflow folks. Anyone run
    into this issue before and/or have tips for solving?
    Thanks.
    http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/cd543a00-f3ab-4a4a-8682-b81d8330b677
    http://blog.randomdust.com

    This issue is reported and I'll post about it once I have an update.  For now to workaround this issue, you can try these steps
    Change the default deployment option to “No Activation”
    Retract the solution using Visual Studio
    Deploy the solution. This time feature will not be activated by default as we have changed to “No Activation”
    Open the SharePoint designer and click on the “Workflow”  section. You will see your workflow already present there. Delete the workflow which you have created.
    Activate the feature manually.
    Now you should see your updated version.
    Chandrasekar Natarajan

  • Sharepoint 2013 Workflow InitForm.aspx Visual Studio 2013

    Hi,
    I have a small problem. In my initform.aspx for my SP 2013 workflow I have a people editor element so that users can select multiple users (reviewers). I successfully used jquery to get the login-names. I want to use these names for a composite task in my
    workflow, and the task want a collection<string> in the AssignedTo-box. How do i store these logins in a collection<string> object? What datatype do I use for my workflow argument to store these logins from the javascript(wfParams) in my InitForm.aspx?
    //Regards Kjell 

    Hi,    
    To develop SharePoint 2013 workflows using Visual Studio 2012, it requires to set up a workflow development environment first.
    It is recommended to look through the two documentations from MSDN about
    Prepare to set up and configure a SharePoint workflow development environment
    before starting the workflow development:
    http://msdn.microsoft.com/en-us/library/office/dn413607.aspx
    http://msdn.microsoft.com/en-us/library/office/jj163917.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • How to create an interface for extractors from CRM to BI/BW

    Hi Experts,                 My aim is to bring in data from CRM source to BI/BW target so for that we have found few extractors in CRM side which we need to use in BI. I would like to know how i can achieve this. I knw we can use web services for thi

  • I am using oracle-- xi-- r/3(bapi)

    hi,    all   i am not able to send the date to r/3 system. i am using oracle(sender)>xi>r/3(bapi) as receiver.. i am able to get the data in xi under sxmb_moni i am able to see the data in inbound message (center) &  receiver groping. under Response-

  • Imageready 3.0 Export DISABLED???

    What happened to my Imageready 3.0? I used to be able to open animated gifs, then export the animation frames as files, but now the "export" option is greyed-out! I KNOW this USED to work.  Did some background "update" disable this feature?  If so, I

  • Doubts about installation and features

    I'm a newbie on WebCenter Portal Framework and I have to build a PoC with some features like CMS, online collab, chat, analytics, single sign on, search engine and two sites.However, I don't know what should be installed in order to provide all these

  • JetSend does not work from HP9100C to P3015D

    Hi Everyone, I have Docu Centre HP9100C device, which has JetSend function. It works via JetDirect adaptors inserted into Scanner (HP9100C) and Printer. For HP8500 and HP4050 it worked pretty fine. But when I purchased a printer P3015D, installed the