Replicating Circulation workflow in Sharepoint Online

Hi,
I am looking at replicating the circulation workflow in SharePoint Online, but without success.
The requirement is to send a policy document to one or more employees and capture their "signature" - could be just a text field with their name printed in - when they press "I agree" button.
Idea is to make a new employee read through and capture their consent in some way.
I did research third party products like DocRead, but I am looking for something simple and within SharePoint Online.
I am not a C# programmer - greatly appreciate your help!
Regards,
E K

Only way is to achieve it using Javascript. No out of box option available
http://sharepoint.stackexchange.com/questions/71014/show-users-page-document-on-first-time-login
Create list of users on site root. In list create boolean field for Policy agreement. Then you can use jQuery on checked. Code needs to be adjusted. I removed a lot from working code I use in similiar solution.
$(document).ready(function() {
$("input[id$='BooleanField']").click(function(){
if($(this).is(':checked')) {
var taskDesc = $($(this).closest('tr').children(":first")).eq(0).text();
completeSelectedTask(taskDesc);
function completeSelectedTask(taskDesc) {
var queryStr = "<Query> <Where><And><Eq> <FieldRef Name='Assignee'/> <Value Type='Text'>" + loginName + "</Value> </Eq><Eq> <FieldRef Name='Title'/> <Value Type='Text'>" + taskDesc + "</Value> </Eq></And></Where> </Query>";
$().SPServices({
operation: "GetListItems",
async: false,
listName: "SharePointCustomUserListNameHERE",
CAMLQuery: queryStr,
CAMLViewFields: "<ViewFields> <FieldRef Name='Title' /><FieldRef Name='Assignee' /><FieldRef Name='Completed' /> </ViewFields>",
completefunc: function (xData, Status) {
CompleteListItem(xData, status)
function CompleteListItem(xData, status) {
var itemId;
var itemTitle;
$(xData.responseXML).find("z\\:row").each(function () {
itemId = $(this).attr("ows_ID");
itemTitle = $(this).attr("ows_Title");
$().SPServices({
operation: "UpdateListItems",
aysnc: false,
batchCmd: "Update",
ID: itemId,
listName: "SharePointCustomUserListNameHERE",
valuepairs: [["Completed", "True"]],
completefunc: function(xData, Status) {
if (Status == 'success') {
//var msg = "The assigned task '" + itemTitle + "' has been marked as complete.";
//messageId = SP.UI.Notify.addNotification(msg, false);
else {
alert(Status +' : There was a problem adding your information to the database. Please try again or contact Internal Support at 812-468-1000.');
This should all go into site page where user list was created. You could then add javascript code to home page to check if user has task completed in list. If not then redirect to your site page mentioned above.
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • Develop Form and Workflow in SharePoint Online and On-Premise

    Hi Expert,
    I have the question about Form and Workflow in SharePoint Online vs ShrePoint On-Premise
    Current Problem : Customer is implemented Form and Workflow in SharePoint Online but they have a problem some features that didn’t work in SharePoint Online. I will have a meeting to discuss Do and Don’t Form and Workflow in SharePoint Online compare SharePoint
    On-Premise.
    Please suggestion.
    Thank you

    Hi MasterBird,
    There is no documentation to explain the difference of the custom form and workflow between SharePoint Online and SharePoint On-Premise. For your issue, you can have a look at the following blog:
    http://www.techrepublic.com/blog/the-enterprise-cloud/get-infopath-forms-and-sharepoint-online-with-office-365/
    https://support.office.com/en-us/article/Office-365-known-issues-6b380978-84ce-49af-be5d-f7cda0fe28f9?ui=en-US&rs=en-US&ad=US#__sharepoint_online_preview
    https://support.office.com/en-in/article/Configure-InfoPath-Forms-Services-a8609546-c0d7-4956-81b6-08e93eb4b290?ui=en-US&rs=en-IN&ad=IN
    http://blog.sharepointlearn.com/2011/11/03/sharepoint-in-office-365-the-good-the-bad-the-brilliant-and-the-ugly/
    Thanks,
    Eric
    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]
    Eric Tao
    TechNet Community Support

  • Form and Workflow in SharePoint Online vs SharePoint On-Premise

    Hi Expert,
    I have the question about Form and Workflow in SharePoint Online vs ShrePoint On-Premise
    Current Problem : Customer is implemented Form and Workflow in SharePoint Online but they have a problem some features that didn’t work in SharePoint Online. I will have a meeting to discuss Do and Don’t Form and Workflow in SharePoint Online compare SharePoint
    On-Premise.
    Please suggestion.
    Thank you

    Hi MasterBird,
    For SharePoint 2013 On-premise, we can :
    Comlete control of our environment and data
    Supports heavy customization
    Keep sensitive information in-house
    Easier integration into line of business systems
    Full development options for developers
    For SharePoint Online workflow:
    Workflow 2010 & 2013 are available with Standard and Enterprise Editions without having to install
    If using Windows Azure workflow functionality is the same as 2013
    Cannot create custom Visual Studio workflows
    For InfoPath Form Services you will need Office 365 Enterprise Could Edition or SharePoint Online Plan 2
    More information, please refer to the video:
    http://www.youtube.com/watch?v=eNtCH3qOk2g
    Best Regards,
    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

  • "Invalid text value" error when calling a web service from a workflow in SharePoint Online

    I'm trying to create a workflow that loops through a list in SharePoint Online using a REST web service call. However, I'm having
    some trouble trying to pass the authentication token as described in the following article.
    http://www.fabiangwilliams.com/2013/09/03/more-on-sharepoint-2013-r...
    Basically, the workflow stops right at the "Call web service" action, and the only error it tells me is the following.
    Invalid text value.
    A text field contains invalid data. Please check the value and try again
    Has anyone had success with web service calls to SharePoint Online?
    Dan Kreitz, Solutions Architect, Séafra Inc.

    Hi DanPoint,
    Thank you for your sharing!
    Best Regards,
    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

  • Workflow in SharePoint Online 2013

    Is is possible to have dynamic workflow in Sharepoint? 
    I want to create a workflow using visual studio or designer and the levels of approval in workflow will be controlled by a list. If the list contains 5 levels of approvers, workflow should be able to build 5 levels at runtime. If possible then, whether possible
    in SharePoint online.
    I am little new to Visual Studio workflow and office 365. 
    Please help.

    Hi Arun,
    Thanks for posting your query, Kindly browse the below mentioned URL to achieve multiple level workflow, it uses Recall function to call workflow multiple times 
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/08/16/a-sample-approval-workflow-which-can-be-recalled-by-initiator.aspx
    Also,
    check out below mentioned URLs
    http://sharepointwf.codeplex.com/
    http://amalhashim.wordpress.com/2013/03/14/sharepoint-custom-approval-workflow-with-dynamic-approvers-using-sharepoint-designer/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Design guidance: Site workflow for sharepoint online 2013 app store product

    CONTEXT:
    I am in the early design stage for a potential Office 365 Application Store application.
    My initial target customer is small businesses with under 100 employees.
    I will use a structured data store: Initial implementation should be local (lists or Access DB), but potentially scale up to an Azure database.
    My assumption is that the customer would already be Office 365 (2013) E3 customers and this product would be an add on.
    I like workflows because they are user-friendly: I would prefer to leverage the standard SharePoint workflows rather than reinvent the wheel, but I can implement my own workflow with a custom application if I need to.
    I am OK using C#, Access, JavaScript, JQuery, HTML, SQL... whatever gives the best solution. I prefer C#.
    I prefer a Visual Studio solution that I can manage in a source code repository.
    QUESTIONS/GUIDANCE:
    Can a standard SharePoint "Site Workflow" be part of a product delivered via an Office Application Store app?
    Can a Site Workflow work with an external Azure data connection? Can it work with a local Access database?
    Can I start with a SharePoint list, and easily migrate to an Azure database later?
    Or should I forget the standard site workflow completely and just build a C# application?
    Thanks for any guidance.

    Hi,
    First my question is what type of SharePoint Apps you are talking about? SharePoint Hosted, AutoHosted or Provider Hosted apps? For AutoHosted and Provider Hosted apps you have more control - as the apps will be running outside SharePoint and then you can
    run yourworkflow outside SharePoint. Still your app will be able to access SharePoint data using REST API and you have full control of which technology you would like to use your app (C#, asp.net etc.). With SharePoint Hosted apps, your app will be running
    inside SharePoint and you will have limited capabilities to customize - only JS will be allowed in SharePoint hosted apps. You can still use workflow but you can't use external data - unless it's configured through BCS. So my suggestion would be, if are looking
    for an add-ons like solution think about non-SharePoint hosted apps. However if you are thinking of limited capabilities, then think about SharePoint hosted apps.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • How to get First Occurnece of SubString from any string using SharePoint Designer Workflow in SharePoint Online 2013(Office 365)

    Hello All,
    I am facing Problem in SharePoint Designer Workflow. The Problem is that while replacing some subtstring with Space from a string which contains item like {Test, Test, Test, Test}, It replaces all items.
    Below two line we are using in Workflow.
    Can any body suggest some soultion for Finding first ouucrence of ", " so that we can replace only first value from string not all. When String values are different then getting proper values but if String values are same with comma
    seperated then it replace all values.
    Please some body help and your help will be heighly appriciable.
    Thanks in Advance.
    Thanks,
    Vivek Kumar Pandey   

    Have you tried to use Regular Expressions instead of Replace?
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Routing documents using SharePoint Online workflows

    Hello,
    I am trying to design a workflow for SharePoint Online, but have run into a few problems. Basically I need the workflow to work as follows:
     1. User submits a document (which is already in a Document Library in SharePoint) to a designated Supervisor for Approval
     2. Supervisor receives an email that a document is ready for approval. After reviewing:
           a. If Supervisor rejects, the document remains in the original folder
           b. If Supervisor approves, the document is automatically moved to a new folder named "Approved" within that same Document Library
    I thought there would be a template in SharePoint Online that would offer these features (i.e. the Publishing Approval workflow template I am currently trying to use), but I can't seem to enable an option to have the file automatically directed to an
    Approved folder. I have been reading online for the last hour or so and this seems to be possibly using Visual Studios, but I currently do not have that application. Are there any other options available?
    Please note - each user has their own "Approval" folder. So, if possible, I would need to apply this as a template to each user and specify the path of the Approval workflow for each user.
    I really appreciate any suggestions or advice you could provide.

    Hi,
    You can create a SharePoint Designer approval workflow to achieve this requirement. In the workflow, on approval,  add a step to copy the file to your target location. The following link demonstrates the use of Copy functionality in SharePoint Designer
    2013.
    http://cypher19.wordpress.com/workflow-copy-document-from-one-library-to-another/
    Narahari
    *******If a post answers your question, please click "Mark
    As Answer" on that post and/or "Vote
    as Helpful *********

  • SharePoint Online workflows show server error when link is clicked. Cannot terminate them.

    This is for SharePoint Online. I have a number of workflows on a list that are in a 'suspended' state when I navigate to the workflows page for the item. When I click the link to view the workflow, I get a server error.  I need to terminate these workflows.

    Hi,
    Based on your description, you want to terminate these workflows in SharePoint online.
    You can terminate these workflows by the CSOM implementation through passing the ID of the list and list item.
    You can refer to the code snippets below.
    // connect to the workflow services via a CSOM client context
    var clientContext = new ClientContext(siteCollectionUrl);
    var workflowServicesManager = new WorkflowServicesManager(clientContext, clientContext.Web);
    // connect to the instance service
    var workflowInstanceService = workflowServicesManager.GetWorkflowInstanceService();
    // get all instances
    var workflowInstances = workflowInstanceService.EnumerateInstancesForListItem(listId, listItemId);
    clientContext.Load(workflowInstances);
    clientContext.ExecuteQuery();
    foreach (var instance in workflowInstances)
    // is this what we are looking for?
    // if so, suspend it
    workflowInstanceService.SuspendWorkflow(instance);
    // or you can terminate it
    workflowInstanceService.TerminateWorkflow(instance);
    There is a similar case:
    https://social.msdn.microsoft.com/Forums/office/en-US/c62e1d54-bd58-4d38-9514-d58cd22557e4/stop-and-restart-workflow-on-item-edit-sharepoint-online?forum=sharepointdevelopment
    Best regards
    Sara Fan
    TechNet Community Support

  • Stop and Restart Workflow on Item Edit (sharepoint online)

    How can I stop running the workflow instances for the current updated list item?
    I mean, how can I recognize the item that just updated and how can I stop the workflow
    that access with this item? in s.p online.
    thank you! 

    Hi,
    According to your post, my understanding is that you wanted to cancel workflow in SharePoint online.
    We can pass the ID of the list & list item to get all the instances, then you can enumerate each of them and find the one you want to suspend or terminate.
    To pass the ID of the list and list item, you can refer to the following code snippets.
    // connect to the workflow services via a CSOM client context
    var clientContext = new ClientContext(siteCollectionUrl);
    var workflowServicesManager = new WorkflowServicesManager(clientContext, clientContext.Web);
    // connect to the instance service
    var workflowInstanceService = workflowServicesManager.GetWorkflowInstanceService();
    // get all instances
    var workflowInstances = workflowInstanceService.EnumerateInstancesForListItem(listId, listItemId);
    clientContext.Load(workflowInstances);
    clientContext.ExecuteQuery();
    Then we can find the list item workflow to suspend as below.
    foreach (var instance in workflowInstances)
    // is this what we are looking for?
    // if so, suspend it
    workflowInstanceService.SuspendWorkflow(instance);
    // or you can terminate it
    workflowInstanceService.TerminateWorkflow(instance);
    http://sharepoint.stackexchange.com/questions/69366/how-do-we-stop-a-sharepoint-2013-workflow-azure-workflow-programmatically
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Lazy approval process in SharePoint online

    Hi All,
    Can we configure lazy approval process for workflows in SharePoint online?
    As per technet articles, it says we need to save incoming emails to a incoming email enabled document library which is not possible in SharePoint online.
    Please guide me through any links if this is possible in sharepoint online.
    Thanks in advance.
    Hepsi

    Hi,
    Catalog is supported in E3 and E4 subscriptions of SharePoint Online.  Please refer to the following technet article.
    https://technet.microsoft.com/en-us/library/jj819267.aspx
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • Change document file name via workflow - SharePoint Online

    Is it possible to change the filename of document uploaded in sharepoint online/onpremises using workflow?
    We would like to have documents uploaded to sharepoint but unfortunately some have the same name and this from a folder structure :(
    When i used a workflow and use set i keep getting error.
    Thanks in Advance

    Hi,
    We can create a calculated column and use SharePoint designer workflow to achieve your requirement.
    More information is here:
    http://www.oracular.com/site/index.php/easyblog/workflows-that-rename-files-part-1
    Best Regards
    Dennis Guo
    TechNet Community Support

  • SharePoint Online 2013 Workflows for one List stopped working after 07/08/2014

    Our client host application in Office 365 SharePoint Online 2013, and we just found that all workflows for one list stopped working after 7, Aug 2014. It kept displaying pop-up message "Something went wrong. To try again, reload the page and then start
    the workflow." when manually start a workflow for this List.
    Tested workflow for other list, there's no problem.
    Could anyone can help on this issue?

    Our client host application in Office 365 SharePoint Online 2013, and we just found that all workflows for one list stopped working after 7, Aug 2014. It kept displaying pop-up message "Something went wrong. To try again, reload the page and then start
    the workflow." when manually start a workflow for this List.
    Tested workflow for other list, there's no problem.
    Could anyone can help on this issue?

  • Unable to Create Workflows with either SharePoint Designer 2010 or 2013 to our SharePoint Online Service

    Hey there
    I was wondering if anyone could shed some light on our current issue using SharePoint Online (hope this question is in the correct place)
    We are using SharePoint Online and I believe we are using the SharePoint Plan 1 for EDU - which I believe is the A2 Free plan.
    I have being trying to get my head around the new changes (as we currently run a standalone 2010 deployment) and decided to see what workflow options I had.  I had read to use SharePoint Designer 2013 with the online service and after installation opened
    the package, connected to the site and tried to create a simple email workflow.  I first saw a loading screen stating
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available.  The assembly strong name is Microsoft.Activities, Version 1.0.0.0, Culture=neutral, PublicKeyToken=731bf3856ad364e35.
    Contact your server administrator for more information."
    after this it tried loading some metadata and then I saw:
    Server-side activities have been updated. You need to restart SharePoint Designer to use the updated version of activities.
    I close SPD down and rebooted and then same happened again and continues too.
    After research I applied a hotfix that was known to resolve the issue, but it still remains.  I also tried running SPD in admin mode but the same still happens.
    Lastly I tried selecting workflows 2010 from the drop down field when creating the workflow to see what happened.  I go the same.  I also keep getting the following as a pop from time to time.
    The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available.  The assembly strong name is Microsoft.Office.Workflow.Actions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.
    Contact your server administrator for more information.
    I have also tried to do the same in SharePoint Designer 2010, but receive the same massages.
    What should I be looking at or doing to help rectify this?
    Regards
    RDH

    uninstalled Language Pack and it worked!
    Uninstalling the Preview and installing SharePoint Designer 2013 resolved the error.
    http://community.office365.com/en-us/f/154/t/74327.aspx
    According to the link as linle provided, there are two deletions in local, please double check these two places:
    1.Delete all folders in the following directory:
    C:\Users\USER\AppData\Roaming\Microsoft\SharePoint Designer\ProxyAssemblyCache\
    2.Delete the files in all folders in this directory:
    C:\Users\USER\AppData\Local\Microsoft\WebsiteCache\  (don’t delete the folders, just delete the contents of the folders)
    Then, try to create a new workflow in SharePoint Designer 2013 to see if it works.
    You can first keep the list for the current status, and save it as a template which will be used to create another list.
    1.Login and locate the associated list on your SharePoint Online.
    2.Click List Settings under List tab, and click Save list as template.
    3.Type a File name, Template name, select Include Content, and click OK. Click OK.
    4.Click Site Actions->More Options->List.
    5.Locate and click the newly saved template, type a name, and click Create.
    Then, create a workflow in your SharePoint Designer 2010 associated to the new list to see if it works.
    Moreover, please check if there are any maintenances on your SharePoint Online which may cause the issue.
    1.Login to Office 365 Portal (https://portal.microsoftonline.com/).
    2.Click Service Health in the left pane of Admin page.
    3.Check the status of SharePoint Online
    If this helped you resolve your issue, please mark it Answered

  • Workflow to change file permission in SharePoint Online Document Library

    1.What are my options with SPD 2013 If I want to change a documents file permission in a workflow?
    2.Where does SPO host 2013 Workfows?
    3.If connecting to SPO Can I use Worklow Manager 1.0?
    4.Will I need to host my Workflow Manager workflows on server or Azure if running against o365/SPO?
    5.If I wish to create SPO 2013 workflows with Visual Studio 2012, what do I need and will I be limited to actions I see in SPD 2013?
    ============================
    Thank You
    cyberpine.com

    You can host this workflow as a SharePoint App in SharePoint Online or use SharePoint Designer to create this workflow as long as you use the app step. Managing the permissions can be done with a REST call.  The initiator of the workflow must have
    been granted the right to "Manage Permissions" and the app must have full control of the Site Collection.   We have done so for several of our clients.   I know you asked this question some time ago, but I thought the info might still be helpful.

Maybe you are looking for

  • Google images shows 2,400,000 image results but only displays 3,000- NOT a preference issue- why/how to fix

    When accessing image searches, such as "typographic resume" I get an insanely large result such as 2,470,000 images. However, after about 3,000 results they stop showing without a notification that similar results have been removed. I have my prefere

  • Problems with Storage Cluase

    Hi, I have problem with the storage cluase on tables and tablespaces. When I want to change the max_extents value I get an an ora error. ALTER tablespace TEST storage ( maxextents 999) ORA-02142 Not a valid alter tablespace option It is an locally ma

  • 5400 or 7200 rpm?

    Upgrading my hard drive and was wondering what everyone recommends for rpm. I've heard 7200 suck up battery but provide a lot better performance. Which do you prefer?

  • Content encoding error comes up no matter what site I try

    Error message: The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. == This happened == Every time Firefox opened == it started a week or so ago, can't think of a reason why == == User Agent =

  • Removing a CMP Entity Bean

    I'm trying to remove a CMP Entity Bean from my project but after I do this the application becomes useless. When I start the application afterwards I get such a warning: "TopLink found problems in toplink-ejb-jar. Please ensure that there are correct