Questions tagged [undelete]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Unable to restore record from Recycle Bin - could be a link to an inactive user problem?

I deleted a record, but I am unable to undelete it, I am getting the following errors when trying from the recyvle bin and from the developer console The record may have already been undeleted or ...
user avatar
  • 1,899
0 votes
0 answers
12 views

Trigger mocking Role-up Summary works for Insert and Update, but not for Delete and Undelete

This trigger to mock Role-up Summary as sum of related field values - works for Insert and Update, but does not work for Delete and Undelete: trigger mockLookup on More_Details_on_the_account__c (...
user avatar
1 vote
1 answer
47 views

Restoring Contacts via developer console

I've deleted 260k contact records and want to undelete them via developer console. I tried this: undelete [SELECT Id FROM Contact WHERE IsDeleted = true ALL ROWS]; but when I click Execute I get the ...
user avatar
  • 11
3 votes
1 answer
547 views

How do I discover whether a given deleted record is in the recycle bin?

Background: I'm adding hard deletes to the Salesforce destination in StreamSets Data Collector. Adding the ability to do hard deletes via the Bulk API is trivial - just specify hardDelete instead of ...
user avatar
  • 16.2k
0 votes
1 answer
99 views

Prevent deletion and update the records - Trigger

I have a need to kind of customize the deletion of a custom object. The deletion need to update a checkBox to true instead of really delete the record. For that I tried many things using trigger ...
user avatar
  • 423
0 votes
1 answer
352 views

Cannot remove global picklist after deletion picklist

I am trying to delete a global picklist but this references a deleted picklist. How do I resolve this?
user avatar
  • 2,068
0 votes
1 answer
3k views

Trigger on Contact to Update the Account Fields

Hi I Need some help on the below scenario as i am not sure how to work in the case if the Contact Associated with the Account is deleted, Kindly help me out for the below situation, User Story : Lets ...
user avatar
  • 3
0 votes
1 answer
2k views

How to recover deleted data extensions from Marketing Cloud?

Data extensions are mistakenly deleted from our Marketing Cloud instance. Is there any way to recover it? Thanks.
user avatar
  • 113
0 votes
0 answers
41 views

Recreate a campaign with original id

I deleted a couple of campaigns because I didn't need them or their contents. I am now trying to undelete a Contact record that was a campaign member of the deleted campaign. I think the undelete is ...
user avatar
0 votes
0 answers
141 views

Can't undelete a Contact record

I can't undelete a contact record that was deleted earlier today. I get the following error. I can, however, delete & undelete other contact records. This is on a Professional version of ...
user avatar
1 vote
1 answer
60 views

Undelete Fails on Account - Any other way to restore contacts on it?

Someone deleted an account that was a catchall account and had 10K+ Contacts in it. When I try to undelete I get the error:"Task(id: 00T1500001lDCKG) cannot include a mix of contacts and a lead." I ...
user avatar
  • 111
0 votes
0 answers
1k views

Undelete a process builder

This is a generic question. `Is there any way to undelete a process builder. I have currently deleted all the versions. If it is not possible is there any salesforce document which states what ...
user avatar
  • 1,071
0 votes
1 answer
71 views

SFDX: custom fields not displaying in force:source:status after undelete

I created a custom object and then a custom field. Then I deleted the field and undeleted it respectively. Now when I run sfdx force:source:status that custom field is not displayed. If I create ...
user avatar
  • 4,441
0 votes
1 answer
60 views

Action Plans V3 Unmanaged - Unable to undelete Accounts

I've been using "Action Plans V3 Unmanaged" for years. However we just tried to undelete an account and found that "Action Plans V3" is blocking the undelete. The error I get is this: Unable to ...
user avatar
1 vote
2 answers
3k views

Erase/Undelete in salesforce Lightning?

Is there a Erase/Undelete option in salesforce Lightning. I was trying to find out Erase a deleted Field then i couldnt find it. I know its there in Classic version. Let me know where I can find this ...
user avatar
0 votes
1 answer
46 views

Is it possible to see if a record was deleted, but has been since undeleted?

Curious to know if there's a way to see that a Lead or Contact was deleted, but subsequently undeleted?
user avatar
  • 967
0 votes
1 answer
137 views

Change Parent record status with child record status when a record restored from recycle bin [closed]

How can I change the status of some records when they were restored from the recycle bin? Based on their necessity Users are adding and deleting the child records, If they accidentally deleted they ...
user avatar
  • 975
6 votes
1 answer
2k views

How to mass undelete data from recycle bin

I have mistakenly deleted 200,000 records in the recycle bin and am trying to recover them. Although, clicking undelete button 1000 times might be a good way of remembering the mistake, it is still a ...
user avatar
  • 12.7k
0 votes
1 answer
1k views

Restore change set

Is there any way to restore a deleted change set? Unfortunately I haven't found it in the recycle bin. I have also found no setting or other location to restore / undelete them.
user avatar
2 votes
1 answer
683 views

Unable to undelete the child

I have to objects (Kampagne and Schedule) The relation between Kampagne and Schedule is "Master-Details" where the Kampagne is the Master and the schedules are the details. My problem is: I deleted ...
user avatar
4 votes
1 answer
294 views

It is possible to undelete SObject and other metadata using api?

I know about undelete() from Enterprise API but it looks like only for records, anyway I tried it with request: <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://...
user avatar
0 votes
1 answer
482 views

undelete trigger error

I need to delete some events and after undelete them. Now to do this i'm using two triggers, the first in after insert delete all the events if they are alldayevent,the second trigger undelet a list ...
user avatar
0 votes
1 answer
38 views

Not able to find undeleted contact

I have deleted a contact record by mistake in salesforce. I found the record in Recycle Bin and undeleted it. I'm not able to find the record in salesforce. How much time does it usually take to get ...
user avatar
7 votes
3 answers
837 views

Prevent undelete

Is there any way that I can prevent the undelete of an objects record? Could we implement this using a trigger, we do not have before undelete context - hence it makes this a bit difficult.
user avatar
  • 1,549
10 votes
3 answers
3k views

How can a record be undeleted using the REST API?

The SOAP API has an explicit undelete() call to restore deleted records from the recycle bin. Is there an equivalent resource for the REST API to undelete records? I see ways to find records that are ...
user avatar
6 votes
1 answer
1k views

Undelete error: entity is deleted

I'm trying to undelete records using apex and it is throwing me an error: entity is deleted List<MyObject__c> undeleteObj = [select id, Unique_Id__c from MyObject__c where ...
user avatar
  • 1,093
0 votes
2 answers
2k views

How to query deleted contacts

This bozo (me) managed to delete some contacts that shouldn't be deleted with a list of those that should. Now the whole world knows about it and is waiting for me to restore them. I do this query ...
user avatar
  • 1,206
0 votes
1 answer
373 views

Undelete permission

I have a trigger that doesn't allow me to undelete a record from Recicle Bin in a certain case. At the same time I also checks security in order to be sure that my user is allowed to Undelete a ...
user avatar
-1 votes
1 answer
2k views

Change Contact in undelete trigger

I'm experiencing a weird issue with undelete trigger on Contact record. // trigger trigger triggerContact on Contact (after undelete) { for(Contact contact : Trigger.new) { if (contact....
user avatar
  • 2,053
1 vote
0 answers
30 views

"Quote is marked for soft delete and cannot be retrieved"

I have un-deleted the quote from Recycle bin. But when I'm trying to access the quote, it's showing as "Quote is marked for soft delete and cannot be retrieved". How do I recover those quotes?
user avatar
  • 21
1 vote
1 answer
72 views

Restore records from local backup using SOAP/BULK

I'm working on the restoring records for multiple objects that are stored in my local backup in the form of a database table. There seems to be an issue how the restore works. The scenario is as ...
user avatar
  • 1,069
3 votes
1 answer
41 views

Odd Issue (Possible Expected Feature) Delete Contact then Account Contact NOT undeleted or undeleteable

Ok, so ran into this issue and maybe it is a "feature" but have not ran into it before...... Delete a contact Contact shows up in recycle bin Delete Account Account is in recycle bin but contact is ...
user avatar
  • 53.1k
0 votes
0 answers
126 views

Selecting Specific records to delete from Recycle Bin?

Salesforce has provided checkboxes for selecting specific records/components to undelete . Why is that they haven't provided a similar option for deleting specific records/components? Why is that we ...
user avatar
3 votes
2 answers
2k views

can't undelete record

I have tried to undelete a record, both in the Recycle Bin UI and via apex. The UI message is cryptic (4 potential explanations), but the apex debug gives me the following: DEBUG|Undelete failed. ...
user avatar