Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7756295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:47:10+00:00 2026-06-01T12:47:10+00:00

I am looking to create an undo mechanism for a TFS work item using

  • 0

I am looking to create an “undo” mechanism for a TFS work item using the TFS API – this will undo committed changes. Basically, after saving new data (also using the API) to the work item, I would like the option to revert the WorkItem back to the previous version.

Pseudo code something like this…

1)Get current Work Item for Id:xxxxxx

2)Get “revision id” of this latest
work item and store in “PreviousRevId”

3)Modify field values

4)Save

5)For
whatever reason we don’t want these changes any more (domain logic as
to reasons are excluded for brevity)

6)Revert to old revision
(“PreviousRevId”) and make it the current (latest) revision

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:47:12+00:00Added an answer on June 1, 2026 at 12:47 pm

    Have a look at the Work Item History Visualizer i created. By taking the work item Id, you can pull out the history of all work item fields.

    http://geekswithblogs.net/TarunArora/archive/2011/08/21/tfs-sdk-work-item-history-visualizer-using-tfs-api.aspx

    But this will only help you get the information, rest you’ll have to build your own control to build the revert functionality.

    EDIT: Also worth checking this visual studio extension **
    http://visualstudiogallery.msdn.microsoft.com/d127b275-b7b6-4504-b01e-58b4a010ff53
    This lets you see the work item as it was on the historic date. Giving you the baseline affect you are after. HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I'm looking to create a silent windows installer which will install Windows drivers
I am looking to create an expression tree by parsing xml using C#. The
Looking to create an inline array in Visual Basic for Applications Something like this
I'm looking to create a web site and will be creating a mobile app
Im looking to create a form where the user will select from a list
I am looking to create the feature described in this post SplitView on iPhone
I'm looking to create on-the-fly tree diagrams using PHP, HTML, and CSS. Mock-up below:
I am looking to create basically an image rotator with scriptaculous. The trick is
I am looking to create a user/server control that will be created with something
I'm looking to create a small C# application that will either run as a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.