Questions tagged [saveresult]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
101 views

Test Coverage for Custom Error Logging

I created a custom object to store errors in my code. So I am updating some of my classes to take advantage of this object, but I am now running into issues with test coverage. I am taking advantage ...
3
votes
1answer
322 views

Ignore Duplicate Results Alerts for Visualforce Page

I have a [visualforce] page with a [standard controller] and a an [extension] that [queries] a child and grandchild of the standard controller. The grandchild records have a [duplicate] match rule. ...
1
vote
1answer
480 views

Can we save list of OpportunityLineItems using lightning data service <force:recordData?

I am trying to create multiple opportunity products and quotelineitems for respective opportunities and quote. I have already inserted the opportuity and quote using lightning data service. But I ...
0
votes
1answer
37 views

Allow the insert of Custom Records even if some of them fail as duplicates

I want to ignore a bunch of records (Custom settings in fact) and want the transaction to ignore Duplicate errors. All other errors should make the insert fail. If a duplicate exists simply skip the ...
2
votes
1answer
383 views

DML Database method is covered by unit tests, how to determine reason for no test coverage of the SaveResult variable?

The blue indicates test coverage. The red indicates uncovered code. Where would I find the cause for the uncovered code? public List<Opportunity> insertOpportunityAndDefineRelationships(...
1
vote
1answer
26 views

Compile Error on batch class to fetch fields from saveresult

I have below code to fetch field values from records of Database.Saveresult. I am getting error as below. Error Expression of type Database.SaveResult has no member named Territory_Name__c Code ...
0
votes
0answers
36 views

Referencing one field in order to delete row if you save the record

Just want to ask if it's possible to save the record on the first row if it's completely fill-up the 4 fields, and the 2nd row will be automatically deleted when there's no SkillName if you save that ...
1
vote
2answers
90 views

Prevent insert if object in list is not valid and find which record is invalid

I am developing lightning component, on which user enters data in table and creates multiple records. If some records do not pass validation - row has to be highlighted with red. For this I need to ...
0
votes
0answers
25 views

How to Save my Picklist Records after clicking Save Button

I am Having 10 different VF page for my Custom Object FeedbackFrom__c. Every Page having 1 Pick list Field at page no 11 i am having Save Button if i click save Button every records should save ...
-4
votes
1answer
79 views

My Save Button is not working

I have one custom object called (FeedbackFrom__c) in that I having 10 fields, each fields having different VF Pages at page no 11, I am having one save button if I click that automatically 10 fields ...
4
votes
1answer
2k views

Why does my Lightning Component go into an infinite loop and fail to save?

I'm currently trying to refactor the Discover Lightning Actions source code into something which wouldn't make my eyes bleed on a professional project. At present, my CreateUser.cmp looks like this: ...
0
votes
1answer
136 views

Edit Table does not update database after save

I have the problem that my editable table does not update when I hit the "save" button. I tried inline editing and normal editing, nothing would save. Although I referred to a standard controller, I ...
0
votes
1answer
761 views

Get field values of newly created record other than Id

Is it technical feasible to obtain fields like OwnerId, Name from newly inserted record from database.Saveresult? Apex code: for(Database.SaveResult sr: srList){ if (sr.isSuccess()) { Id ...
2
votes
0answers
17 views

Is there a parent class/interface for DML Result classes? [duplicate]

I have a generic method that performs DML operations. I want it to return a result list, and I am wondering if there is a parent class/interface that DML Result classes derive from. All DML Result ...