Delete SharePoint Workflow History List Questions

I found the code below here :
https://social.technet.microsoft.com/Forums/sharepoint/en-US/79aa3bd4-d334-4614-9304-15998a95aefb/delete-list-with-43-million-items-workflow-history-list?forum=sharepointadminprevious
I originally had 81K items in the workflow history list..Dating back to a year ago, which obviously didn't need to be saved in the workflow history list. And we all know Workflows start to have issues when this WF History list get a lot of items in it.
my questions are now that I have it cleaned up...
I have workflows that trigger 30 days prior to when an item expires.  so for example if an item expires 12-15-15, the workflow sends an email 11-15-15.  but these expiration dates can be at any time of the year. for example lets say the
item was entered on  2-2-15 with expire date of 12-15-15 -  workflow is now  triggered so that emails would be send in 11-15-15 ....
So if I delete the workflow history list item will it affect the workflow waiting to be triggered?
Is there a way with the code below to capture workflows that have completed, error'd out, or failed to start?
As I figure those would be safe to delete if deleting items from the workflow history list affects workflows waiting to be triggered?
or would it be possible for the code below to be modified  to delete based on either ID of list item and or date range?? 
like  say  delete  completed workflows at 100 items every thirty days?
but I can not have a current waiting workflow to trigger & history beaffected by the workflow history list delete.
********************************** Code **************************************************************
$weburl = "http://"
$listname = "Workflow History"
#param($weburl,$listname)
#if ($weburl -eq $null -or $listname -eq $null)
#    write-host -foregroundcolor red "-weburl or -listname are null."
#    return
Add-PSSnapin Microsoft.SharePoint.Powershell -EA 0
$web = get-spweb $weburl
$list = $web.lists[$listname]
$stringbuilder = new-object System.Text.StringBuilder
try
    $stringbuilder.Append("<?xml version=`"1.0`" encoding=`"UTF-8`"?><ows:Batch OnError=`"Return`">") > $null
    $i=0
 $spQuery = New-Object Microsoft.SharePoint.SPQuery
    $spQuery.ViewFieldsOnly = $true
 $spQuery.RowLimit = 1 // # of items to delete
 $items = $list.GetItems($spQuery);
    $count = $items.Count
  $now = Get-Date
 write-host ("Deleting Items from list started at " +$now.toString())
    while ($i -le ($count-1))
        #write-host $i
        $item = $items[$i]
        $stringbuilder.AppendFormat("<Method ID=`"{0}`">", $i) > $null
        $stringbuilder.AppendFormat("<SetList Scope=`"Request`">{0}</SetList>", $list.ID) > $null
        $stringbuilder.AppendFormat("<SetVar Name=`"ID`">{0}</SetVar>", $item.Id) > $null
        $stringbuilder.Append("<SetVar Name=`"Cmd`">Delete</SetVar>") > $null
        $stringbuilder.Append("</Method>") > $null
        $i++
    $stringbuilder.Append("</ows:Batch>") > $null
    $web.ProcessBatchData($stringbuilder.ToString()) > $null
catch
    Write-Host -ForegroundColor Red $_.Exception.ToString()
   $now = Get-Date
 write-host ("Deleting Items from list ended at " +$now.toString())
 write-host -ForegroundColor Green "done."
**************************************End of Code***************************************************

Hi Cowboy,
Per my knowledge, if we delete the workflow history list items, it will not affect the workflows waiting to be triggered.
However, if you go to the workflow status page, the history will be empty as the events 
have been deleted in workflow history list.
The code in your post will delete 2000 items in workflow history list.
As there is no status for the items in workflow history list, so I recommend to use the date as the query condition.
For example, if you want to delete items created between 2015-02-01 and 2015-02-16, then you can change the query as below in your code:
$query="<Where><And><Geq><FieldRef Name='Created'/><Value Type='DateTime'>2015-02-01T00:00:00Z</Value></Geq><Leq><FieldRef Name='Created' /><Value Type='DateTime'>2015-02-01T00:00:00Z</Value></Leq></And> </Where>"
$spQuery=$query
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

Similar Messages

  • Cleaned Workflow History List - Workflow Pausing State failed to resume

    Hi All,
    SPD workflow is pausing for some duration once it resume send mail and pause again as per some business condition, it repeat 9-10 times only.
    Pausing duration is 1 week
    Couple of months, It was working fine, then suddenly it starts showing the status "Failed to Start (retrying)" getting a result but not 100% accurate, some times its start  firing unwanted mails to target audience.
    Then I checked all the jobs which were running ,but workflow history list was showing more than 100K + records and exceeding threshold limit i.e. 5K, then i delete the record from the workflow history list and figure come down to 1K only. After that,
    as i created the item and start same workflow, its never resume , even i pause it for 10 minutes and checked after 2 days, still in pausing state.  I spend 3-4 days to explore it. but didn't get any success . Please suggest for the same.
    Thanks and Regards.. 
    Manoj Mittal

    Hi Cowboy,
    Per my knowledge, if we delete the workflow history list items, it will not affect the workflows waiting to be triggered.
    However, if you go to the workflow status page, the history will be empty as the events 
    have been deleted in workflow history list.
    The code in your post will delete 2000 items in workflow history list.
    As there is no status for the items in workflow history list, so I recommend to use the date as the query condition.
    For example, if you want to delete items created between 2015-02-01 and 2015-02-16, then you can change the query as below in your code:
    $query="<Where><And><Geq><FieldRef Name='Created'/><Value Type='DateTime'>2015-02-01T00:00:00Z</Value></Geq><Leq><FieldRef Name='Created' /><Value Type='DateTime'>2015-02-01T00:00:00Z</Value></Leq></And> </Where>"
    $spQuery=$query
    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

  • Workflow History List audit suitability

    Hi
    I'm using Approval workflows to approve documents and also provide auditing. This information is stored in the History List, however I can see  issues.
    1. When a document is approved the information is held in the Workflow History. many times the Document is changed after approval and requires approving again. If the workflow is restarted the previous history link is purged and new workflow information
    is recorded. I can always inspect the Workflow History list and find the orginal associated data but this seems a convoluted processs. I've heard its possible to record this the Record centre somehow. Whats the best option.
    2. The workflow history list gets cleared down every 60 days by default. It can be argued using the Worfklow History List is not suitable for auditing.. Whats options are available?
    Thanks

    for the second question you can use the SharePoint auditing rather than workflow history list for auditing
    http://office.microsoft.com/en-001/sharepoint-server-help/configure-audit-settings-for-a-site-collection-HA102031737.aspx
    http://www.ericgregorich.com/blog/2011/11/28/sharepoint-workflow-history-explained.html
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spauditentry.aspx
    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

  • Workflow history list

    What is the best way to clean up workflow history list? I see that it has few years worth of data in it. Is it safe to delete the items that are more than 2 months old? Appreciate anyone sharing Microsoft recommendations on this. Thanks.
    rani

    Hi,
    According to your description, my understanding is that you want to clean up the workflow history list.
    If the data is more than 2 months old, my suggestion is that use the MSDN workflow history clean up tool to achieve it, not clean up it manually. You can specify the date range with to clean up the workflow data safely using the tool. 
    More information:
    Cleanup Workflow History
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Customize workflow history list

    hi friends
    i am working with two workflows
    my scenario is
    1. first workflow initiate the process for page creation.
    2. second workflow for creating and publishing page.
    3. according to the first workflow request page will be created.
    4. my problem is i need to add second workflow log to the first workflow log according to the request.
    5. which mean two workflows are most have same workflow history according to the request.
    6. by default each workflow will have its own history according it initiation.

    4. I dont think you can do this unless you create these 2 workflows programmatically
    6. He it is a default behavior of workflow to maintain its on history

  • 3.6.8 on MacX doesn't allow history to be cleared either by TOOLS or delete in the history list???

    Have tried to delete, forget, and use TOOLS to clear. None work....

    See http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • List 'Workflow History' does not exist at site with URL

    Hi techies,
    I got this error while activating a feature, where I attach the workflows to the lists which exists within sites.
    And i have also deployed all the workflows which are to be used.
    Anybody faced this similar error?

    Are you trying to get workflow history list in your code? (custom feature or VS workflow) if so then can you verify your code and make sure that your are searching for this list at root level. (workflow history list is common list and available at root site
    collection only)
    http://servername/Lists/Workflow%20History/AllItems.aspx
    To get list via code see below blog:
    http://sharepointdevelopertopics.blogspot.in/2011/07/how-to-get-workflow-history.html
    http://weblogs.asp.net/jevgeni/archive/2011/05/05/getting-default-workflow-history-list-in-sharepoint.aspx
    Correct me if i am wrong
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer
    Please feel free to unmark answer if does not resolves your problem.

  • Workflow history report best practice

    Hi.
    How do you recommend to make custom workflow history report(s)?
    For example, let's think of the most simple document approval process: initiator uploaded document, manager reviews the document, if approved - document is marked as approved, if not - document should be modified by initiator. In real life
    review can be done by group, business flow will be much more complicated, some tasks will be assigned to other users, etc.
    Now, I need to show feedback received from users in a short, readable format. Let's say we need to know:
    1) when review was made
    2) who made it (name, position, email)
    3) review outcome (approved/rejected/custom)
    4) review comment
    So, nothing unusual here.
    I see the following options:
    Make a view from different sources: workflow history list, workflow tasks list, current library. For me it sounds crazy.
    Write necessary data into workflow history list and don't write there anything else. This option doesn't support multiple reports.
    Write all data into workflow history list and then somehow filter its data. Again sounds crazy.
    Write data into custom SharePoint list and then make views based on it. Looks flexible. But, probably, every workflow will need separated list.
    Write data into external SQL database, then somehow show in SharePoint. The most flexible, can store practically any amount of data, apply any kind of transformation. But data is not in SharePoint directly, some data connection/sync issues might
    occur.
    What will you recommend?
    BTW, there is additional question: all this logging creates so much "noise" in workflow diagram - I write some information on regular basis after some events and that requires adding multiple activities every time: set workflow status, update
    item (set some custom status), write workflow history and write into some external data store. 3-4 repeating events - how can I "group" them into something like 1 activity?

    Hi,
    I would suggest you use the custom list option.
    With SharePoint OOTB List, we can take use of the available features provided to manage data conveniently.
    Also, as a data source, we can also generate different kinds of reports from SharePoint List using other reporting products such as Excel.
    For the second question, I would suggest you open a single thread for it to let others in this forum easier to focus on one question in one single thread.
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to set the conditions for item deletion approval workflow?

    Hi,
    I have created approval workflow for item modifications ie, when user try to modify an item, it will send a mail to Project Manager. For that I set the conditions in Change the behavior of the overall task: 1. When the task process starts 2 . When the task
     process completes .
    Change the behavior of the single task: 1.when a task is Pending.
    [I followed this https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx ]
    My Requirement is that I want to set this same workflow for the scenario: when the user deletes an item it will send a mail (intimation mail for item deletion) to Project Manager. here i dont want to send modification mails when user deletes an item.
    When user modifies an item: 1. intimation mail, 2. Approve/Reject mail 3. intimation for approval / rejection mail.
    When user deletes an item: 1. intimation mail.
    How can we set it in one approval workflow?? where i have to set the condition for sending either item modification mails or deletion mail.
    Thanks,
    Praveen ji

    Hi,
    According to your post, my understanding is that you wanted to start approval workflow when item deleted.
    You should first make some changes to trigger the workflow when you delete the item.
    You can use the Event Receiver to achieve it.
    In order to trigger workflow on item delete you need to create event receivers and from event receiver call the workflow already attached with list.
    http://ravendra.wordpress.com/sharepoint-workflow-on-list-item-delete/
    You can also create custom action to start the workflow, you can refer to the following article, then modify the workflow as your need.
    http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=50
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Missing workflow history link of "In Progress" workflow!!!

    I recently get complaint from customer that they lost their "In Progress" workflow history link on documents.
    I searched on internet and found that "Workflow Auto Clean" job will remove only "Completed" workflow link for document.
    So Why SharePoint has removed workflow history link of "In Progress" workflow? and now any work around to get it back because there are approx. 100 document's which running workflow history is missing.

    The issue is caused when migrating from 2010 to 2013. Microsoft’s upgrade process seems to have missed an update required to the Workflow History list, and the following powershell fixes it, with the key being the .SystemUpdate($false) on each item in the workflow
    history list:
    $url = 'http://mysite/myweb' #todo: update powershell to loop through all sites
    $site = new-object microsoft.sharepoint.spsite($url);
    Write-Host $site.allwebs.count
    $web=$site.OpenWeb();
    $spListColl = $web.Lists
    foreach($list in $spListColl)
    if($list.Title -eq "Workflow History")
    foreach ($listItem in $list.Items)
    $listItem.SystemUpdate($false)
    Write-Host "Updating Items Done"

  • HOW to Delete Call Phones History permanently for ...

    Hi,
    Am with a serious problem here. Actually I took a zero subscription per month and am using this to call my home country. Generally I get a Skype -To-Go number for the destination numbers and use to call to these numbers.
    I can see the call history logged for each and every call. Is there a option for me to delete this call history or hide this call history. I really need this. Kindly help me out with some solution.....

    Hi, vinodh258, and welcome to the Community!
    The short answer to your enquiry is, "No," Skype does not have the facility to delete the call history lists.
    Best regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Workflow task list is missing or damaged. SharePoint 2010

    SharePOint 2010 Enterprise
    Customer created workflows for the annual review of our QPC Emergency Plan.
    The document library  shows that there is a EP_Review workflow “In Progress” for each section.   However if you click into the “In Progress” link to see the actual progress of the workflow it shows no Visio diagram, it’s just a blank white
    space (not even an error message) and under the Tasks section it gives the message:
      "The workflow task list is missing or damaged.  Please contact your administrator for more information"
    I looked in the Task List and there are no tasks showing, which normally does show when we kick off a workflow. 
    I ran a report on the EP_Review workflow for Cancellations and Error messages and the system comes back with the following error message:  "Report contains no Data"
    Log says:
    3/05/2014 11:58:08.67  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Monitoring                   
     nasq Medium Entering monitored scope (Request (POST:http://strspdept:80/sites/Compliance/EmergencyPlan/_layouts/CustomizeReport.aspx?ReportId=05c9fc6e-b5bd-44c6-9b22-48d33f3b719a&AssociationId=1585f93e-968f-4008-9d41-28e4d03b03b9&Category=Workflow&List=4cb06049%2Dbe01%2D4e76%2D9e78%2D3faa95c4f06c)) 
    03/05/2014 11:58:08.67  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Logging Correlation Data     
     xmnv Medium Name=Request (POST:http://strspdept:80/sites/Compliance/EmergencyPlan/_layouts/CustomizeReport.aspx?ReportId=05c9fc6e-b5bd-44c6-9b22-48d33f3b719a&AssociationId=1585f93e-968f-4008-9d41-28e4d03b03b9&Category=Workflow&List=4cb06049%2Dbe01%2D4e76%2D9e78%2D3faa95c4f06c) eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.67  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Logging Correlation Data     
     xmnv Medium Site=/sites/Compliance eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.70  w3wp.exe (SLSPW02:0x8DC0)                0x8418 Document Management Server     Document Management          
     52od Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/_layouts/CustomizeReport.aspx?ReportId=05c9fc6e-b5bd-44c6-9b22-48d33f3b719a&AssociationId=1585f93e-968f-4008-9d41-28e4d03b03b9&Category=Workflow&List=4cb06049%2Dbe01%2D4e76%2D9e78%2D3faa95c4f06c]. 
    Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3) level for this list. eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.75  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Monitoring                   
     b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=32.1239873194787 eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.78  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Server              OpenXml                      
     0000 Medium OfficePackageLibrary::OpenPackage(app=3, path=C:\Users\TEMP\AppData\Local\Temp\tmpBAE2.tmp, fcm=3) eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.80  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Monitoring                   
     b4ly High Leaving Monitored Scope (EnsureListItemsData#2). Execution Time=10.6167606926937 eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.80  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Runtime                      
     tkau Unexpected Microsoft.Office.RecordsManagement.Reporting.ReportEmptyException: Report contains no data.    at Microsoft.Office.RecordsManagement.Reporting.ApplicationPages.CustomizeReport.OKBtn_Click(Object sender, EventArgs
    e)     at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
    sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.80  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Monitoring                   
     b4ly Medium Leaving Monitored Scope (Request (POST:http://strspdept:80/sites/Compliance/EmergencyPlan/_layouts/CustomizeReport.aspx?ReportId=05c9fc6e-b5bd-44c6-9b22-48d33f3b719a&AssociationId=1585f93e-968f-4008-9d41-28e4d03b03b9&Category=Workflow&List=4cb06049%2Dbe01%2D4e76%2D9e78%2D3faa95c4f06c)).
    Execution Time=131.764628890724 eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:09.05  w3wp.exe (SLSPA02:0x1CD4)                0x1F68 SharePoint Foundation          Topology                     
     e5mb Medium WcfReceiveRequest: LocalAddress: 'http://slspa02.corp.questar.com:32843/5d041280466646db9f816a170ae8f6b8/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges'
    MessageId: 'urn:uuid:8f54c63f-a3d4-4180-b9be-2eefe9ff3495' 01f77dd7-96fb-4f20-b72a-cd736a3354bf
    03/05/2014 11:58:09.05  w3wp.exe (SLSPA02:0x1CD4)                0x1F68 SharePoint Foundation          Monitoring                   
     nasq Medium Entering monitored scope (ExecuteWcfServerOperation) 01f77dd7-96fb-4f20-b72a-cd736a3354bf
    03/05/2014 11:58:09.05  w3wp.exe (SLSPA02:0x1CD4)
    Any Ideas how I can figure out how to resolve this?
    Thanks for any input

    Hi mikeatquestar,
    it seems you may need to check if should the task able to create at your environement,
    you may try this at your development environment first:
    Saved a task list as a template from a working site collection and moved the template to the problem site collection. Used this template to create a new list, and associated this list to the Workflows task list.
    http://office.microsoft.com/en-us/windows-sharepoint-services-help/manage-list-templates-HA010099156.aspx#BMcreate
    http://office.microsoft.com/en-us/sharepoint-server-help/copy-or-move-a-list-by-using-a-list-template-HA101782479.aspx
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • SharePoint Online "New List Item Trigger" deletes them... WTF?

    Started playing around with these API apps today on our system, as I think they've got great potential, and as well as not passing any data on to the following commands this also decided to delete them from our SharePoint Online site as well!
    Is it worth writing in the documentation somewhere that it will annihilate your data source as it goes through the workflow?
    Would appreciate someone getting in touch to try and resolve this.
    EDIT: Had a look for the items in SharePoint and they're not even in the site's recycle bin (but previously deleted items from this list have been). We have email alerts set up on any activity on the list (as a kind of audit logging) so I can see that the items
    were deleted by my user account.

    No I didn't. I know it will fit some scenarios, but these items need to stay in the list they're in otherwise we need to modify the rest of our system
    (at which point it becomes a bit pointless using these extra pieces, as we're modifying our deployed app so may as well make the changes in there).
    With regards to the "processed" column, I was hoping (and assuming) that it was going to work the same way that Azure Webjobs and blob
    storage worked, in that it keeps track of it's own "processed" status in table storage somewhere. This means it can be completely transparent to the source system, means no modifications need to be made to the source system and it's completely self
    contained.

  • SharePoint: Workflows - Emailing hyperlink of list item.

    I have a custom SharePoint (2013) list to manage tasks assigned to personnel and keep track of their statuses. I've created a workflow using SP Designer to send out an email to whom the task is assigned on the date for which it's due.
    The workflow is working properly and email alerts are being sent, except for one thing. Inside the email body is a hyperlink to the associated record which the recipient clicks on to view (only view, not edit) the task details.
    I got the record's hyperlink by accessing it's display form and copying the URL from the browser, pasting it into the email body. The URL's format looks something like this:
    http://zeroshiki/sites/SP2010-Main-Site/Lists/Announcements/DispForm.aspx?ID=2&ContentTypeId=0x0104000933421F36DFF740B428FEC15871B493
    Then I modified the URL by formulating a lookup to include the ID of the Current Item. In other words, the ID specified in the URL isn't fixed; it's based on the associated list item.
    I've confirmed that when the recipient recieves an email, the ID in the URL matches the record's ID on the site. However, when they click on the link and are redirected to the record's display page, there's no data displayed. The fields are visible but the
    values are not. Then I noticed that the URL in the browser does not match the one in the email; it's missing an ID value.
    So when the URL in the email is ...DispForm.aspx?ID=2&ContentTypeId... it changes to ...DispForm.aspx?ID=&ContentTypeID...
    Why does this happen? This method may seem strange to use, but I've tried looking up the "Encoded Absolute URL" and I get an error stating that the return type of the lookup is invalid. That's why I manually copied the URL format and formulated
    the record ID.
    Am I doing something wrong here? Is there a more straight-forward approach to retrieving the record's URL?

    Hi,
    According to your post, my understanding is that you wanted to send email with hyperlink.
    In order to solve the problem more efficiently I need to clarify some information.
    Did the hyperlink is the current item URL?
    How did you set the hyperlink?
    Per my knowledge, the "Encoded Absolute URL" result is https://sitename/Lists/listname/Id_.000
    To get the current item URL, I recommend to we can use [%Workflow Context:Current Item URL%] with SharePoint Workflow 2010 platform,
    Here is a similar thread for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/7dd2d0cb-97ff-4d9f-9c43-57109bb6bb3d/send-email-of-created-item-to-all-the-staff?forum=sharepointcust
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Error when running workflow form list item - workflow manager SharePoint 2013

    I am getting the following error in the workflow services log when I tried to run a SPD 2013 workflow from as list item. The workflow page comes up with an "An unexpected error has occurred"
    page when opened:
    Error processing management request. Method: GET, RequestUri: http://servername:12291/$Workflows/$Instances?$skip=0&$top=100&monitoringParameter=1f51aa43-2f1c-4fc5-a86d-f638ca57c00d, Error: System.Data.SqlClient.SqlException (0x80131904): The procedure "GetInstances" has no parameter named "@OtherWorkflowStatus".
    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Gateway.HttpAsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Gateway.WorkflowServiceGateway.<>c__DisplayClass9d.<EndGetInstances>b__9c()
    at Microsoft.Workflow.Gateway.WorkflowServiceGateway.ExceptionFilter[T](Func`1 body)
    at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
    ClientConnectionId:d2039360-b352-4d81-9bb7-b647e2938d06
    Can't find anything on google.
    Edit: Ok, when I look at the error, it is saying the the "GetInstances" stored procedure in the WFInstanceManagementDB database does not have a parameter named "@OtherWorkflowStatus".
    For laughs, I added the parameter (which wasn't in there). Now I get the error:
    Procedure or function 'GetInstances' expects parameter '@OtherWorkflowStatus', which was not supplied
    It seems like there is something not right about my installation. Previously, I couldn't get the workflow backend service to run because there were config values missing from the workflow manager database. At the time I tried to uninstall/reinstall
    WFM to no avail. I eventually had to manually add the values to get it to work. Something is not right about the WFM install/config process.

    Here is what I had to do to get it working:
    Leave the WFM (Workflow Manager) farm using the WFM config tool
    Uninstall WFM, Service Bus, and the CU's from control panel
    Uninstall Workflow Manager Client if it exists in the control panel, it didn't in mine
    Delete the following databases in SQL Server:
    SbGatewayDatabase
    SbManagementDB
    SBMessageContainer01
    WFInstanceManagementDB
    WFManagementDB
    WFResourceManagementDB
    Delete the workflow proxy service in Central Admin (important)
    Application Management > Manage Service Applications
    Highlight (select) the Workflow Service Application Proxy service (don’t click the hyperlink)
    Select “Delete” from the ribbon.
    Restart the server
    Reinstall
    Enable the workflow proxy service in CA for the web app, the 2013 workflow option will not show up in SPD unless you do this.
    Application Management > Manage Web Applications
    Select your web app
    Select “Service Connections” from the ribbon
    Check the Workflow Service Application Proxy item and click “OK”

Maybe you are looking for

  • 11.1.2.0 forms cannot connect to report server

    11.1.2.0 I have a new install of 11.1.2.0 forms and reports. I am using my 10g fmb and rdf and pll files all recompiled to 11g. So, the forms, reports, plls are all coded correctly and have worked for years as 10g forms. The 11g forms run fine and so

  • Can I add a wi-fi hotspot to my private network?

    I have an existing private network in our home consisting of cat5 outlets hard-wired to a Cisco 2900 Catalyst switch and wi-fi for the laptop and palm pilot is via a Linksys WRT54GX4 wired to the switch, which in turn is fed via direct bury cat5 from

  • NAC Agent Login Dialog Not Appearing - ISE 1.1.1 issue ?

    Agent Fails to Initiate Posture Assessment The NAC agent is properly installed on a Windoes 7 , IE 9 machine, the certificates from ISE ADM PRI are installed in trustable certificate store in the client machine but is a selfsigned ISE certificate. Th

  • How to break lines in JLabel?

    I can use html code to break lines for swing compoent, for example: JLabel label = new JLabel("<html>ABC<br>DEF</html>");The thing is that I need to read the content of JLabel from a text file. It doesn't work if I defined the text file as "<html>ABC

  • Video quality still poor

    i installed grafics https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23889 still video clearity is poor, pls advise.  installed all intel  grafics drivers but still the same issue.