Questions tagged [delete]
The delete DML operation deletes one or more existing sObject records from your organization’s data.
288
questions
0
votes
0
answers
29
views
The elusive 'Delete' button on "Individual Application" (Grantmaking)
We're in the process of implementing Grantmaking. Part of the package includes an "Individual Application" object. This object doesn't have any "Delete" button (we tried ...
-1
votes
0
answers
40
views
Is there a way to automatically delete records from an entry data extension after the journey has been executed?
We have a DE which is updated periodically from Data Cloud. It contains records of users which have a service hired with us. Each month this list changes, as some users unsubscribe from the service ...
0
votes
0
answers
35
views
Salesforce LWC form not loading in external site due to browser cookie
We have displayed a Salesforce LWC form in an external site, For a contact the LWC form is not loading when the same contact is trying to reload the site.
It works in this way:
If the contact is ...
0
votes
0
answers
45
views
Async-safe mass delete of children with Batch
How to write in Apex a mass deletion (over 10 000 records, even up to 150 000) of related records that can be safely called from async context, like Batch?
I have two custom objects, lets call them ...
0
votes
0
answers
42
views
Record-Trigger flow run when Delete error
I'm trying to create a record-trigger flow on Asset delete. I tried getting CV value by formula but the related Account record
is not returning correct value.
I also tried get Account record ...
1
vote
1
answer
40
views
How to simulate (in test) record being deleted while callout is in progress
Let's say you have this pseudo code for some asynchronous transaction that processes an accountId
Account[] accounts = [SELECT Id, Name FROM Account WHERE Id = :accountId];
if (accounts.isEmpty) {...
0
votes
0
answers
72
views
Get a list of all deleted Journey
When I use this endpoint "GET /interaction/v1/interactions?status=Deleted" of Marketing Cloud API (documentation), I am not getting Journeys with status "Deleted"
But when I use ...
4
votes
1
answer
125
views
How can I prevent a ContentDocument being deleted when it is linked to a record meeting certain criteria?
I have ContentDocuments being used to capture "proof" against certifications. Once the submitted certification (and "proof") has been reviewed, that certification is marked "...
0
votes
0
answers
22
views
Marketing Cloud subscribers massive delete [duplicate]
I am trying to delete all the subscribers from the "All subscribers" list but it only allows me the option to delete by parts or one by one.
I thought that I could do an overrite by ...
-2
votes
1
answer
131
views
Contacts without channel addresses deletion
I have extracted the contacts without channel adresses in Marketing Cloud and while trying to delete them (over 2 million), the deletion couldn't be processed as the maximum contact that could be ...
0
votes
1
answer
320
views
Deleting big amount of records from a large sendable data extension
I have a big sendable data extension (hundreds of millions records) in marketing cloud that has multiple primary keys. The DE is live, and new records are being written constantly.
I need to delete ...
0
votes
2
answers
138
views
Why delete operator doesn't work in LWC?
I have a property in my LWC component.
I want to delete the value from it, so it becomes undefined.
In usual JS, I can just execute an statement
delete this.property
It is executed successfully, but ...
0
votes
1
answer
137
views
LWC ShowToastEvent fire js function on link click
I have a LWC that shows a table of records with the classic 'actions' arrow. Among the available actions there is 'delete'. Which, when pressed, deletes the record and shows a successful toast. I ...
1
vote
1
answer
709
views
Flow: Stop deleting using delete trigger
I want to add a before delete trigger on a custom object so that no one can delete any record of this object.
I know I can do this in Apex by calling addError(), I was wondering if I achieve the same ...
-1
votes
1
answer
720
views
Unable to delete record: Value does not exist or does not match filter criteria
I am trying to delete some records but I am stopped by the error message "Value does not exist or does not match filter criteria."
I have already disabled all filters all lookup-fields on ...
0
votes
1
answer
141
views
After delete trigger is not firing< but code in anonymous works properly
I have Active_Contacts__c Decimal field in Account and Active__c checkbox in Contact, also created ContactTrigger and ContactTrigger handler. I have already created logic for after update event and it ...
0
votes
1
answer
394
views
Can you delete Metadata from the API [closed]
I would like to know if I deployed metadata to a customer's instance via the metadata api, is it possible to create a script to delete said metadata out via the metadata api?
I see a couple of posts ...
-2
votes
1
answer
77
views
how to customize behavior of the delete operation in salesforce [closed]
I am trying to customize the delete of a record in salesforce, I need that when the user wants to delete a record using the delete button in the CRM, somehow the record is not deleted, but a record ...
1
vote
1
answer
208
views
Change "what to do if lookup record deleted" for a lookup field with Self Relationship?
On the object "A" I do have an existing lookup field to the very same object "A". In the "Lookup Options" on this field the setting "What to do if the lookup record ...
0
votes
1
answer
385
views
How to update all records when before delete trigger is called?
Can anyone help me out? I store all the records of my TestObject__c in a List. My requirement is, if the user delete the record in TestObject__c and if the checkbox is check, one field in all records ...
-1
votes
1
answer
47
views
How far can i optimize the Below Code?
Problem Statement:
The apex code should prevent the account from getting deleted if it has associated/Related contact
public static void deletechild(Map<Id,account> mapacc){
set <Id&...
0
votes
1
answer
112
views
Salesforce CLI Command to delete Unmanaged Package
We are doing some early spring cleanup and need to uninstall some managed and unmanaged packages. I can use the CLI command below to delete the Managed packages using the Namespace prefix.
sfdx force:...
0
votes
0
answers
216
views
Bizarre Flow error when deleting records that were queried: ENTITY_IS_DELETED
I have a Platform-Event Triggered Flow which does the following:
After insert of a Platform Event record...
Get OpportunityLineItem records related to an Opportunity
If the result of the above query ...
-1
votes
1
answer
221
views
Using Developer Console Query Editor to delete multiple items
I need some assistance with a message I came across while trying to delete multiple items from SF (less than 3K items). I used the query editor to see the items I need to delete but when I select the ...
1
vote
0
answers
30
views
LEX replacement for Delete override that only applies to UI-initiated delete action?
As prep for migrating to LEX, we need to replace our existing Delete overrides for Quote and QuoteLineItem; they check a custom setting and a couple fields and determine if delete should be allowed.
...
0
votes
1
answer
292
views
Mass Delete Reports Older Than a Specific Date
I'm looking to mass delete reports that haven't run in the last ~20 months. Specifically, anything that hasn't been run since 01/01/2021. So, I've entered the following criteria in Mass Delete for ...
1
vote
0
answers
73
views
Is it possible to change the contact field on all cases from a lookup to a non-linking text field?
We are cleaning up old contacts and running into the issue of being blocked by linked helpdesk cases.
We no longer use Salesforce as a helpdesk but would like to keep record of cases in case we need ...
1
vote
0
answers
151
views
Strange ENTITY_IS_DELETED Error from this Method
Strange one...I'm getting ENTITY_IS_DELETED on the line below, but this method is the only thing that deletes these Account_Rule_Association__c records anywhere, and it is set in most cases to only ...
1
vote
1
answer
91
views
ERROR running force:package:delete: entity type cannot be updated: Package
When I try to execute an sfdx command
sfdx force:package:delete -p 0Ho1n000000PAwZCAW
I see an error
ERROR running force:package:delete: entity type cannot be updated: Package
Why do I see this ...
0
votes
1
answer
603
views
Using Collection Filter to then be used in Delete Action (flow)
I'm building a Record Triggered - After Save flow.
In the flow I have a GET element that is
gathering all AccountTeamMember records with a specific Account Id. (getCurrentAccountTeamMembers)
...
0
votes
1
answer
136
views
Trying to delete Apex with ANT Migration Tool - INVALID_SESSION_ID
I am trying to delete 2 Apex classes and 2 inactive Apex triggers from a production environment using the ANT Migration Tool and I am stone-walled by an INVALID_SESSION_ID error, but I suspect there's ...
1
vote
1
answer
435
views
Queries on Large Object (>1 million rows) Fail to Execute
We have an object with approximately 1.5 million records in Salesforce. These records are created in an external system and synced with Salesforce every 24 hours. On a 24 hour basis, we delete all 1.5 ...
0
votes
3
answers
4k
views
Delete Mass records
I want to delete 10 million records from the custom object. How to delete all records without batch class and within minimum time.
1
vote
2
answers
2k
views
How to mass delete only one particular field value (for all records)?
I have a custom object, one of the field in it is email, all the values saved in this email field got corrupted.
Not all the records are having email value.
Irrespective of that, I have to clear/...
0
votes
1
answer
388
views
Delete Case button access removed while keeping Delete Case access on object for merge purpose
I have a requirement to remove the access for specific users, on the Delete case List View button.
These users should still have Delete access on the Case object, in order to be able to merge cases.
...
0
votes
1
answer
191
views
Delete every sObject record assigned to a user without specifying sObject
As far as I know this is not possible but, is there a way we can delete all records related to a User (without specifying its sObject) from Apex?
1
vote
1
answer
585
views
Delete ContactKey associated to device Id Mobile Push when contactkey is not the contackey that I want to use
I have a mobile app with an android SDK to be able to send push notifications from the Marketing Cloud. Each user who installs and registers in the app must receive a specific ContactKey determined by ...
0
votes
0
answers
27
views
Salesforce fields recover options
New here, thanks for your help.
I have salesforce cloud enterprise. We had a third party trying to setup their software for scheduling and it was done in the live environment not our sandbox.
Issue is ...
0
votes
1
answer
346
views
SFDMU - Deleting 30 Millions records
I deleted 30M records with SFDMU.
The only issue I faced was that I have to update the Json file for every 900,000 records and re-trigger the job using sfdx sfdmu:run --targetusername Production.
By ...
0
votes
0
answers
279
views
Contact delete in Marketing cloud- Which account id we have to use if we have multiple business units in payload
Need a clarification in contact delete by lust reference.
We have a parent BU (business unit) at the top of the tree, and one of the other BUs is TEST.
In TEST we have created an Installed Package ...
0
votes
1
answer
3k
views
Delete records of other users with OWD as Public Read/Write
I have a custom object "Position" and the OWD setting is set as Public Read/Write. On the Custom profile I have given Read, Create, Edit & Delete permission to the Position Object
When I ...
0
votes
1
answer
138
views
Delete a file from a related list by non-owner
I have a record with a file in a related list. I want to allow a non-owner to delete that file. Since you can't add a custom button to that list and non-owners can't delete a file how can this be ...
0
votes
1
answer
623
views
How do I correctly implement the 'isDelete' method?
This is the code I am trying to use. I will also add that in the parameters of the trigger, I have added the 'before delete' and 'after delete' at the top of the trigger.
And I am getting the ...
2
votes
1
answer
305
views
How to clean Product Item Transaction from Storage
We are currently having almost 6 GB space occupied by Product Item Transaction object. We want to Delete All Product Item Transaction records except for current and last Year. The object is not ...
0
votes
1
answer
203
views
Delete custom field for custom object from deleted fields without erasing one by one
When I delete custom fields of an custom object, the deleted custom fields goes to Deleted Fields, I need to empty this Deleted Fields I have about 500 fields I need to delete them once from Deleted ...
0
votes
1
answer
67
views
mass delete names from opp
I have a custom field on an opportunity record called Team Member.
If Team Member contains one of the names below, then I must delete the name.
Is dataloader the best way to do this? or is there ...
0
votes
1
answer
625
views
Can we delete list which contains different SObjects with one DML statement?
I have List which can contains Accounts and Contacts ;
Can we delete the list using just ?
List<SObject> testList;
delete testList;
Can we delete list which contains different SObjects with ...
3
votes
1
answer
2k
views
Flow component : Delete Records
I have a Screen Flow. There is one Screen Element containing a Lightning Web Component which is based on the standard lightning-datatable component, which allows the user to edit a set of records. ...
10
votes
1
answer
2k
views
Deleting (or Renaming) Custom Metadata Object / Custom Object yields Insufficient Privileges
I have a non-managed package Custom Metadata object in my developer sandbox org
Foo__mdt
I am the system admin
When I try to delete this object from Setup, it fails with Insufficient Privileges
If ...
0
votes
1
answer
1k
views
Postman Bulk API 2.0 Delete: Error "The 'delete' batch must contain only ids"
trying to test Bulk API delete functionality in Postman desktop. I created a Job like so
{
"object": "et4ae5__IndividualEmailResult__c",
"operation": "delete&...