Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
0answers
10 views

Oracle sql running from groovy: ERROR : Incorrect number of parameters for processResults Closure [on hold]

sql.execute(" delete from cust_master.cus_address ca where ca.dish_customer_id in ( select dish_customer_id from cust_master.cus_customer c where c.dish_ext_customer_id = '12345')"
0
votes
1answer
18 views

View and Delete Users List Views

We have recently removed the users rights to Edit/Create/Delete their own list view so that they will use the company shared list views. This unfortunately had people trying to stab us because we ...
0
votes
1answer
12 views

Give delete access to records of particular users without 'Modify All' using apex

I want to give delete access to some set of users in certain condition to some records. I don't want to do this using profiles/permission sets. I want to achieve this using apex. Could anyone please ...
0
votes
0answers
25 views

New To SFDC. Help a NEWB with Trailhead [on hold]

I'm new to SFDC and trying to learn through Trailhead. I have screwed something up and cant figure out how to delete a custom object i have created. Anyway i try to delete it I get an Error : "...
0
votes
2answers
27 views

Does Database.SaveResult, Database.DeleteResult, etc. implement a public interface?

The various DML operations (insert, update, delete, etc.) all return results with very similar methods and properties. It is not uncommon, as a developer, that I should want to handle these results ...
0
votes
1answer
12 views

How do I delete a component from a managed package?

We created a managed package in our developer org and made it a released package. Afterwards, we decided to remove some custom fields from the managed package but saw no way of doing this in the org. ...
-1
votes
2answers
31 views

How to give custom object delete permission to all users in org?

The user can belong to any profile or role. In future, any new user created with a new profile or with a new role, he/she will get delete permission automatically. Please suggest a solution without ...
0
votes
0answers
16 views

@HttpDelete: how to change SOQL filter from Id to the custom External_id?

We have an example from trailhead. But how can we change Id =: recordId to the External_id =: recordId in SOQL? I think we also change the logic of our code, because if just change it - Http-service ...
0
votes
2answers
40 views

DELETE a record by REST API without @HttpDelete

I need to make integration between Org1 and Org2. We created a callout POST. When we create an object in Org1, we also create an object in Org2. POST work. All is Ok. Now I need also delete an object ...
0
votes
1answer
52 views

UpsertData and DeleteData not working

I am using this AMPscript in a Landing Page, and it seems to prevent the page from displaying anything %%[ SET @SubscriberKey = QUERYPARAMETER('SubscriberKey') SET @Operation = '...
1
vote
1answer
23 views

What is “Field Based Page Assignment Criteria” in relation to a custom field?

I am attempting to delete a custom field from the Contact object and when I do, I get a message saying it cannot be deleted because it is referenced elsewhere on salesforce.com. The section listed is "...
4
votes
1answer
135 views

Is there some event to delete record from Lightning component like e.force:deleteRecord

There are a couple of events in Lightning to operate with records like e.force:createRecord or e.force:editRecord, but I did not find anything to remove record. https://developer.salesforce.com/docs/...
2
votes
2answers
158 views

Delete an SObject by knowing only Id

Is it possible to delete an SObject by knowing only Id? Here is what I found: Id del = '003S00000099999'; // whatever ID you are deleting Contact ct = new Contact(Id = del); delete ct; So, is it ...
0
votes
0answers
22 views

Delete an object specific action

How could I delete an object specific action? Here is a screenshot in which you can see that there is no such option as Delete, only Edit on the right of the action list item. I have a System ...
0
votes
1answer
290 views

How to delete a Trailhead Playground and Developer Edition?

Since it's not possible to delete a user but only deactivate them, I want to delete the entire Trailhead Playground and Developer Editions I don't use anymore in order to free some of the usernames I ...
0
votes
1answer
70 views

How Can I mass delete Account Records with a specific Record Type in Salesforce using Workbench?

I tried to delete Account Records using workbench and it gives me this error: Failed: InvalidBatch : Referenced file "request.txt" is missing or is a directory I am not able to understand how to ...
2
votes
1answer
76 views

Deleting Custom Objects

I have three connected Custom Object I'm trying to delete. When I attempt to delete them, I get the following message. 'Your attempt to delete .... could not be completed because it is associated ...
0
votes
0answers
13 views

Unable to trace what's causing field value deletions under custom child object

we are facing a severe issue which is causing deletion of field values automatically. We have a standard object Opportunity soon after closing this(ClosedWon) a new record is creating under it's ...
1
vote
2answers
65 views

Delete a record and hide it from pageBlockTable without filling the form

I want to have a "Delete" button for every record(row) displayed on my Visualforce page, but evry time I want to delete my records I have to fill my form with some values and then the record can be ...
1
vote
2answers
43 views

How to find Field Sets that are using a Custom Field?

I created a custom field in an object a long time ago and now I want to delete it, so I go to Setup > Object Manager > {OBJECT} > Fields and Relationships, and where the field is, I click the ...
0
votes
1answer
41 views

Can guest user delete custom object records?

I have a custom object which is having look up to Account and contact and few other custom objects. Can users with Guest user License delete such records. I have been trying to delete with an ...
2
votes
0answers
60 views

Deleted contact's ID is not removed from converted lead. Why?

We have a requirement to delete all converted leads whose corresponding contacts have been deleted. Upon implementation we noticed something odd: After creating and converting a lead via UI (classic ...
0
votes
0answers
125 views

Cannot delete Apex Class in Production Org

I am trying to clean up unused APEX classes, notably ones without test classes associated with them to increase our code coverage percentage. No matter what I have tried, I cannot delete Apex classes ...
2
votes
2answers
155 views

INSUFFICIENT_ACCESS_OR_READONLY, when deleting OrderItems in Apex

I am currently working on a lightning quick action which will update OrderItems on demand from a specified quote. If an OrderItem has no corresponding QuoteLineItem, the line item will be deleted. ...
0
votes
0answers
49 views

Error in deleting a trigger in Production: Invalid type: Schema.sObject

Using destructive package in workbench, I am trying to delete a custom trigger (not Managed) from Production built on Managed package object "Question" and I am getting the error: Invalid type: ...
1
vote
2answers
29 views

I uninstalled a package but custom fields stayed?

I installed the PhotoLoader by GearDesign into my personal dev org and don't like it so I uninstalled it.. I'm still seeing remnants in certain places. The User object still has the fields it used and ...
0
votes
1answer
77 views

Limitations when using ALL ROWS in query

Good day everyone. I am trying to view all my events including the deleted records. My query looks like this. List<Event> allEvent = [SELECT CreatedDate,Description,DurationInMinutes,...
1
vote
3answers
390 views

Delete all Contacts - Export all Contacts

The problem: We want to reset our contact database ==> we have to delete all contacts. Unfortunately that does not work as intended with the relatively new deletion tool of salesforce. To achieve ...
0
votes
1answer
28 views

Mass Delete Data Extensions

Does anyone have a way to mass delete out thousands of data extensions. They are not all in the same folder but all follow the same naming convention.
2
votes
1answer
178 views

AccountHistory not deleting immediately after an update

As part of the GDPR compliance process, we are updating a few name fields in Account with a random text and then calling the AccountHistory delete function for the tracked field. We are running the ...
0
votes
1answer
65 views

Unlike Item in Chatter API: “HTTP Method DELETE not allowed”

I'm trying to do an "unlike" on a chatter feed item through REST. I can't find the official documentation on how to do this, but per posts in different forums = we simply change the method to "DELETE"....
0
votes
1answer
48 views

Delete trigger does not invokes

trigger : if(Trigger.isDelete){ for(OrderLineItem__c ol: trigger.old){ List<OrderLineItem__c> order=[Select Id, Student_Roll_No__c,ShippingStatus__c,RewardPoints__c, ...
0
votes
3answers
542 views

Are deletes allowed for Big Objects

Can you tell if I am allowed to delete records of big objects? In workbench when I try to delete some records I get a compile error. database.deleteImmediate([SELECT Id FROM big__b]); COMPILE ERROR: ...
0
votes
2answers
2k views

In <force:recordData> not able to set it's recordId Attribute from client-side controller

Whenever I click on the <lightning:button> inside <aura:iteration>, I need to delete that particular record using <force:recordData> but When I click on <lightning:button>, ...
0
votes
1answer
25 views

Error catching when inserting multiple object types

We have a page inserting three different object types. Historically, it has attempted to insert one and, assuming no errors (try and catch), moved to the next. Until all objects were inserted. If ...
1
vote
1answer
77 views

Before Delete Trigger Recursive Error

I'm new to Apex and code... I have two objects that relate to each other with a before delete trigger on each. If object A is deleted, it's trigger will also delete object B. If Object B is deleted, ...
0
votes
1answer
69 views

Before Delete Test Class - Getting “De-reference Null Object error on other trigger”

I'm new to Apex and Code... A trigger from a managed package is causing my test class to fail. Here's the code for the trigger causing the error: trigger ...
0
votes
1answer
56 views

Before Delete Trigger, Need to Delete Linked Record, getting “De-reference Null Object” Error

I'm new to Apex and code. I have 2 objects that are linked to each other 1 to 1. There is a lookup to the other record on each record. I'm writing a trigger that, when record A is deleted, record B ...
0
votes
1answer
182 views

how to delete subscriber using SSJS in All Subscribers

We have written a script to delete mass subscribers from All Subscribers. The same script was working fine last month. But when we tried couple of days ago, its not working anymore. We also tried to ...
0
votes
1answer
59 views

Delete salesforce trigger

I want to delete apex trigger called RollupCertificationEmail.i install the IDE and make Inactive the the XML from the sandbox but when i tried it to deploy it on the production it is giving me this ...
0
votes
1answer
33 views

Remove Custom List button for only few users of a Profile

I have a Custom list button which needs to be hidden/removed for those users of a profile who do not have delete access. There are few users of the same profile who has delete access for that custom ...
0
votes
3answers
271 views

Delete Row with confirm dialogbox

In JavaScript function all the alert showing and id is getting but for controller method is show's " DML statement found null SObject at position 0" Exception. Controller public class ...
0
votes
1answer
24 views

Can't delete a record in a Custom Object using a certain profile

My custom object Project Team has a Public Read/Write OWD. The profile Regional Manager has a Modify all access to the Project Team custom object. When trying to login as the Regional Manager, I ...
2
votes
1answer
42 views

Can you delete records in an uninstall script that is a part of a managed package? Please Read the full description

I have an install script in a managed package which inserts 2 records in the installing org. This seems to be working fine. I figured that as a part of uninstall, I should be deleting these records ...
5
votes
1answer
619 views

Is the LastModifiedDate of a deleted record the date that it was deleted?

The question's in the title, really. I'd imagine that LastModifiedDate for a deleted record would be the date it was deleted. But, anecdotal evidence from users seems to dispute this... I've queried ...
0
votes
1answer
22 views

NPSP deleting values

One of the records of our org was unexpectedly updated last month, and we saw on its history that the user Nonprofit Success Pack was responsible for that. How can we discover the cause of the ...
0
votes
1answer
58 views

Recycle Bin Automated Data deletion Duration

The data in recycle bin is not deleted after 15 days automatically. Can anyone please help me understand the reason?
0
votes
0answers
160 views

Unable to delete class from production

For some reason I'm not able to delete specific class from production. Earlier I comment all the code and it was deployed ok from Dev--> QA, and then from Dev --> Prod. Now I want to delete this ...
1
vote
1answer
162 views

SOQL Query in before delete trigger not finding results

My scenario is Object A has a field that stores ID of Object B. If Object B is deleted, I want another field marked on Object A. I'm not sure what I'm missing, but my SOQL Query isn't finding ...
0
votes
1answer
180 views

Governor limits involving cascaded deletes?

I'm writing a job to bulk delete records from my database. I've already seen this question: Cascade delete limits? But it does tell me how the deletion limits are affected. The object whose records ...