Import SharePoint Designer 2013 workflows into Visual Studio 2012
I have some 2013 workflows created with SharePoint Designer 2013. I can save the workflows as templates ie WSP files but i cannot figure out how to import them into visual studio 2012. Is this possible? please note the import resusable workflows option
is for sharepoint 2010.
"The workflow activities/actions are in separate assemblies, and each tool references a different one." so you will get an error when you try to open the SPD workflow using Visual Studio.
Please check similar thread below for more details
http://sharepoint.stackexchange.com/questions/75196/importing-a-sharepoint-2013-workflow-in-visual-studio
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
Similar Messages
-
Has any one worked on sharepoint 2013 workflows using visual studio.
Has any one worked with sharepoint 3013 workflows using visual studio.
Hi,
To develop SharePoint 2013 workflow using Visual Studio, you can refer to:
Develop SharePoint 2013 workflows using Visual Studio
Create a SharePoint workflow app using Visual Studio 2012
Get started with workflows in SharePoint 2013
Thanks,
Linda Li
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]
Linda Li
TechNet Community Support -
Create SharePoint 2013 workflow using visual studio 2013
Dear Team,
How to create a workflow for template approval process using visual studio 2013.To achieve this do i need to install share point on my machine.Hi,
According to your post, my understanding is that you want to create a SharePoint 2013 workflow using Visual Studio 2013.
We need setting up and configuring Microsoft SharePoint Server 2013 and the Workflow Manager Client 1.0 server, see Start:
Set up and configure SharePoint 2013 Workflow Manager.
The following materials for your reference:
Develop SharePoint 2013 workflows using Visual Studio
http://msdn.microsoft.com/en-us/library/office/jj163199(v=office.15).aspx
How to: Create SharePoint 2013 Workflows using Visual Studio
http://msdn.microsoft.com/en-us/library/office/dn584771(v=office.15).aspx
Developing SharePoint 2013 workflows with Visual Studio demo
http://www.bing.com/videos/watch/video/developing-sharepoint-2013-workflows-with-visual-studio-demo/10t0er5gh
Best Regards
Dennis Guo
TechNet Community Support -
C# expressions being lost when designing workflows in Visual Studio 2012
When designing workflows in Visual Studio 2012, we are consistently running into a situation whereby clicking on the property value input box of an activity property, results in any existing value being cleared out and a message appearing which says "C:\
..... \obj\x86\Debug\TemporaryGeneratedFile_E7 .... D3.cs This file has been modified outside of the source editor. Do you want to reload it?".
Regardless of whether we choose Yes or No at this point, the property value has been erased and we cannot recover it. It happens more often than not.
We've also noticed that selecting the ellipses button within the activity property value input box results in a blank input box - even if a c# expression is clearly visible within the property window.
We have installed the cumulative update for workflow manager 1.0 and are using Visual Studio 2012 with TFS 2012.I have also noticed the same issue. Though sometimes you find the property box empty, if you close property window and open it again, it shows the value. There's few irritating issues in Visual studio 2012 workflow designer.
About changing the file outside editor message, I've noticed if I open the workflow xaml file in xml editor inside visual studio with 'open with', then I get started the message.
Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com -
How to Loop through another list and update a column with SharePoint Designer 2013 Workflow
Hi,
I am trying to get my head around the new 2013 Workflow Engine and SharePoint Designer 2013 Workflow Text-Based Designer.
I have two lists.
List A has 2 columns: Title, Completed (Yes/No)
List B has 3 columns: Title, LookupListATitle, Completed (Yes/No)
All the 2013 Workflow components have been installed and configured and I am selecting the 2013 Workflow option in SPD
I am trying to set off a 2013 Workflow when an item in List A is edited to Loop through List B and select items where the LookupListATitle column's value is equal to the Title value of the current item, and set the value of the Completed column for those
items in ListB to "Yes".
I have the Workflow configured like this:
Stage: Stage 1
IF Current Item:Completed equals Yes
Loop: 1
The contents of this loop will run repeatedly while: ListB:LookupListATitle equals Current Item: Title
Update item in ListB.
(The dialog options for the update item action as follows:
List: ListB
Field: Completed, Value: Yes
In the Find the List Item section
Field: LookupListATitle
Value: Current Item: Title)
Transition to stage
Go to End of Workflow
When I update an item in ListA and set its Completed column to Yes, I would expect the Workflow to find all the items in List B where the Lookup column is equal to ListA's Title (there are 2) and update their Completed column to Yes. But it doesn't work.
When I look at the Workflow Status it says the Internal Status is "Canceled" and the information pop up has the following alien language (and may be truncated):
RequestorId: 95f03b62-8956-ac14-c5cf-dc98c89c589c. Details: System.ArgumentException: Invalid JSON primitive: Item001. Parameter name: value at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ConvertStringToJsonNumber(String value) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ReadPrimitive(String
type, XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(Stream jsonStream, Byte[] jsonBytes)
at Microsoft.Activities.DynamicValue.ParseJson(String json) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
executor, BookmarkManager bookmarkManager, Location resultLocation)
Unfortunately I don't have access to the server, logs etc.
I would love to find some tutorials, or any books on SharePoint Designer 2013 in general and Workflows in particular but my searches haven't turned up much so far apart from a pre-release Beginning SharePoint Workflows which is in its very early stages and
not much help yet.
Can anyone give me some guidance on how to set up While Loops to iterate through a related list using SharePoint Designer 2013?
MarkHi,
I understand that you wanted to update the items in the other list (Participants) where the Course equals the Current Item.
You need to use “Call HTTP Web Service" action and “Build Dictionary" action to get the Maxid and then loop Participants to update the items.
You can follow the steps as below to achieve what you want:
Create a custom list named Courses, add columns: Title(Single line of text), Course ID(Single line of text), Course Finalised (Yes/No).
Create a custom list named Participants, add columns: Title(Single line of text), Course(Lookup), CourseFinalised (Yes/No).
Create workflow associated to Courses, start the workflow automatically when an item is created or changed.
Add conditions and actions:
The HTTP URL is set to
https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be order by Id and desc.
Then if Course Finalised is equal to Yes, the CourseFinalised of the associated items in Participants will be updated to Yes.
More information:
http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
User Profiles option missing from SharePoint Designer 2013 workflows
I noticed the User Profiles is missing as a Data Source option in the SharePoint Designer 2013 workflow platform (see image); whereas, it exists in the SharePoint 2010 workflow platform. Is there a way to connect this feature in SharePoint 2013 workflows
by registering it or configuring through Workflow Manager? If not, what is the new approach in SP 2013 to call User Profiles services?Hi,
Based on your description, you want to use user profile in SharePoint 2013 workflow.
In SharePoint 2013 workflow user profiles is missing, if you have to use the user profile, you can create a SharePoint 2010 workflow, and use Start a List workflow action in 2013 workflow to start the 2010 workflow.
The article below is about How to start a SharePoint 2010 Workflow within a SharePoint 2013 Workflow Using SharePoint Designer 2013
http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-start-a-sharepoint-2010-workflow-within-a-sharepoint/
And in SharePoint 2013 there is an approach to user profile, you can add the action call http web service to get the information of user profile.
The article below is about how to use call http web service in SharePoint 2013 workflow.
https://msdn.microsoft.com/en-us/library/office/dn567558.aspx
Best regards
Sara Fan
TechNet Community Support -
Hi there,
1. Can we migrate SharePoint Designer 2013 workflows from DEV to UAT to Live without any issues? Any bad experiences?
2. When we deploy these workflows - does IIS need a restart?
Thank you.That depends, did you create reusable workflows? Those can be deployed to another environment (of course depending on dependencies within the workflow itself)
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
Edir sharepoint designer 2013 workflow xaml
How to edit sharepoint designer 2013 workflow xaml
I was able to edit it by exporting wsp and cab and modified xaml but how to again create wsp of this modifed cab.
I took reference of
http://netwovenblogs.com/2013/12/10/export-sharepoint-designer-2013-workflow-xaml/
MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint LeadHi Amit,
According to your description, my understanding is that you want to re-create a .wsp file after modifying workflow xaml file from the cab file.
To achieve it, you need to install a zip software utility that supports cab files, like IZArc. Then re-create a .cab file using the tool and change it to .wsp file.
More information, please refer to the link:
http://academy.bindtuning.com/how-to-manually-edit-a-sharepoint-wsp-file/
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 -
Send Edit Items URL in E-Mail Using Sharepoint Designer 2013 WorkFlow
Hi,
I want to Send the URL of Edit Item List using SharePoint Designer 2013 Workflow
I m Using [%Task : URL%] Then it return the internal URL --
http://SP2013/Sites/MySites/HelloSites/Lists/Tasks/DispForm.aspx?ID=359&ContentTypeId=0x0108003365C4474CAE8C42BCE396314E88E51F
But i want in AAP URL for edit list items such as
http://Hello.com/Sites/MySites/HelloSites/Lists/Tasks/DispForm.aspx?ID=359&ContentTypeId=0x0108003365C4474CAE8C42BCE396314E88E51F
Any one can suggest me please.
Thanks
RajeshHi,
I'm assuming you made your site as internet site (public facing).
In that case you might site desired output. If not you can think of replacing text
i.e SP2013 = hello.com
Thanks,
Vivek
Please vote or mark your question answered, if my reply helps you -
SharePoint Designer 2013 workflow - creating new items in the list
Hi,
I need to create a workflow in SharePoint designer 2013. Basically the flow is like that:
There is a Request List where people submit their requests. The requests have status: Submitted and Completed.
Once the status goes to 'Completed" there should be a workflow triggered that creates an entry in another list; VoC list and populate VoC columns. Additionally there should be an email send to the requestor that the request has been processed.
I tried to do that but I failed - what do I do wrong? It keeps telling me that there is an error in workflow.
Could you, please help me? Thank you.
Thank you.
Kind regards,
JowitaWith this command it populated the Voc list. But when I tried to add additional fields, the workflow did not work. Fo example, I've got a column "Requestors Name" in Request List and I would like the same column in Voc List to be automatically
populated with the data from Requestors List. I set Field Requestors name to Value Current item:Requestors name but it did not work :-(
What do you mean by "VoC column is already created in VoC list"?
And one additional question: is it possible for the workflow to automatuically create new columns in the VoC list?
Hi Jowita,
We could use workflow to populate values in column but not populate new columns, so the column should be created in list manually before workflow.
As I understand now, you need to use workflow to populate at least two columns in another list, and one is person or people type. I captured a screenshot for your reference, pp column is in person or group type in both two lists, please set return
type as Display name:
Regards,
Rebecca Tu
TechNet Community Support -
SharePoint Designer 2013 -- Workflow Manager is required to create Workflow
Hi,
Is workflow manager is required to create workflow in SharePoint Designer 2013 for List Workflow. Is there any other alternative for this.
With Regards,
Jaskaran Singh BhattiSharePoint 2013 supports both 2010 legacy type workflows that run in the OWS timer service on the SharePoint server and 2013 workflows that run on a server running Workflow Manager. You can still create the same kind of workflows you created in SharePoint
2010 without Workflow Manager. That would include 2010 List Workflows. You only need Workflow Manager if you want to create the newer kind of workflows that use Workflow Manager. All the built-in workflows still use the 2010 legacy workflow
system. Both types of workflows can be created using SharePoint Designer 2013.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
SharePoint Designer 2013 Workflow not sending e-mails
Hello everyone, it's me again.
I have a problem with my custom workflow. A simple workflow made in SharePoint Designer 2013 with a "Send Mail" action isn't actually sending any e-mails.
I am able to send mails with SharePoint 2013 with out-of-the-box workflows or alerts when sharing a page. The simple workflow is: Send Mail to TestUser after a new item has been created.
1) SMTP server has been configured and tested successfully, I am able to send mails
2) The workflow gets "Completed" status even though I didn't actually receive a mail
3) I double checked User Profiles and the e-mails are correct (I also checked in Active Directory)
4) The User Profile Sync. Service is running and I even did a full sync
5) Out of the box workflows are work perfectly fine
I have no explanation why custom workflows won't send a mail. I can perform other actions like "change workflow status".
Any help please?Hi Ali,
Please check if "send mail" action does not work in both SharePoint workflow 2010 platform and SharePoint 2013 platform.
Please add the actions "log to history" before and after action "send mail" to check if the send mail action is performed.
And you can also add "pause for a duration" before the "send mail" action, see if it could help.
You may also check if there are some related ULS log.
Thanks
Daniel Yang
TechNet Community Support -
Import MS Access 2013 tables into SQL Server 2012
Hi there,
Is there a step by step example somewhere showing how to import an MS Access 2013 table into SQL Server 2012?
I have read the existing posts and don't see a definitive answer.
I have installed MS Access 2010 engine, first 32 bit then 64 bit.
I have installed the MS Access 2013 runtime on my server.
I use the Office 2015 Access Database Engine OLE DB Provider.
I get the error:
Error 0xc0202009: Source - APEntries [1]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37.
Error 0xc02020e8: Source - APEntries [1]: Opening a rowset for "`TableName`" failed. Check that the object exists in the database.
The post regarding the above errors doesn't resolve the issue.
I have full administrative permissions on the server.
What is the trick to making this work?
Thanks,
Ric
Ric MillerHi there,
I tried the exact same operation on a third machine.
This machine has Windows 8.1 64 bit, SQL Server 2012 64 bit, MS Office 2013 Plus 32 bit.
I am the administrator on this machine.
I installed this:
Microsoft Access Database Engine 2010 Redistributable 32 bit (because I have MS Office 2013 plus 32 bit installed.)
From here:
http://www.microsoft.com/en-us/download/details.aspx?id=13255
It won't let me install the 64 bit version without uninstalling MS Office 32 bit.
I created an MS Access database on this machine using MS Access 2013 and created a table with 3 records.
I used the "Import and Export Data (32 bit)" from the start menu.
After I installed the "Database Engine 2010 32 bit" driver above, I now have the option of "Office 2015 Access Database Engine OLE DB Provider" as Data Source which I did not have prior to doing this installation.
I selected the driver and added the Properties of the Data Source Name file location of the MS Access file. I am using a blank password.
I go thru the same sequence of selecting a table to import and after running the result is the same:
Error 0xc0202009: Source - APEntries [1]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37.
"Error 0xc02020e8: Source - APEntries [1]: Opening a rowset for "`TableName`" failed. Check that the object exists in the database."
This seems to be consistent across three machines with three operating systems with the same files and the same result.
I understand that some people have gotten this to work.
I would appreciate it if anyone can report an error in the above procedure to me.
Thanks,
Ric
Ric Miller -
Sharepoint designer 2013 workflow kickoff issue from code
Problem Statement: Start a SharePoint 2013 designer Reusable Workflow with STS Authenticated User. We are trying to start to SharePoint 2013 designer Reusable Workflow with
STS authenticated user using code but when we do that, we get following error. RequestorId: a3ce6dc6-31ec-23f3-0000-000000000000. Details: RequestorId: a3ce6dc6-31ec-23f3-0000-000000000000. Details: An unhandled exception occurred during the
execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"error_description":"The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults
(either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect
the server trace logs."} {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["a3ce6dc6-31ec-23f3-b3ab-aef56fc7e299"],"request-id":["a3ce6dc6-31ec-23f3-b3ab-aef56fc7e299"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["65"],"SPIisLatency":["0"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["Bearer
realm=\"de9da885-f7bf-4564-a3a5-
Alternate approach we are following : We have created a windows authenticated user and gave him all the necessary permission to trigger the workflow(contribute, full control). Then we are creating the User token
for that user and opening the site with the help of the generated user token. By this approach workflow is getting triggered.
The problem in this approach is after ¾ days it gives error when trying to kick off workflow from code with user who has not logged in as we are using this AD user only for kickoff purpose.
InvalidOperationException:
Operation is not valid due to the current state of the object
MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint LeadThere is a userprofile for the user and the issue is not a userprofile. We are using direct AD import and we have full sync every 5 minutes. The workflow gets kicked off using a fix user who never logs in but after 4/5 days the token or something gets expired
and then we have to manually login with that user and then only code can kickoff workflow with that particular user.
The problem in this approach is after ¾ days it gives error when trying to kick off workflow from code with user who has not logged in as we are using this AD user only for kickoff purpose.
InvalidOperationException:
Operation is not valid due to the current state of the object
We can not kickoff with current user as current user can not be given contribute rights and we can not do it with system account as its not able to kickoff using system account by design of sp2013 workflow.
So we need to know how to kcikoff workflow with a user who never logs in or logs in only for the first time and then never in production.
Below code works for few days and then as user does not login with which we kick off workflow the token or something gets expired after 4/5 days.
userToken = oSPWeb.EnsureUser(“UserAccountName”).UserToken;
using (SPSite
oSPSite = new
SPSite(SPContext.Current.Web.Url,
userToken)) //Site collection URL
using (SPWeb
oSPWeb = oSPSite.OpenWeb()) //Subsite URL
SPList list = oSPWeb.Lists["Proposal"];
try
oSPWeb.AllowUnsafeUpdates =
true;
SPListItem item = list.GetItemById(proposalID);
var workflowServiceManager =
new
WorkflowServicesManager(oSPWeb);
var workflowSubscriptionService = workflowServiceManager.GetWorkflowSubscriptionService();
//get
all workflows associated with the list
var subscriptions = workflowSubscriptionService.EnumerateSubscriptionsByList(list.ID);
foreach (var
workflowSubscription in subscriptions)
if (workflowSubscription.Name ==
"Proposal Workflow")
//initiation parameters
var inputParameters =
new
Dictionary<string,
object>();
inputParameters.Add("Comments",
"TEST");
inputParameters.Add("ItemId", item.ID);
inputParameters.Add("WorkflowStart",
"StartWorkflow");
workflowServiceManager.GetWorkflowInstanceService().StartWorkflowOnListItem(workflowSubscription, item.ID, inputParameters);
break;
oSPWeb.AllowUnsafeUpdates =
false;
catch (Exception
ex)
Classes.Logger.WriteErrorLog("Sumbit",
"kickoffWorkflow1", ex,
MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead -
SharePoint Designer 2013 Workflow Fails to open.
I've been trying for a day or so to get this 2013 workflow to open up in sharepoint designer.
Everytime I get the following error
"Field to load this workflow. To correct this problem, restart SharePoint Designer."
Then when I refresh the screen I get this error.
"Windows Workflow Foundation, part of .Net Framework 3.0, must be installed to use this feature."
I've tried logging into SharePoint Designer with different accounts, I've delete the cache
%APPDATA%\Microsoft\Web
Server Extensions\Cache
%APPDATA%\Microsoft\SharePoint
Designer\ProxyAssemblyCache
%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache
Before for I say this workflow has been corrupted. I have a question to ask.
Would content databases needing to be upgraded after a CU cause this error?
Thanks
James T.FThe issue may not be an infrastructure one but involve problems with the structure of the workflow itself. For example, I have found that if the workflow design has a type mismatch involving variable assignments, this presents with the error above.
Does the workflow implement error control? Have the workflow designer very carefully review the workflow to find any potential problems.
Also... The problem with workflows is that they do not have a robust compiler or error handler to capture and inform you of errors involving the workflow itself. The reference below provides links to other pertinent postings on this vary issue.
References
SharePoint 2013: Failed to load this workflow
General
Maybe you are looking for
-
How do i change the redeem gift card from one apple id to another?
i want to move the redeem gift card from one apple id to another one is that possible?
-
Help with select code??
I have a calendar program in jsp. The users can enter description for the dates. These dates are stored in the database. I need to provide colors to those dates,which have a value 'N' in the weekender field. Am able to write the query, but am not abl
-
Firefox displays large jpg photos incorrectly, they are all like over lit and there is a real quality loss since just right clicking on a link of the photos and downloading them also displays them incorrectly in any photo tool. Looking at the photos
-
Voice Control and the main menu keep popping up
my ipod touch 3G has some interesting problems. the voice control and the main menu eep poping up and there are seems like nothing i can do. i already tried rebooting, but it didn't help. any ipod expert can help?really appreaciate.
-
SpotifyWebHelper.exe keeps adding itself to startup, and install location?
Every. Single. Time I try to disable Spotify from coming on when I start my computer back up, SpotifyWebHelper.exe gets re-added into Window (7)'s startup. No matter what setting I use, even if I uninstall and reinstall - it pops back up there. And w