Questions tagged [update]

An UPDATE statement changes the data of one or more records already existing in a table.

Filter by
Sorted by
Tagged with
0
votes
1answer
572 views

Updating Opportunity when Primary Opportunity Contact Role is changed

I'm running into a challenge around automatically updating Opportunities. My Opportunities' names are generated by a workflow. This workflow pulls from various fields on the Opportunity object. ...
2
votes
2answers
498 views

Error when Update QueryDefinition with SOAP API

I try to update an existing SQL query activity in Marketing Cloud with SOAP API but I keep getting the same error. The request I send is this: <?xml version="1.0" encoding="UTF-8"?> <s:...
0
votes
1answer
110 views

Apex trigger caused an unexpected exception:ANNOT_INSERT_UPDATE_ACTIVATE_ENTITY,

Hi Members I have a after update trigger that calls a class method. But the update fails with the error: Apex trigger caused an unexpected exception: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, The ...
0
votes
2answers
559 views

Trigger to update fields on record create or edit

I have a trigger on the OpportunityLineItem object that we use to update 4 revenue fields with specific calculations when the record is either created or updated. For some reason it seems the trigger ...
0
votes
1answer
364 views

Count of Account Team members trigger on Account object

I am relatively new to coding in apex and have what appears to be an easy task, but am reading lots of mixed ideology on whether or not it can be done. I am trying to create a field on the Account ...
1
vote
2answers
69 views

Can I update field to same value for every row in a list?

I want to update a field to the same value for every row in a list all at once. For example: List<Opportunity> osl: [SELECT Id, CloseDate from Opportunity WHERE CloseDate !=: today; osl....
0
votes
1answer
41 views

How to display a popup message on record update

When a user edits the value of a custom field SoM_Status__c on Custom object SoM_Request__c using a standard page in Classic UI and clicks 'Save', I want to pop up a message reminding them that they ...
2
votes
2answers
640 views

Lead before update runs on insert

I have a fresh dev org, with nothing at all in it other than this one trigger that is below. When I create a new lead, this trigger is ran. (ie, I put the new leads name as John Smith and Company as ...
0
votes
2answers
3k views

How many records can UPSERT add or update in single request in salesforce..?

My question is if i want to insert 20,000 records and i choose to use UPSERT because it contain both insert and update. my data is going to be updated every day. is it true that UPSERT can only create ...
0
votes
2answers
161 views

Updating a field on Account level, from field on Contact

This sounds like it should be super simple; and I can't believe I can't find documentation to support my assumption. I have a field, MDID (managed department ID) on the contact level, and I'd like ...
0
votes
1answer
71 views

How to update the contacts of Account when one contact is updated?

How to mass-update all other contact records on the same account When a single contact record updated? Trigger code: trigger syncContact on Contact (after update) { map<id,string> conMap = ...
1
vote
1answer
354 views

Trigger on child records to update other children and parent (SELF_REFERENCE_FROM_TRIGGER)

So as a child to account, we have an object called Account_Designation__c, which is a junction object between Account and Designation__c (a table of designations such as MBA, CFE, CPA, etc.). What I ...
0
votes
1answer
29 views

Had a user put parentheses in a last name for a contact and the contact wouldn't update after that

Ran into this in production. We have a contact for our patients and the customer entered "Smith (Jones)" as the contact name. This created a contact successfully, but when they tried to edit the ...
0
votes
0answers
21 views

Updating a value in the list to be updated before and after the dml operation

Im trying to update child record in parent after trigger, where i need to update this child's boolean (MA_Campaign_Qty_Boolean__c) as part of restricting some validation in child's trigger for this ...
0
votes
2answers
936 views

Multiselect picklist - dataloader

When am trying to update contacts using Dataloader then multiselect picklist values for existing records gets overridden.I want values to be added to current multiselect picklist without overriding ...
1
vote
2answers
468 views

Edit More Records at Once with Mass Inline Editing - Winter 18

As per Winter ’18 Release Notes, there is a provision to update up to 200 records without leaving a list view. The screenshot is showing Opportunity record page but it is not mentioned that it is only ...
0
votes
2answers
920 views

Process Landing Page to Update Data Extension

I am trying to update a data extension using an email recipient's email address as the unique identifier - when the email recipient presses a button in the email, I want to go to a landing page that ...
1
vote
0answers
38 views

Updating record with global unique identification value

Using the Global record Id set on record creation I can update the record within the developer console, but in the class it throws an error... Code below Get rec to update: List<Session__c> ...
0
votes
3answers
722 views

Test class for a trigger in which I am updating child record

Yeah this might be a simple question. As I am a beginner, I would like to know how to cover 100% code coverage for the below small trigger. Trigger: trigger UpdateChildRecord on Account (before ...
0
votes
1answer
546 views

How to get the row data in apex pageblocktable to update the list in apex class

Im planning to update each row using actionSupport event = "onchange". I'm trying to get the ID of the row but it is NULL. Or Is there any way It can be updated as a list without using the ...
-1
votes
1answer
143 views

Update of a child collection is not working

I have a detail page button on a Custom object which updates child collection records. In the extension I'm calling a batch to update the child records on a given criteria. The batch completes with no ...
1
vote
1answer
33 views

Error when updating a custom field in a custom object - Attempt to de-reference a null object Error

I am trying to update a field in a custom object and I have stripped back my code to the bare minimum. I am getting this error on submission when I click the save button. How do I fix it? System....
0
votes
1answer
257 views

How to utilize procesbuilder to change related list

I have a use-case where I have several opportunities divided by 2 recordtypes. At the moment all show up in the related list on account. I have created 2 extra lookup fields from opportunity to ...
1
vote
1answer
43 views

Update Opportunity on Save

I have a visualforce page with input fields that default to the current value of the opportunity. When I click save I want it to update the opportunity and then redirect to a new page. I have the ...
1
vote
1answer
228 views

Getting `UNABLE_TO_LOCK_ROW` even though i am using `for update` in the query?

We have a APEX trigger that updates large number of (10,000 aprox) contact owners in asynchronous fashion. Even though I am using for update keyword when querying the contacts for update I am still ...
1
vote
1answer
559 views

How to update record after some time based on certain criteria?

Suppose I have a record that is created with status X, and I need to check it 60 days later if it still has the same status. If it is X, then change it to Y. I think this is doable with time-based ...
0
votes
1answer
119 views

Update opportunitylineitems inside an apex:repeat

I build inside a VF , a list of OpportunityLineItems using : <apex:repeat value="{!productsList}" var="p"> € <apex:inputField value="{!p.TotalPrice}" onchange="updateProd('{!p}');"/> (...
1
vote
1answer
638 views

MISSING_ARGUMENT, Id not specified in an update call: []

I have seen many posts with the same title but none of the provided answers explains why does this error occur. EDIT: My goal is to add another value to an existing case. I want to populate this case ...
0
votes
1answer
67 views

Update Field Properties

I want to Update Field properties Schema.SObjectField field = fieldMap.get(fieldName); Schema.DescribeFieldResult fieldDescribe = field.getDescribe(); labelMap.put(fieldDescribe.getLabel(),...
2
votes
0answers
1k views

Update data for custom object through Apex class and visualforce page

I created a Custom object Customer. First I want to show the details of a particular record on a page and then update that record after clicking on command button on the same page but my values are ...
1
vote
1answer
52 views

Updating of many records using Formula field meets any governor limits?

I am Trying to create a report on Object__c. So I am trying to use user custom field(projectName__c) value in custom object field(projectName__c) in filter in Reports. For that, I got a suggestion to ...
0
votes
1answer
24 views

Which is the default field on which operates Database.Update?

I just couldn't find any topic regarding on which Field the Database.Update will operate? I suppose that it will do the update on id but I'm not sure. Am I right?
0
votes
3answers
60 views

update field when a changed is made

I have this class wherein if the Accountid is not equal to contactID it should update the enddate to today. the problem is that it doesn't update the enddate to today date public with sharing ...
0
votes
1answer
931 views

Update Contact in Marketing Cloud with REST API

Our shop is running on Salesforce Commerce Cloud (former Demandware) so we use DemadwareScript/JavaScript and Pipelines in the Salesforce Commerce Cloud UX Studio Environment. The task that I am ...
1
vote
2answers
1k views

Database.update() is not updating the data, but there are no error message

I am experimenting this to test Database.update() to update data partially in Developer Edition. The issue is that, it is not updating the data and is not throwing any error. I am certain that, there ...
0
votes
1answer
157 views

Need to update task status of converted account from lead

I have this following scenario : In lead i have a checkbox called Created_By_SF_WEB and if it is checked true then i am going to create task automatically using apex trigger (using after inserting of ...
0
votes
0answers
91 views

Bulk change runningUserId on dashboards

Is there any way i can change the running user on several dashboards in bulk via back-end? I did not see dashboard to be listed as updateable objects. But, wanted to check with geniuses here if there ...
0
votes
2answers
77 views

How do I loop through all record and update a field from a lookup into a multi pick list?

The user decided the 'Program' field should allow multiple programs. So I created a new field that uses multi pick list. So now I want to loop through and copy the field 'ABC' to the multi pick list ...
1
vote
1answer
405 views

Update a parent record and create a child record within same transaction using SOAP API

My question is similar to this question, just that I am looking for SOAP JAVA client API based solution. Suppose, I have a Parent object Account and it's child object Contact. I have a web ...
2
votes
2answers
1k views

update and insert not working

Upsert not working..update and insert not working..need help I have tried using the example given in salesforce visual force developer guide for upsert. It just inserts a new row. I tried in a ...
-1
votes
1answer
334 views

Will formula fields update on api / bulk api update?

We're trying to figure out whether we should expect formula fields to behave as if the object in which those fields exist has been manually user-modified when we're updating records in that object, ...
0
votes
1answer
507 views

Update not working for Visual Force Page fields

I am writing a class to update a record with data from visual force page if it exists in contact, if it does not it will insert a row.I am using Update and Insert statements for this purpose.Looks ...
0
votes
1answer
777 views

Update a record using VF

I am trying to make a VF page that updates a custom object called Time_Sheet__c I only need a Text box and a save button (that updates the already existing Time sheet) The problem i am having with ...
1
vote
2answers
79 views

update opportunity having error

Can anyone please look into this and help me out Update failed. First exception on row 0; first error: MISSING_ARGUMENT, Id not specified in an update call: [] here is my code : public Class ...
3
votes
2answers
1k views

Developer Console Execute Anonymous not updating Query

I have the following query that is supposed to find all the entered data (Contact List) within the range of 2017 and 2016 ( which for some reason returning 2015 back) and see if the Firstname is empty ...
0
votes
1answer
31 views

Trigger for new products autocreation

I am working on a website on Salesforce. I have two main pages - login, home. On the home page, I just rerender different blocks with products of various types, information about the site and shopping ...
0
votes
1answer
1k views

Update all trigger records with new field value

I'm trying to update OwnerId on the a List<Case> once the fields are updated on a case object, only first case is getting updated but not all cases. I need to update all cases with same OwnerId. ...
0
votes
2answers
544 views

Updating converted Lead field [duplicate]

How can i update the statecode of a lead which is converted. I am trying to update statecode and countrycode of leads through dataloader. But i get records with errors "Cannot reference converted ...
1
vote
1answer
1k views

Stop Apex logic from running before update if it was already run before insert in the same transaction

Background: We have a custom object called Training History that stores customer training "minutes". Customers purchase minutes from us in blocks of 60, and we book Events for them in Salesforce for ...
0
votes
0answers
171 views

Update a lookup field in scheduled apex class

I am trying to update the BMCServiceDesk__Status_ID__c (lookup field) on the BMCServiceDesk__Incident__c object with a status of Closed. I need to get all BMCServiceDesk__Incident__c records with a ...

1 2 3 4 5 7