web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

HELP! Accidentally deleted an Opportunity

(0) ShareShare
ReportReport
Posted on by

Hi,

Is there any way to recover this? I have auditing ON and can recreate the Opportunity manually but what about activities?

I've been trying to follow blogs.msdn.com/.../recover-your-deleted-crm-data-and-recreate-them-using-crm-api.aspx but have no idea how to get SDK up and running (I have it "installed" and I have VS2010, but not sure how to open it and connect to our instance of CRM)

Thanks in advance,

Regards,

C

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Andre Margono Profile Picture
    2,602 on at
    RE: HELP! Accidentally deleted an Opportunity

    To start with SDK, download it from: www.microsoft.com/.../details.aspx (CRM 2011); www.microsoft.com/.../details.aspx (2013)

    Try to understand how to connect to CRM using SDK; sample: msdn.microsoft.com/.../jj602970(v=crm.5).aspx

    I believe for deletion the system will always prompt whether you are sure to delete the record. From implementation perspective I usually disable deletion for common users and only allow deactivation of records.

  • Verified answer
    Hosk Profile Picture
    on at
    RE: HELP! Accidentally deleted an Opportunity

    it's best policy to deactivate records rather than delete them (so you can reactivate)

    you could look in a database backup for the opportunity record.

    it would take a lot of effort to to recover the record with SDK  and the audit logs and if you are not a programmer it may well take you quite a while

  • Community Member Profile Picture
    on at
    RE: HELP! Accidentally deleted an Opportunity

    Thanks Ben,

    I'm not a developer but I am quite technical, so just wanted a set of instructions I can follow to:

    1. Connect SDK to my instance of CRM

    2. Restore an opportunity based on Audit ID (already found a blog entry for this)

    Even if it takes a while, it still has to be done...

    Database backup would not be an option, as that will mean any changes in the past few days would be wiped? Or is there a way to extract only certain parts of a backup?

    Thanks in advance,

    C

  • Verified answer
    Andre Margono Profile Picture
    2,602 on at
    RE: HELP! Accidentally deleted an Opportunity

    Hi Chon,

    For backup path, you could restore the db on different environment/different org, then use sdk to programmatically copy the deleted opportunty record to the current org.

  • Hosk Profile Picture
    on at
    RE: HELP! Accidentally deleted an Opportunity

    I'm not saying use the database backup on your CRM organisation.

    I am saying you could restore the database on SQL server and then retrieve some details using SQL queries on the database tables directly.

    but it sounds like you are well on the way with the Audit approach

    good luck

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans