Can I use Visual Studio to develop Sharepoint Online workflows on existing site lists?
I've been using Sharepoint Designer to develop workflows in Sharepoint 2013 on Office 365, but hitting limitations. I would like, for example, to be able to trigger a workflow when a list item is deleted.
Perhaps naively I thought Visual Studio should be able to help. I've read of useful things like Remote Event Receivers - sounds exactly what I need. I've used VS before for Windows desktop applications in VB, so downloaded a trial version of VS 2013.
Now I'm having doubts. It looks like I can create a Sharepoint App on a development site and create lists and workflows within it, but I can't access my existing lists to do anything more sophisticated than I already can in SPD. Is that right?
I was expecting to be able to enter my Sharepoint site URL into Visual Studio somewhere, just like in SPD, and do wonderful things with my lists - but unless I'm missing something, that's not possible.
Have I just got it completely wrong??!
Hi,
yes you can check those links
http://blogs.msdn.com/b/bharatgupta/archive/2013/04/27/sharepoint-2013-app-workflow-with-custom-task-outcomes-in-o365.aspx
https://msdn.microsoft.com/en-us/library/office/jj164126.aspx
http://www.andrewconnell.com/blog/sharepoint-online-integrated-workflow-apps-workflows-as-apps-in-the-hostweb
https://msdn.microsoft.com/en-US/library/jj220043.aspx
Kind Regards,
John Naguib
Senior Consultant
John Naguib Blog
John Naguib Twitter
Please remember to mark this as answered if it helped you
Similar Messages
-
Sharepoint 2013 - Can I use Visual Studio 2012 express edition for web-parts and app parts?
I am new to sharepoint 2013. I want to develop the app and web parts using visual studio 2012 express edition. Can I use vs 2012 express edtion to create app and web parts for sharepoint 2013?
Unfortunately no, check this post:
http://sharepoint.stackexchange.com/questions/52338/sharepoint2013-development-with-vs2012-express
To build SharePoint 2013 webparts/apps you will need the 'Microsoft Office Developer Tools for Visual Studio 2012', which do not come as part of Visual Studio. The tools require Visual Studio 2012 Ultimate, Premium, or Professional.
The tools and prerequisites can be found here:
http://msdn.microsoft.com/en-us/office/apps/fp123627.aspx
Brandon Atkinson
Blog: http://brandonatkinson.blogspot.com -
Scripting in Visual Studio 2013 against Sharepoint online - is it possible?
Hi,
I've been plowing through documentation on developing SharePoint apps but all I really want to do (right now anyways) is getting a more robust environment for coding scripts and HTML on SharePoint online 2013.
Currently I'm using SharePoint Designer 2013 to edit scripts that are in webparts like the Content Editor. It works but SharePoint Designer has terrible syntax highlighting and when things get complex it's a pain.
Question is: How can I point Visual Studio 2013 Community at a SharePoint 2013 online (Office 365) site so that I can open scripts and edit/publish like is done in SharePoint designer? I need to be able to achieve this without all the sharepoint server
malarkey.
Is it possible? Can someone point me at a resource? I've done a lot of digging but can't find anything so maybe not doable but couldn't hurt to ask.
Thanks,
JerryWhile working with app development, especially SharePoint hosted apps you can use SPFastDeploy VS extension to deploy the changes from your app.
https://visualstudiogallery.msdn.microsoft.com/9e03d0f5-f931-4125-a5d1-7c1529554fbd
If you create a SharePoint will create set of script files where App.js is the Key file and for HTML you can use Default.aspx. You can make changes to these files and just deploy only those changes to the App which will save lot of time and you can see the
changes immediately.
Regarding VS 2013 community, i haven't tried yet specific to SharePoint apps development.
Hope this helps.
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 -
How to apply customization through visual studio to the SharePoint online
We have an existing SharePoint online site, now there are some changes in functionality is required, can we do that change through visual studio and send that change to
SharePoint online site? will it work?
or we have to do the same only through the JQuery or other client side code directly to the site?Short list of what can't be done:
deploy any compiled code to a server. This includes DLLs, EXEs and full trust SharePoint Solutions.
deploy any file to a server disk drive. This includes anything usually stored in the 15 hive, site definitions, etc.
What can be done:
Anything that could also be done with SharePoint Designer.
Anything that is a file that can be loaded into a library. You can create and upload pages, as long as there is no server side code (C# etc.). These pages can include JavaScript, jQuery, CSOM, HTML, CSS, etc.
Create SharePoint 2013 apps. These can run custom code, but only if on an external to SharePoint servers.
See here for more:
http://technet.microsoft.com/en-us/library/sharepoint-online-developer-service-description.aspx (Developer Features in SharePoint Online)
Overview of SharePoint 2013 development:
http://msdn.microsoft.com/en-us/library/office/jj164084(v=office.15).aspx
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
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 -
Using Visual Studio as an HTML editor with SharePoint's Design Manager
I'm building a master page using Design Manager. I've mapped a network drive so that I can access the MasterPage.html file with an HTML editor.
I'd like to use Visual Studio 2012 as my HTML editor. But, when I modify MasterPage.html in VS, it creates a MasterPage.html~RF9158aed.TMP file alongside the MasterPage.html and MasterPage.master files, which breaks the master page in SharePoint.
I can modify MasterPage.html successfully with NotePad. I can also modify an html file, that is not associated with a folder in SharePoint via a networked drive, with VS.
Can I use Visual Studio as an HTML editor in this scenario? If so, what am I doing wrong?
Your help would be much appreciated.
Thanking you in anticipation.
Roger
rogerwithnellThe TMP file is used by VS to save off changes in the file your working on, so you can perform Undos for instance. If you shut down VS it should clean those up for you. However, this can be a challenge if you're still working on the file.
I would just make a copy of the MasterPage and place it in a folder outside the mapped folder. Then you can simply copy and paste it back into the mapped folder.
FYI, don't do this with any OOTB MasterPages! Please make a copy and rename one that comes with SP, you don't want to change those in case you need to revert back.
Good luck!
Brandon Atkinson
Blog: http://sharepointbrandon.com -
How I can use Visual Studio 2013 to create lists or libraries via remote?
Hello guys,
I use visual studio on my machine and try to create a list, but the sharepoint server is on another machine. It is possible to run a program on my computer and then create a list on the sharepoint server. If yes, how can I achieve this?
Best regards
MatthiasYou can create and manage lists and libraries using SharePoint Designer. To use Visual Studio you would have to create a SharePoint project, create a feature, define the list, etc. then create a Solution package and deploy that to the server. If you just
want to manually add a list then use Designer.
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
Sharepoint 2010 Remote Development using Visual Studio 2013 Connection Errors
I have a customer who is using a custom skinned site developed in Sharepoint 2010.
I am trying to debug a webpart that is not loading on a page.
My Environment:
Local Laptop running Win 7 64 Enterprise, Visual Studio 2013, and Sharepoint Designer 2010.
I connect to the customers network via VPN and use RDP to access the server. I have Admin rights to the server.
Everything that I have read indicates that Web Part dev has to be done in VS. When I try to connect using server explorer, VS kicks back a 'Server Can not be found' error.
I have tried using the computer name, the app url listed in SP Central Admin, the IP address of the box, and the actual URL of the site. However, VS can not connect to the server.
I have done some homework on connecting VS to a remote machine:
Adding New Servers in Server Explorer
http://msdn.microsoft.com/en-us/library/edfcxas2%28v=vs.71%29.ASPX
Add Server Dialog Box
http://msdn.microsoft.com/en-us/library/107b72aa%28v=vs.71%29.ASPX
SharePoint -how to connect remotely to production server
http://stackoverflow.com/questions/3188364/sharepoint-how-to-connect-remotely-to-production-server
SharePoint 2010 Development with Visual Studio
http://stackoverflow.com/questions/10529917/sharepoint-2010-development-with-visual-studio
Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008
http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx
Using SharePoint Designer 2010 to Work with Web Parts
http://msdn.microsoft.com/en-us/library/ff630941%28v=office.14%29.aspx#odc_sp14_qn_UsingSharePointDesigner2010WorkwithWebParts_CreateXSLTListView
The last connection article is confusing because one of the SO answers indicates that you do not need to have SP2010 installed.
I have been doing lots of reading on SP structure, and it seems to jump all over the place. (Or at least my research does). I have been reading this Ebook:
SharePoint 2010 Development with Visual Studio 2010
http://books.google.com/books/about/SharePoint_2010_Development_with_Visual.html?id=TVKICs4vHTcC
My questions are:
Why cant I connect to the Server if I connected through VPN which would inherently make the server a local network computer?
Do I need to have VS installed on the actual server? I read that I can install Sharepoint Foundation locally and this will give me access to the server in VS.
Do I need to have the full version of VS installed in order to use Remote Tools?
For the Web Parts:
Why cant I see the web parts in Sharepoint Designer? I take it they are exclusively designed in VS, which brings me back to the questions above.
In Sharepoint Designer, I can see a custom view that was created from a custom list. I want to add that list to the page where the web part isnt working. When I open up the Edit Interface, and try to find that list, it does not display in the 'Lists and Libraries'
menuHello,
As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
Correct me if i misunderstood you
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
SharePoint 2013 State Machine Workflow Developped using Visual Studio 2013 Terminated
Hi all,
I developped a state machine workflow using Visual Studio 2013, and deplyed to SharePoint 2013, the workflow work fine for first task, and some times for second task.
after that the workflow become terminated with below error:
- System.Activities.Statements.WorkflowTerminatedException: The workflow instance exceeded the throttle of 10000 activities executed in a row and could not be unloaded because it was not persistable.
I spent many days to solve this issue but witout any result...
Please advice...Hi,
According to your description, there seems an endless loop in your workflow which makes the workflow exceed the throttle.
A suggestion is that you can create a new clean sample state machine workflow firstly, when it works without error, then adding other activities with custom logic
gradually.
By doing this, it would be easier to find out what might cause the error in this workflow.
A demo about Create State machine Workflow In SharePoint 2013 for your reference:
http://www.splessons.com/2013/12/create-state-machine-workflow-in-sharepoint-2013-using-visual-studio-2012/
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
How to create a three state approval workflow in SharePoint 2013 using visual studio 2013
Hi Everyone,
i have a requirement like 3 state to approve. Here is the details:- when the item added into the list it will go for reviewer. Once the reviewer review the item, he will assign the task to concern person/department(Parallel process more than two persons).
Once they will approve the request again it will come back to reviewer and he will assign the task to team member(parallel process). Once the team member accepted then workflow terminate.
i want develop this workflow using visual studio 2013 only, not using designer..
Thanks in Advance.....
MalleshHello,
you can find multiple sample on the web like those
http://www.splessons.com/2013/12/create-state-machine-workflow-in-sharepoint-2013-using-visual-studio-2012/
http://msdn.microsoft.com/en-us/library/ee231606.aspx
I don't think that's very different using VS2013 or VS2012
Best regards, Christopher.
Blog |
Mail
Please remember to click "Mark As Answer" if a post solves your problem or
"Vote As Helpful" if it was useful.
Why mark as answer? -
Question about creating association between Sharepoint BDC entities using Visual Studio 2010
I am following this tutorial:
http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/08/02/walkthrough-of-creating-association-between-sharepoint-bdc-entities-using-visual-studio-2010.aspx
I am getting the following error:
There is an error in the TypeDescriptors of Parameters on Method with Name 'CustomerToOrder' on Entity (External Content Type) with Name 'Customer' in Namespace 'BdcAssociationSample.BdcModel1'. The TypeDescriptors incompletely define where the Foreign
Identifiers of Entity 'Order' in Namespace 'BdcAssociationSample.BdcModel1' are to be read. That Entity expects exactly '1' Identifiers, but only '0' TypeDescriptors with the correct Association were found from which to read them.
I have viewed the following:
http://lightningtools.com/business_connectivity_services/the-typedescriptors-incompletely-define-where-the-identifiers-of-entity-x-are-to-be-readbcs-error/
after reading that article, I am still not sure what setting I am missing. Does anyone have the full working source code from the msdn article linked above?Hi,
According to your post, my understanding is that you got the symbols not loaded error.
First try rebuilding your project by right mouse click the project > Rebuild If that doesn't work, try a clean of the project (right mouse click on the project > clean)
If that didn't work check this:
Right mouse click your project
select [Properties]
select the [Build] tab
make sure [Define DEBUG constant] and [Define TRACE constant] are checked
Click the [Advanced] button at the bottom of the Build tabpage
Make sure that [Debug Info:] is set to [full]
Click [OK] and rebuild the project ;
Hope that works for you! (step 6 generates the .pdb files, these are the debugging symbols)
What’s more, you can clean & re-compile the code, then install the respective dlls one more time to GAC (just remove them before adding to GAC again), do an IISReset to check whether it works.
More reference:
http://stackoverflow.com/questions/2155930/fixing-the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-fo
http://stackoverflow.com/questions/2301216/the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-for-this-d
http://geekswithblogs.net/dbutscher/archive/2007/06/26/113472.aspx
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 -
Create SharePoint 2013 hosted app using visual studio 2013
i tried to create sharepoint hosted app, i just created a new project and try to deploy it but it failed every time with different error sometimes system account can't run the project, created another administrator and try to re deploy it so i had a new
error that the visual studio project need a administration permissions and i already grant the administration permissions for the new user, any one can provide a complete tutorials on how we can create new hosted sharepoint app using visual studio 2013
Mohamed AbdeenHi,
According to your post, my understanding is that you want to create SharePoint 2013 hosted app using visual studio 2013.
Here are some great blogs for your reference:
How to: Create a basic SharePoint-hosted app
My First Sharepoint-Hosted App in 2013 - CodeProject
Setting up your App domain for 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 -
Visual Studio 2010 and SharePoint Foundation 2010
From a development perspective, if I have a Windows 2007 Operating System and download Sharepoint Foundation 2010, can I develop web parts using Visual Studio 2010? Are there other components I need?
When we convert to SharePoint Server 2013 in production, is there a version of VS that will allow me to remotely access that server?Hi,
If your server have already installed the SharePoint Foundation 2010, we can develop web parts using Visual Studio 2010/2012/2013.
If you want to convert to SharePoint Server 2013 in production, you need use Visual Studio 2012/2013 and install Microsoft Office Developer Tools for Visual Studio 2012 which can be found here:
http://www.microsoft.com/visualstudio/eng/office-dev-tools-for-visual-studio (direct install :
http://aka.ms/OfficeDevToolsForVS2012).
Best Regards
Dennis Guo
TechNet Community Support -
Add new link on Quick Launch using visual studio
Hi,
How can I add new link on quick launch using visual studio?
I saw many link about developing quick launch or top link bar.
But they are using visual webpart to develop this function and can add
when the user add this webpart. How can I add automatically when I deploy the project.
Thanks in advance!
Best Regards, wendyusing System;
using System.Web.UI;
using System.Linq;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Navigation;
namespace SPQuickLaunchAddItemWebPart.VisualWebPart1
public partial class VisualWebPart1UserControl : UserControl
protected void Page_Load(object sender, EventArgs e)
CleanUpQuickLaunch(“My Header”);
AddQuickLaunchItem(“My Header”, “http://www.google.com/q=stuff”, “My Link Here”, “http://www.google.com”);
CleanUpTopNavigationBar(“My Header”);
AddTopNavigationBarItem(“My Header”, “http://www.google.com/q=stuff”, “My Link Here”, “http://www.google.com”);
AddTopNavigationBarItem(“My Header”, “http://www.google.com/q=stuff”, “My Link Here1″, “http://www.google.com”);
public static void CleanUpQuickLaunch(string header)
using (SPSite site = SPContext.Current.Site)
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPNavigationNodeCollection quickLaunch = web.Navigation.QuickLaunch;
// try to get quick launch header
SPNavigationNode nodeHeader = quickLaunch.Cast<SPNavigationNode>().Where(n => n.Title == header).FirstOrDefault();
//if header not found remove it
if (nodeHeader != null)
quickLaunch.Delete(nodeHeader);
public static void CleanUpTopNavigationBar(string header)
using (SPSite site = SPContext.Current.Site)
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPNavigationNodeCollection topNavigation = web.Navigation.TopNavigationBar;
// try to get quick launch header
SPNavigationNode nodeHeader = topNavigation.Cast<SPNavigationNode>().Where(n => n.Title == header).FirstOrDefault();
//if header not found remove it
if (nodeHeader != null)
topNavigation.Delete(nodeHeader);
public static void AddQuickLaunchItem(string header, string headerURL, string item, string url)
using (SPSite site = SPContext.Current.Site)
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPNavigationNodeCollection quickLaunch = web.Navigation.QuickLaunch;
// try to get quick launch header
SPNavigationNode nodeHeader = quickLaunch.Cast<SPNavigationNode>().Where(n => n.Title == header).FirstOrDefault();
//if header not found create it
if (nodeHeader == null)
nodeHeader = quickLaunch.AddAsFirst(new SPNavigationNode(header, headerURL, true));
nodeHeader.Update();
//try to get node item under header
SPNavigationNode nodeItem = nodeHeader.Children.Cast<SPNavigationNode>().Where(n => n.Title == item).FirstOrDefault();
//If item not found under heading then create it
if (nodeItem == null)
nodeItem = nodeHeader.Children.AddAsLast(new SPNavigationNode(item, url, true));
else
nodeItem.Url = url;
nodeItem.Update();
nodeHeader.Update();
public static void AddTopNavigationBarItem(string header, string headerURL, string item, string url)
using (SPSite site = SPContext.Current.Site)
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPNavigationNodeCollection topNavBar = web.Navigation.TopNavigationBar;
// try to get quick launch header
SPNavigationNode nodeHeader = topNavBar.Cast<SPNavigationNode>().Where(n => n.Title == header).FirstOrDefault();
//if header not found create it
if (nodeHeader == null)
nodeHeader = topNavBar.AddAsFirst(new SPNavigationNode(header, headerURL, true));
nodeHeader.Update();
//try to get node item under header
SPNavigationNode nodeItem = nodeHeader.Children.Cast<SPNavigationNode>().Where(n => n.Title == item).FirstOrDefault();
//If item not found under heading then create it
if (nodeItem == null)
nodeItem = nodeHeader.Children.AddAsLast(new SPNavigationNode(item, url, true));
else
nodeItem.Url = url;
nodeItem.Update();
nodeHeader.Update();
above code demonstrate how to add node inside the quick launch and top navigation.
you can also follow the below link.
http://myspexp.com/2012/04/30/adding-items-to-your-quick-launch-or-top-navigation-programmatically/
Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.
Maybe you are looking for
-
I support a law firm that users headers and footers in their documents. They are upgrading from Adobe Acrobat Pro 9 to XI. when they did an install on one PC, the headers and footers in a PDF did not show and had to be recreated. Is there a way ar
-
Group by returning more than one column in a single query
Hello, Sorry to ask such a simple question I guess, but here is my problem. I'm building a query to get say the smallest user_id from employees in the company by department. The query goes like : select emp..department, min(emp.user_id) from employee
-
I have converted forms 6i to forms 9i and is facing a problem - An item color has become red and is not changing by setting the background colours but i found out that if the required field is changed to no , the red colour disappears , Can anyone he
-
Digital persona update 4.1
Hi, This morning, my software manager offered me an update of Digitap persona. I'm running Windows 7 RC After installation, it takes many attempts to get my fingerprint authenticated. I have to swipe my fingers approx >10 times to get myself authenti
-
Different Disk settings in a RAID setup??
Hi guys, a quick question, if i setup a striped RAID, using two 1TB Drives, can i : Partition the drive into 2 partitions(this i think i very possible) Can i make the partition i want to use as my system disk be journaled, and the other partition nor