tag:blogger.com,1999:blog-4455058894110083658.post7578480895162837501..comments2024-02-26T22:59:25.161+00:00Comments on Vardhaman Deshpande: Managing SharePoint 2013 Workflows with CSOMVardhaman Deshpandehttp://www.blogger.com/profile/17919845281919756108noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-4455058894110083658.post-57143983165358955992019-01-15T14:34:56.031+00:002019-01-15T14:34:56.031+00:00Hi Vardhaman
I am trying to programmatically atta...Hi Vardhaman<br /><br />I am trying to programmatically attach the workflow to list and start the workflow on the item.<br /><br />I am trying to create API to do that.<br /><br />Thanks for your post.<br /><br />Instead of having the credentials in the code, Can I have a APP Only Permission. I can registered the app with AAD and grant permission there.<br /><br />Is it possible ?<br /><br />Can you please direct me to appropriate documentation with APP Only Permission in CSOM.<br /><br />Appreciate your help.<br /><br />Thanks,<br />Neeraj P.Neerajhttps://www.blogger.com/profile/15308552977501851901noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-42160179001764736802017-01-31T20:35:17.066+00:002017-01-31T20:35:17.066+00:00Hi Ketki,
Yes you can use CSOM/Powershell to depl...Hi Ketki,<br /><br />Yes you can use CSOM/Powershell to deploy a workflow to multiple site collection. Basically, if you have the XAML file of the workflow, you should be able to publish it to a site.<br /><br />This particular example is of Powershell but you can use CSOM and .NET code to do the same thing: <a href="http://www.piasys.com/blog/how-to-publish-a-workflow-definition-in-sharepoint-using-powershell" rel="nofollow">http://www.piasys.com/blog/how-to-publish-a-workflow-definition-in-sharepoint-using-powershell</a>Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-14533812419626013382017-01-31T01:36:56.117+00:002017-01-31T01:36:56.117+00:00hi Vardhman,
if we have to create a Standard appro...hi Vardhman,<br />if we have to create a Standard approval workflow for Sharepoint online and have to deploy it as part of a custom list workflow and basically deploy this workflow to multiple site collections how can we do it?<br />Basically a custom aproval workflow on a list, and if this has to be deployed to 100+ site collections on SPO how can we do it? As manually deploying the workflow to 100 site collections may not be feasible, any CSOM based approach you are aware of?<br /><br />Thanks<br />Anonymoushttps://www.blogger.com/profile/01830313354714220871noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-42482398244147968082017-01-27T09:02:59.868+00:002017-01-27T09:02:59.868+00:00Hi Subbu yes this is also possible using JSOM but ...Hi Subbu yes this is also possible using JSOM but I am afraid do not have any code snippets. Check my other post on strarting workflows using JSOM and you should get an idea. Thanks!Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-47650366702515955262017-01-27T03:53:59.950+00:002017-01-27T03:53:59.950+00:00Thanks for this post.
Can i use only JSOM(strictl...Thanks for this post.<br /><br />Can i use only JSOM(strictly no CSOM) here to accomplish this requirement?Also, i want to run this on 14 to 16 lists and almost 20 items in a list.<br />Can i achieve this, if yes can you please help me with some code snippets.<br /><br />Thanks again.<br /><br />SubbuSubbuhttps://www.blogger.com/profile/17807671126409416731noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-50432006434024644622016-12-02T12:05:58.039+00:002016-12-02T12:05:58.039+00:00Sarang Kulkarni 2.0 from Rapid Circle!
Did you tr...Sarang Kulkarni 2.0 from Rapid Circle!<br /><br />Did you try this property? https://msdn.microsoft.com/en-gb/library/microsoft.sharepoint.client.workflowservices.workflowdefinition.xaml.aspxVardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-78648816357490870892016-12-02T10:24:10.942+00:002016-12-02T10:24:10.942+00:00Hi Vardhman,
This is Sarang Kulkarni from Rapid C...Hi Vardhman,<br /><br />This is Sarang Kulkarni from Rapid Circle, actually i am working on the some project in which i ought to save the list workflow xaml file to the client machine through CSOM can you please provide me some helpSaranghttps://www.blogger.com/profile/01237311341562750433noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-83659410724554868562016-08-23T17:48:40.282+01:002016-08-23T17:48:40.282+01:00Hi Mayur,
2013 list workflows can only be associat...Hi Mayur,<br />2013 list workflows can only be associated to the list or library but not to a content type. You can check the content type and add some logic dependent on the content type in the workflow.Danielhttps://www.blogger.com/profile/06652466672199531170noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-76823657872675704782016-07-01T09:06:10.188+01:002016-07-01T09:06:10.188+01:00Hi,
Thank you for the post. It has helped to assoc...Hi,<br />Thank you for the post. It has helped to associate the 2013 workflow.<br />Can you please suggest how do i associate the workflow to a content type using csom.<br />i have found some posts to associate 2010 workflow to content type but nothing for 2013 workflow.<br />Anonymoushttps://www.blogger.com/profile/14370948590140439377noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-63044787876097859112016-06-30T13:52:38.589+01:002016-06-30T13:52:38.589+01:00Thank you for the post. It helped me with the issu...Thank you for the post. It helped me with the issues i faced with 2013 workflow. I had working code but that worked for 2012 workflow only.Anonymoushttps://www.blogger.com/profile/14370948590140439377noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-37995075378297882992016-06-30T13:51:05.165+01:002016-06-30T13:51:05.165+01:00Thank you for the post. i had a working code but t...Thank you for the post. i had a working code but that worked for 2010 workflow and had issue with 2013 workflow. The one you have shared helped me. ThanksAnonymoushttps://www.blogger.com/profile/14370948590140439377noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-80783320266474807922015-11-19T12:08:12.745+00:002015-11-19T12:08:12.745+00:00Hi Vans,
As far as I know, I don't think that...Hi Vans,<br /><br />As far as I know, I don't think that is possible at the moment.Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-41841809727045002152015-11-19T12:05:31.848+00:002015-11-19T12:05:31.848+00:00Greate article.
I would like to know if it is pos...Greate article. <br />I would like to know if it is possible now to associate integrated app workflow using CSOM. I am creatin an app with integrated workflow and I would like to associate it to a list programmatically using CSOM. <br />Thanks for the helpVanshttps://www.blogger.com/profile/09823180623658899504noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-9651631373915467002015-10-28T07:16:27.517+00:002015-10-28T07:16:27.517+00:00Hi Mahesh
The goal of this post is to explore the...Hi Mahesh<br /><br />The goal of this post is to explore the workflow capabilities of CSOM so I have tried to keep it as simple as possible.<br />There are other ways of authenticating CSOM such as using an App Only token. You can find many posts on that.<br /><br />Thanks!Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-25295750393300846322015-10-28T05:37:44.233+00:002015-10-28T05:37:44.233+00:00Approach seems great, thanks for the details. But ...Approach seems great, thanks for the details. But is this is a right approach of passing credentials in CSOM, anyone can get to view the credentials and can tamper with the site?Mahesh Rondahttps://www.blogger.com/profile/02614577328301299437noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-13502269887897900582015-09-03T08:25:32.129+01:002015-09-03T08:25:32.129+01:00Good post on SharePoint Workflow. ThanksGood post on SharePoint Workflow. ThanksDivyesh Lappawalahttps://www.blogger.com/profile/13762323603816502055noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-57917874742829495822015-07-03T16:31:40.280+01:002015-07-03T16:31:40.280+01:00Hi yaswanth,
Managing Workflows with CSOM is only...Hi yaswanth,<br /><br />Managing Workflows with CSOM is only available in SharePoint 2013 (Standard or Enterprise)Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-85462214098794067832015-07-03T15:43:00.861+01:002015-07-03T15:43:00.861+01:00can you please provide sample code for terminating...can you please provide sample code for terminating the 2010 list workflows in 2010 sites using csomyaswanthhttps://www.blogger.com/profile/03238835856441715476noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-58990000098526744642015-06-17T18:33:28.767+01:002015-06-17T18:33:28.767+01:00Hello Vardhaman,
This is exactly what i needed fo...Hello Vardhaman,<br /><br />This is exactly what i needed for a piece of development. <br />However, when i run the exact code (while pointing to the right list id's) for subscribing a workflow to a list, i get an exception:<br /><br />An unhandled exception of type 'System.AccessViolationException' occurred in CSOMWorkflow.exe<br /><br />Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.<br /><br />Would you happen to have any idea on how to get around this? Is there some kind of workflow-permissions-setting i need on my tenant?<br /><br />RubenRuben Pillenhttps://www.blogger.com/profile/07588439604352664961noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-74697433154932126722015-06-17T18:32:50.886+01:002015-06-17T18:32:50.886+01:00Hello Vardhaman,
This is exactly what i needed fo...Hello Vardhaman,<br /><br />This is exactly what i needed for a piece of development. <br />However, when i run the exact code (while pointing to the right list id's) for subscribing a workflow to a list, i get an exception:<br /><br />An unhandled exception of type 'System.AccessViolationException' occurred in CSOMWorkflow.exe<br /><br />Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.<br /><br />Would you happen to have any idea on how to get around this? Is there some kind of workflow-permissions-setting i need on my tenant?<br /><br />RubenRuben Pillenhttps://www.blogger.com/profile/07588439604352664961noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-27114883018531763782015-01-20T09:52:58.803+00:002015-01-20T09:52:58.803+00:00Thanks Vardhaman
I look forward to hearing back f...Thanks Vardhaman<br /><br />I look forward to hearing back from you. <br /><br />KarlKarlhttps://www.blogger.com/profile/01306483181729099264noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-2438374823483386782015-01-15T23:37:07.367+00:002015-01-15T23:37:07.367+00:00Hi Karl,
That is a very interesting scenario you ...Hi Karl,<br /><br />That is a very interesting scenario you have. I am afraid I have not tested my code for it. I will have a look at it soon and post here if I find anything. <br /><br />-VardhamanVardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-49874650328005808382015-01-14T06:42:32.564+00:002015-01-14T06:42:32.564+00:00Hello
Thanks for this post very helpful.
I have ...Hello<br /><br />Thanks for this post very helpful.<br /><br />I have followed your other <a href="http://www.vrdmn.com/2014/09/integrated-workflow-apps-deploy.html" rel="nofollow">here</a> to deploy a workflow using the integrated app workflow. I deployed this app to the site and can manually associate the workflow to a list. However, I need to be able to do this programmatically so I followed this post to associate the workflow but when I try to get the definitions I get an empty collection<br /><br /><br /><br />Karlhttps://www.blogger.com/profile/01306483181729099264noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-71854129060895553552014-12-09T23:32:31.907+00:002014-12-09T23:32:31.907+00:00@Anil,
See this post for Workflow Integrated Apps...@Anil,<br /><br />See this post for Workflow Integrated Apps:<br /><a href="http://www.vrdmn.com/2014/09/integrated-workflow-apps-deploy.html" rel="nofollow">http://www.vrdmn.com/2014/09/integrated-workflow-apps-deploy.html</a>Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-50386123844440385572014-06-02T13:09:22.409+01:002014-06-02T13:09:22.409+01:00@Anil,
Thanks!
1) Visual Studio Workflow is depl...@Anil,<br /><br />Thanks!<br /><br />1) Visual Studio Workflow is deployed as a Sandbox Solution. But only the declarative Workflow. No Sandbox code.<br /><br />2) Right now, this approach does not work for associating App Web Workflows to Host Web. For that, something called the Integrated Workflow Apps is in the pipeline. It should be available in the coming months. Watch this video to know more about Integrated Workflow Apps: <a href="http://channel9.msdn.com/Events/SharePoint-Conference/2014/SPC3994" rel="nofollow">http://channel9.msdn.com/Events/SharePoint-Conference/2014/SPC3994</a>Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.com