Sharepoint 2013 custom workflow issue

Hi,
We are developing custom workflow in our sharepoint 2013 project using Visual studio 2013. We have got one issue while list item updation in custom workflow.
'Modified By' field is changed to System Account while updating item. It  is not done with elevated privilege or not with user token.
Thanks in advance
Nithya K Pillai

Hi Nithya,
You can try powershell to change the Modified by -
http://gallery.technet.microsoft.com/projectserver/Update-SharePoint-list-4e6272ab
or before your update method get the user and update the modified by like the below-
Item["Editor"] = User;
Item.Update();
Alternatively try using listItem.SystemUpdate for not updating modified by values -
http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.splistitem.systemupdate(v=office.15).aspx
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you

Similar Messages

  • SharePoint 2013 custom workflow using designer

    I am in the need of develop a custom workflow in SharePoint online. Requirement is shown in the below screenshot.
    I am able to create the above mentioned requirement using SharePoint 2010 workflow in SharePoint 2013 Designer.
    But I am not able to implement the above requirement using SharePoint 2013 workflow in SharePoint 2013 designer.
    Above flowchart gives two scenarios.They are
    Approval Scenario- 2 Must approve (First and second only considered, then workflow will be completed)
    Reject Scenario- If any one rejects, then workflow will be terminated.
    I am trying to implement the above flow chart using "Task Process" action available in SharePoint 2013 workflow, but above scenarios
    (1&2) not able to implement at the same time using "Task process".  Available completion criteria is shown in the below screenshot.
    My Question here is:
    Does the above requirement is possible using SharePoint 2013 workflow in designer(Not SharePoint 2010 workflow)?
    Thanks in advance.....
    Anandan M

    Hi
    from you consideration:
    Approval Scenario- 2 Must approve (First and second only considered, then workflow will be completed)
    Create a new column in your list ( approval numbers ) a hidden column ( COL_NO_APPROVALS), default value = 0
    Set your workflow, when a approve is applied to that item, this column will incerment by 1
    Alos include a condition, if COL_NO_APPROVALS = 1 ( this mean is the second approver ), finish the workflow and approve the item completly
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Sharepoint 2013 Custom Workflow - Email link to EditForm.aspx for Workflow Task

    I have created a custom workflow which starts a task with one or two users once a form is submitted.  These users receive an email with a link to the task that has been created.  The problem is it doesn't open the edit form for the task it just
    links to the displaypage.asp for the task.  This is causing all sorts of confusion so I just wanted to change the link to the edit form instead. 
    It seems simple enough but I just cant find a way to do it?! I am a beginner in this stuff so I have no visual studio experience and have designed all this using SPD 2013.
    Is there an easy way around this? Any help would be greatly appreciated!

    Hi KM, see the following link for a step-by-step process:
    https://support.office.com/en-in/article/Send-e-mail-in-a-workflow-11d5f9dd-955f-412c-b70f-cde4214204f4?ui=en-US&rs=en-IN&ad=IN#bm5
    cameron rautmann

  • SharePoint 2013 OOB workflow issue

    Hi,
    We are having issue with OOB workflow as below. Any help?
    Thanks
    srabon

    if you click on the "show error details", what details you getting?
    check this link for same kind of information....check the last
    comment at the end
    Also check this blog, how to fix this error.
    http://blogs.microsoft.co.il/lior/2012/03/29/sharepoint-workflows-the-specified-form-template-could-not-be-found/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Issue in sharepoint 2013 designer workflow kickoff

    We are facing issues in sharepoint 2013 designer workflow kickoff. When we kick off custom designer workflow using AD user with contribute/approve access, sendemail from task does not send an email. When we kickoff using administrator account task in
    the designer workflow sends an email. There seems to be multiple issues with kickoff. and it even does not give any error task gets created but send email does not work.
    Another issue in another approach-
    We are also not able to kickoff using one AD account which we are not login in everyday. If we kickoff using this account after 2/3 days kickoff says invalid state of object for that user. Once we login manually with that admin workflow kick off account
    again kick off starts. We do not want to let current user kickoff the workflow. 
    In both cases we are using new AD import in sp2013 and sync is done every 5 minutes.
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    May be a permission issue, see whether the contributor  has enough permission to participate in the workflow.
    Also try to set Design permission to test and see whether that works.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • Sharepoint 2013 designer workflow custom sendemail activity

    Does anybody know sharepoint 2013 designer workflow custom sendemail activity. Current OOB sendemail action from designer workflow cancels the entire workflow when sendemail fails.
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    What error did you meet when you used the OOB ‘Send Email’ action?
    I suggest you fix the error rather than creating a new workflow ‘Send Email’ activity.
    Of course, you can also customize a workflow activity to send email, there are two acticles about creating a custom workflow activity for your reference:
    http://msdn.microsoft.com/en-us/library/office/jj163911(v=office.15).aspx
    http://www.sharepoint-reference.com/Blog/Lists/Posts/Post.aspx?ID=37
    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

  • Custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list

    I  am looking for custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Greetings.
    pls check if it helps you.
    http://msdn.microsoft.com/en-us/library/office/jj554504(v=office.15).aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Update Column value after current item is Approved and then publish major version using Sharepoint 2013 designer workflow

    Hi,
    We have a requirement to update a column value once the item has been approved.
    Following settings have been made in the publishing articles list:
    Require content approval for submitted items : yes
    Create major and minor (draft) versions
    Who should see draft items in this document library? :Only users who can edit items
    Require documents to be checked out before they can be edited? : yes
    I have createdatu a Sharepoint 2013 workflow to check if Approval sts of current item = 0 i.e. Approved , then check out and update the item and finally checkin the item. Everything works fine till this point except that the minor version of the item is
    checked in. Due to this the updated columns are not published to others.
    Also, I created a Sharepoint 2010 workflow to SET CONTENT APPROVAL = APPROVED and started this workflow from my list workflow above, but the item does not get checked-in and always shows "In Progress" status with comment "The item is currently
    locked for editing. Waiting for item to be checked in or for the lock to be released.".
    Please let me know where I am missing out so that once the item is approved, column value gets updated and current item is still in Approved status.
    Thanks

    Hi,
    According to your post, my understanding is that you want to update Column value after current item is Approved and then publish major version using Sharepoint 2013 designer workflow.
    You will get into this kind of Catch-22 situation trying to set the Content Approval Status in SharePoint Designer workflow:
    - You must check out the document before you can change the Content Approval Status
             - You can't change the Content Approval Status once the document in checked out
    Since you set the Require documents to be checked out before they can be edited=Yes, you will need to check out the document when run the workflow on the item. But you cannot approve a document when it is checked
    out. So the logic in workflow conflicts.
    As a workaround, you can use the Start Another Workflow action to start the normal Approval workflow on the document.  The built-in Approval workflow can work with a document that’s not checked out.
    The designer approval workflow also can work with a document that’s not checked out.
    You can create two workflow using SharePoint Designer 2013.
    First, create a SharePoint 2010 platform workflow.
    Then, create a SharePoint 2013 platform workflow.
    Then when the SharePoint 2013 platform workflow start, it will start the SharePoint 2010 platform workflow to set content approval status, then the SharePoint 2013 platform workflow will update current item value.
    More information:
    SharePoint Designer Workflow Content Approval Issue
    SharePoint 2010 Approval Workflow with Content Approval
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Sharepoint 2013 online mobile issue.

    Dear all,
    When I try to fill out a form in mobile view on the iphone or android phone, the person or group column doesn't work at all.
    And when I try to approve a workflow I created with 2010 workflow, the page is just blank.
    basically everything is so broken under mobile view, but works under pc view on the phone.
    Anyone has any quick fix to this? I really need the mobile view to work properly. I know I can disable the mobile view, but I have to keep it. Thanks.
    Timothy Liu

    Hi,
    According to your post, my understanding is that you had Sharepoint 2013 online mobile issues.
    Please make sure you configure the mobile view correctly. You can refer to:
    Configure a SharePoint site for mobile devices - SharePoint Online for enterprises
    Use a mobile device to work with SharePoint Online sites
    Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • Details: System.ArgumentException: AssignedTo at Microsoft.Activities.Hosting.Runtime.Subroutine,sharepoint 2013 designer workflow task cancellation

    We are getting sharepoint 2013 designer workflow task cancellation only for a specific sharepoint user. Its working for other users.
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    Based on the error message, I recommend to check if the user with issue has user profile generated in User Profile Service Application.
    Please also check the ULS log for detailed error message and a screenshot of the workflow steps for further research.
    Thanks,
    Victoria
    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]
    Victoria Xia
    TechNet Community Support

  • Adding Custom Breadcrumb for SharePoint 2013 Custom Master-Page With A Custom Separator.

    Hi All,
    I have successfully converted an HTML file to a SharePoint 2013 Custom Master-Page with relevant style sheets. But when I used within the SharePoint site I could not find the breadcrumb. So I want to know how to do that? For that breadcrumb I need a custom
    separator like an arrow like in the below.
    As you can see the separator is a custom built one. To have this custom separator in my HTML I have used the following code snippet.
    <div class="breadcrumb-desktop">
    <span class="breadcrumb-links"><a href="#">SharePoint Site Home</a></span>
    <span class="breadcrumb-links"><a href="#">Sub Link 01</a></span> Active Page
    </div>
    The styles are as like in the below.
    .breadcrumb-desktop {
    width: 100%;
    font-family: Arial;
    padding: 23px 0 40px;
    float: left;
    font-size: 0.75em;
    line-height: 1.25;
    .breadcrumb-desktop > span.breadcrumb-links:after {
    content: " \203A ";
    white-space: pre;
    I have tried the following code snippet within the SharePoint site as
    <!--MS:<asp:sitemappath runat="server" sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" rendercurrentnodeaslink="false" hideinteriorrootnodes="true">-->
    <!--ME:</asp:sitemappath>-->
    But it did not display as I wanted.
    So how am I supposed to insert these to my Custom Master-Page's breadcrumb and style them? Please could someone help me to solve this?
    Thanks and regards,
    Chiranthaka

    Hi Chiranthaka,
    Please use the following code snippet in your html master page.
    <div class="CustomBreadcrumbs">
    You are here:
    <!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderPageTitleInTitleArea" runat="server">-->
    <!--SPM:<asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server">-->
    <!--MS:<asp:sitemappath runat="server" sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" rendercurrentnodeaslink="false" hideinteriorrootnodes="true">-->
    <!--ME:</asp:sitemappath>-->
    <!--SPM:</asp:ContentPlaceHolder>-->
    <!--SPM:</SharePoint:AjaxDelta>-->
    </div>
    Here is a thread for your reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/daabd903-df98-41da-80d8-6a942d06980e/add-breadcrumb-to-custom-master-page-html-file?forum=sharepointcustomization
    We can also customize a breadcrumb control, then add it in master page.
    http://msreddysharepoint.blogspot.com/2013/01/custom-breadcrumb-navigation-in.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Sharepoint 2013 designer workflow auto approve task after due date is passed

    sharepoint 2013 designer workflow auto approve task after due date is passed.
    Could we approve the task automatically once due date is apssed?
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    If your task is created by a workflow (first) and stored in a separate task list, you can create another workflow on this particular task list, then each workflow instance would check if current task is expired (not approved/rejected), then
    determine if update current task's "Task Outcome" as approved (and update task status as complete), and then create a retention policy on this paricular task list to trigger the workflow on due date .
    Thanks,
    Daniel Yang
    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]
    Daniel Yang
    TechNet Community Support

  • Display an XML file Content as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013

    Hello everyone,
    Within a list form, user has to select a value amongst a huge number of availables options.
    Instead of using something like a dropdown list, which would be very boring to parse, I would like to display possibles values in a treeview.
    To do that, I tried to use an <Sharepoint:SPTreeView bind to a SharePoint:SPXmlDataSource who read data from an XML File.
    <SharePoint:SPXmlDataSource runat="server" DataFile="../../SiteAssets/App_Data/myfile.xml" AutoSave="True" XPath="" ID="myDataXml"></SharePoint:SPXmlDataSource>
    <SharePoint:SPTreeView runat="server" ID="MyTreeView" DataSourceID="myDataXml" />
    But when I try to display the form in my web browser, an error occurs.
    Therefore, my question is : Is it possible to display the content of an Xml file as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013 ?
    If the answer is yes, how ? Which are the required properties for "SharePoint:SPXmlDataSource" tag and "SharePoint:SPTreeView"  tag ?
    What are the requirements to use thoses tags ?
    Regards,
    Florian.
    Ps : I dont have access to the server side of the SharePoint site I am working on.

    Assuming that https://fullsitename is a new URL address did you make sure to update your browser to include it in the Trusted Sites zone?  The message you are quoting is exactly the one you get if you don't have it in Trusted Sites.
    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.

  • How to view and restore sharepoint 2013 designer workflows and how to redeploy with newer version to environments

    how to view and restore sharepoint 2013 designer workflows and how to redeploy with newer version to environments
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi,
    In SharePoint Designer 2010, we could not save the workflow as a template directly except the reusable workflow.
    However, in SharePoint Designer 2013, we can just save all the types workflow as a template, then you can import the workflow into the new environment.
    http://blogs.msdn.com/b/workflows_for_product_catalogs/archive/2012/11/02/deploying-a-workflow-on-a-different-server.aspx
    In SharePoint Designer 2013, every time we publish the workflow, we would get a newer version workflow, and the old workflow version would be overwritten.
    So, when you deploy the workflow in the environment, the workflow would the newer version.
    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

  • Need help to create SharePoint 2013 Designer workflow

    Hi TechNet Community Team,
    I've one list "Purchase Order" where I'm storing the data for purchase order details below are
    the fields.
    List Name = Purchase Order
    Order No, Order Date, Part No, Part Qty, Delivery Date, Delivery Qty, Balance Qty.
    Now in above list I'm storing the Purchase order details to check Order Qty and Balance Qty for every part
    no and this list is working fine.
    Now my requirement is to create one more list to issue the Part No from available Balance Qty in above List "Purchase Order".
    So I thought to create new list with below details (Please suggest me if you have other idea also I can use
    only SharePoint OutofBox feature or SharePoint Designer 2013):-
    List Name = "Issue Order"
    Issue No, Part No, Balance Qty, Issue Qty, Issue Date, Remaining Balance Qty OR Stock Qty
    So in List Name "Issue Order" once user will select "Part No" the "Balance Qty" will show the available Qty (from Purchase Order
    List). And once he enter Qty in "Issue Qty" column it will show the remaining Qty in "Remaining Balance Qty OR Stock Qty" column. 
    Also "Remaining Balance Qty OR Stock Qty" will get update in "Balance Qty" column in first list "Purchase Order" list so next time
    when user will issue the Qty from "Issue Order" he will get the correct Qty for Part No.
    Need your help to create workflow for List "Issue Order" so user can issue the items from this list
    and balance qty will update accordingly in List Name = Purchase Order. So next time when user will issue the "Part No" he will get correct quantity.

    Hi,
    For the Point# 1, per my understanding, there are two columns in the list2, both columns are getting values from list1. In List2, when user select a value for the
    “Part No”, you want the “Balance Qty” column to be populated automatically.
    As there is no such OOTB feature can meet this requirement, custom code using JavaScript would be required.
    The two similar demos below would be helpful:
    http://spservices.codeplex.com/wikipage?title=%24().SPServices.SPCascadeDropdowns
    http://www.codeproject.com/Tips/758909/Two-Level-Cascading-Drop-Down-in-SharePoint-using
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

Maybe you are looking for