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
-1
votes
1answer
28 views

Difference between Upsert and Update database methods

Good morning. Database.update (fields , allOrNothing) Database.upsert (fields, externalId, allOrNothing) I need help to understand why the second parameter "externalId" is not necessary on ...
0
votes
0answers
13 views

How to update a counter on Parent Record considering all records in the transaction with a Record Triggered Flow?

I need to update a counter on the Account object everytime an Asset change its Status. Let's suppose I have 2 Status 'Active' and 'Not active'. The record triggered flow on the Asset (after-save) will ...
0
votes
1answer
60 views

Rows.update data extension function

What is the error in this code: <script runat="server" language="JavaScript" executioncontexttype="get"> Platform.Load("Core", "1.1"); ...
0
votes
0answers
23 views

Updating the column and data of lightning-datatable on change of a combobox value in LWC

I have created a lightning datatable and have populated contact data in it.I am trying to update the column and data in datatable on change of a combobox. The combobox has three options Lead, Contact, ...
0
votes
1answer
54 views

How to test trigger that compares Trigger.new with Trigger.old [duplicate]

I have a simple trigger that runs on Account update, and the only logic is a check to whether or now BillingPostalCode changes or not. This is my code: trigger ZipCodeUpdated on Account (before update)...
0
votes
1answer
44 views

Update returning undefined

I'm trying to learn to code in Apex and LWC for fun, but I'm having an issue here that I've been able to understand why: Apex class @AuraEnabled(cacheable=true) public static void sellItem (String ...
0
votes
0answers
14 views

lightning:recordEditForm does not updating, just inserting

I used lightning:recordEditForm in my aura component file and save button function is okay but I want update an already existing record.. When I click the 'save' button in edit page, a new record is ...
-2
votes
1answer
17 views

Update sibling records from the same object fails

I have a custom object called 'myObject__c'. This object has a lookup with Account. Now I want to get the values of an existing record (e.g. recordA) and update another record (e.g. recordB). this is ...
0
votes
0answers
24 views

Issues Updating a Contact via API

I am new to SalesForce as a whole, let alone needing to use its API. We keep track of and manage Contact information in a Google sheet, so that NON-Sales reps who assist with post sales can reach out ...
0
votes
0answers
41 views

Getting Error while flow try to update event field

Can anyone please help me out in solving a process builder error? I have created a Process Builder on the Event object which is updating a description field from a custom field on the event object ...
0
votes
1answer
32 views

How to assign values to Schema.sobjectField[]?

I am working on after update trigger and I want to know what fields were updated. I got a code on StackExchange which would serve my purpose : But can anyone please help me on how to assign values (...
0
votes
1answer
104 views

Marketing Cloud - change subscribers from Held to Active

I have a large list of subscribers I want to change from Held to Active. I've tried the following For multiple records: Allsubscriber >> search >> criteria is subscriber status -...
0
votes
1answer
31 views

How to get the list of value from the metadata when updating picklist values through REST API

I am trying to update a picklist values through REST API, I'am having a problem getting the list of values so I can add new picklist values. I'am having an error System.TypeException: Invalid ...
0
votes
1answer
33 views

Flow update record multiple times

I have a flow which update one record multiple times and I run into a soql query problem. I have two objects A and B, the flow should copy the value of object A to B but only if the field is not null, ...
2
votes
1answer
531 views

how to find this update will impact my org securely access aura components (update) winter 22? [closed]

https://help.salesforce.com/articleView?id=release-notes.rn_aura_security_ru.htm&type=5&release=232 I was not able to get the context,How it is going to effect my org ?
0
votes
2answers
283 views

Update total amount field on Account using trigger

I have written the following code to update a custom field (Total_Amount__c = Sum of the amount of all opportunities related to the account) on the update of Account. The following code works but ...
0
votes
2answers
39 views

System.CalloutException when doing HTTP response [duplicate]

I keep getting System callout error when updating a contact field for multiple contacts. System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out ...
1
vote
1answer
21 views

Allow users to perform a Job only after hours

I am trying to understand or come up with a solution for the issue we currently having in our Org. We have a situation that our Marketing users are adding the existing contacts to the Campaign which ...
1
vote
0answers
41 views

Updating a large batch of data in a DE without primary keys

I have an issue with a client, that I would like to know if anyone could help us with some kind of alternative solution. There is a client Data Extension with over 14 million records that we need to ...
0
votes
1answer
45 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 ...
0
votes
0answers
15 views

purchaseinventorytrigger: execution of AfterInsert caused by: System.FinalException: Record is read-only Trigger.purchaseinventorytrigger: line 8 [duplicate]

trigger purchaseinventorytrigger on KBT_Purchase_History__c (after insert ,after update) { for (KBT_Purchase_History__c ph: Trigger.New) { System.debug('Trigger.New List' + Trigger.New); ...
0
votes
2answers
1k views

Executing the SFDX Update command to update the CLI to latest version is not working

I'm trying to run the sfdx update command in Windows 10 and every time it gives me the following log: PS C:\Windows\system32> sfdx update sfdx-cli: Updating CLI... already on latest version: 7.94....
0
votes
1answer
65 views

How to add conditions to triggers

I have this Application object that runs through a trigger and trigger handler after DML update. Day-to-day this is fine since most Applications are produced by internal/system admin users but we now ...
0
votes
0answers
32 views

The trigger is not inserting the field and is not being triggered either [duplicate]

I built a trigger to insert a custom object record (NPSResponse__c) when the SurveyInvitation object is updated. The Developer Consloe did not point out any errors, however when I update a ...
1
vote
0answers
28 views

REST update fail, REST insert work

I have this strange issue. I have opened up REST requests using a read only user in a sandbox, all work fine. The request can post an insert in cases and send an update to changes status etc. I then ...
0
votes
0answers
30 views

Why I cannot update the Account ID on this for loop?

for (Account acc : newAcc_lst) { System.debug('to15format Test 1-> ' + acc.id); Id to15convertString = acc.id; System.debug('to15format Test 2-> ' + to15convertString); String ...
0
votes
0answers
179 views

Custom field updating in database but not showing in UI

I have a custom field on the Case object, which is of type Number(18,0). This field is originally null, but after a trigger call, it gets updated to a certain value fetched from an API. I have ...
0
votes
2answers
80 views

Validation Rule Profile Exemption

I have a validation Rule that I require assistance with , this validation rule should only allow fields to be updated by the two profile ids specified: NOT( OR( $Profile.Id = "...
0
votes
2answers
133 views

Update a record in future method with JSON data [closed]

From process builder getting record id and pass that in to apex. Apex class to update the record: public class BacktoQuantum { @InvocableMethod(label='getdata' description='Get data ...
1
vote
0answers
27 views

Trigger with callout not updating a field on Case object

I have a future callout which is triggered after case creation/update. The callout sends a request to my backend to create a resource there, then, it returns the resource ID, and it should ideally add ...
1
vote
1answer
79 views

Invalid Field Mapping in DataLoader

DataLoader is not loading the column correctly. I'm trying to update Task...But I get the error "Id not specified in an update call" What i have to do in this case?
0
votes
2answers
180 views

Update Salesforce record with where condition from field

We have custom object where we have custom field as status as open, inProgress and close. We are creating this custom object record using connected app via REST API. We are updating the fields as we ...
0
votes
0answers
63 views

The Opportunity field isn't getting updated from Flow

I have created a Record Triggered flow on the Opportunity object which triggers on both creation and update of Opportunity record. In my first step I have added a condition to check if a lookup field ...
1
vote
2answers
727 views

Dataloader Update Error - Account ID: id value of incorrect type: 001XXXXXXXXXXXXXXX

TL;DR: Trying to bulk update one field in Account but being told Id is of incorrect type. Have checked and am positive it is of the correct type. I am trying to perform an Account bulk update with ...
0
votes
0answers
66 views

Update field on winning merge record

Please let me know if this should be deleted and/or merged with other topics (but literally every single google result I get is purple already - I have looked at everything I can find). Long story ...
0
votes
1answer
85 views

Apex Trigger not Firing on Mass/Bulk Update

I'm having an issue where my Apex Trigger only works when updating one Contact at a time. It doesn't work too well when doing a bulk or mass update and I don't quite understand why. My trigger checks ...
0
votes
0answers
46 views

Updating multiple contacs at once using marketing cloud rest api

json = { "contactKey": lead_id, "attributeSets": [ { 'name': 'MobilePush Demographics', 'items': _attrs_to_items(demographics_attrs), ...
0
votes
1answer
294 views

How to Update a Case Object using LWC

I am pretty new to LWC and I am trying to create a button that allows the user to edit/update a selected case from a list view. I have looked around the web and a common solution is to use SObjects in ...
0
votes
1answer
224 views

Update the parent case when the child case is closed only on certain recortypes

I am trying to update the parent case status when the child case is closed and thhis should happen only on certain record types. Also I need to bring in the last case comment from the child case that ...
0
votes
1answer
35 views

Update Parent Case from the Child Case fails [duplicate]

I am trying to create a trigger to update the parent casestatus when a child case is created. I have the below trigger on after insert like below trigger setTISStatusFromTGS on Case (after insert) { ...
0
votes
1answer
39 views

Update Record Field in callout fired from an AfterUpdate Trigger

So I have a Trigger on Account, on the AfterUpdate event (I've also tried on BeforeUpdate), it launches a SOAP Request to a WebService (via a @future method), and this WebService returns a number that ...
0
votes
1answer
90 views

How to update Email Opt Out field?

Is there any way to update the Email Opt out field ? this is OOTB field in SF but when i trying to save my code IDE told my " field is not writeable" The API name is IsEmailBounced
0
votes
1answer
123 views

Error when trying to Update using nforce to Product2 object

I am trying to update a custom field on the Product2 object, namely S3_Image__c - it is a URL field, linking to an image on AWS S3. Now, I've basically lifted the code from the examples given on the ...
0
votes
0answers
54 views

Trigger Field Update for existing records

I wrote a trigger to update the field B with a field A value when we create a record, now I want that field B to update everytime I edit the record. would trigger update the existing record fields ? ...
0
votes
1answer
51 views

Making changes to Case Effective Date

I am attempting to use workbench to update the Effective Date of several cases and it's giving me the error "'7/8/2020' is not a valid value for the type xsd:date." Updating Object Type: ...
1
vote
1answer
77 views

Unable to automate a change of contact's device status with API in Marketing Cloud

We are trying to find a way to automate a change of a contact's device Status in MobilePush demographics in the Marketing Cloud. Theoretically, this should be possible with the Update contacts call in ...
0
votes
1answer
57 views

Trigger doesn't update event

with this trigger I can insert new events, but can't update them, if I update an Opportunity or a Task. trigger CreateEvent on Opportunity (after insert, before update) { List<Event> events = ...
0
votes
2answers
185 views

SOSL Query and Update

I am practicing SOSL queries. I tried to find the matching records of given Email ID across all objects and update it to new Email ID using SOSL query. My Code: public class Soslxmpl{ public List&...
1
vote
1answer
346 views

Does anybody know how to update Data Extract Activity via SOAP API?

I have a question on how to update Data Extract Activity using SOAP API. I found a document about the Supported Methods of SOAP API in Marketing Cloud: https://developer.salesforce.com/docs/atlas.en-...
0
votes
1answer
235 views

Havving issues updating fields in Data Extension with SSJS

In Marketing Cloud -> Automation Studio -> Script Activity, I am trying to run a script that updates a column named "age" (dtype: integer) based on another column named "date of birth" (dtype: date). ...

1
2 3 4 5
8