Questions tagged [field-update]

Field updates within Salesforce allow the user to automatically specify a field value.

Filter by
Sorted by
Tagged with
1
vote
0answers
21 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 ...
0
votes
1answer
30 views

Update record on server using lightning component

may I know why this code does not change/update the field object data? By default, the field object (Final_Approved__c) is false. The type is a checkbox. This code is in lightning environment js. ...
-1
votes
1answer
24 views

How to fix System.NullPointerException: Attempt to de-reference a null object in a Batch

I have a batch and I can't figure out how to fix System.NullPointerException error going through my debug log my kes variable is null for (Known_Error_Subscription__c kes : scope) { kes....
0
votes
1answer
18 views

upsert operation using IdLookup

I want to perform insert and upadate operation on Account on same record by using following query but It inserts two accounts with different descriptions Account acct = new Account(Name = 'practice ...
0
votes
1answer
21 views

Use Batch to send email on Article status change

I am trying to create a batch to send an email anytime the status on a Knowledge Article (Knowledge__kav) is changed. The difficulty I have on this particular object (Knowledge__kav) is that anytime I ...
0
votes
1answer
27 views

Match Ownership in Duplicate Leads

This is my first question here. I'm working with a company that allows duplicate leads, but they want all the duplicate leads to have the same owner. I'm trying to write a before insert, before update ...
0
votes
1answer
20 views

Updating value from apex class

I am in the process of learning apex / salesforce. I am trying to update a textfield, in the salesforce UI with the Account object, when a HTTP request is made. So in the base class I made for the ...
0
votes
0answers
12 views

Update Case field Number automatically based on child record (Task related to Case ID) by iteration in a flow

I'm trying to create a record trigger flow. My use case is to update automatically a field (Data type : Number) found in the Case depending on the number of records which have a type of Task. If the ...
1
vote
1answer
25 views

Update Case field from Service Contract related list [closed]

I'm asking for your help today because I don't know how to proceed. If you could give me advice or suggestions, I would really appreciate it! I would like to know how to update Case fields (Company ...
0
votes
2answers
20 views

Count number of related Cases To a Contact

I have created a trigger to count the number of Cases related to a Contact. But my field does not update. Could someone help me figure out what I am doing wrong? Thanks trigger ...
0
votes
0answers
10 views

Assign new Article Id to lookup field anytime a new version of KnowledgeArticleId is published

I have an aura component in community allowing a client to subscribe to an article(Knowledge__kav). When subscribing to the article, a record is created in Salesforce displaying the Article version ...
0
votes
1answer
23 views

Populate date field when another field is changed

I have two fields: Turnover and Turnover Date. The 'Turnover Date' is a formula field which needs to be automatically populated when the 'Turnover' field is changed/updated. Is there anyway to achieve ...
0
votes
1answer
20 views

knowledge__kav: System.NullPointerException: Attempt to de-reference a null object

I am unable to fix the error System.NullPointerException: Attempt to de-reference a null object on my trigger. Could someone help? Thanks trigger Knowledge_kavKnownErrorSubscription on Knowledge__kav (...
0
votes
0answers
17 views

Prevent automatic field update on a record when related record is update

I have created a button on Community allowing a client to subscribe or unsubscribe to an article in our client portal. When the client clicks subscribe A record is created in Salesforce in my custom ...
0
votes
0answers
9 views

Need to updated a custom date field (Target Ship Date) with 90 days from the Close Date

I need to automate a default custom date field (Target Ship Date) by 90 days from the Close Date entered by the reps and still have it be editable. I have gone into Field Update and entered the ...
0
votes
0answers
20 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 ...
0
votes
0answers
6 views

How to know which fields are not modified in patch request restore of account

I performed a get request on account object in sobjects/account/ . we get json as a responce and when same json when i will try for restore it says lot of fields are not updatable. So is there is any ...
0
votes
1answer
33 views

Notifications from process builder fire when Owner field is updated manually, but not when Owner is updated via process builder

I have a process builder set up to do the following on a custom object, Referral: If the custom field "Referred To" changes, update the Owner field to a queue (the queue id is dynamic based ...
0
votes
0answers
21 views

How to Assign Lead to License

I'm using the Process builder for creating a sign up request for the creation of a trial org. All things work fine, except one thing. The record created in license object(LMA) has no reference to the ...
1
vote
1answer
25 views

Process builder cannot evaluate formula field

I have the following formula field 'Payment Status' that checks if an invoice is paid or not: I have a process builder that checks if the value of the payment status is 'Unpaid', it schedules some ...
-1
votes
3answers
62 views

batch apex opportunity records are not updating with compare of metadata records

Opportunity records fields compareing with custom metadata record and based on values match opportunity stagename will update but it is not working and gettin error in apex job also that duplicate id ...
0
votes
1answer
35 views

How to use third party rest api json data to create Opportunity in salesforce?

I have JSON something like below and my code is written for an update as well as an insert but if I'm trying to insert another set of records it will only go to update since I iterating only OppMap ...
0
votes
1answer
13 views

Streaming API - update notifications payload

I hope one can help me out answering the following question, as the SF documentation is not precise at this: I know that based on a topics SOQL query and its specific configuration SF resolves whether ...
0
votes
1answer
25 views

Update a field of same record in after update trigger

Whenever an update happens in Salesforce from a third party system, we have to make sure that we don't fire the platform events and to ensure that we have a checkbox in place which is set to true by ...
0
votes
0answers
132 views

Error : The approval process references the workflow action FieldUpdate #### which doesn't exist for the **** object

While deploying the Approval Process through Change Sets, I am facing this error at line 15(in img) : The approval process references the workflow action FieldUpdate Status_to_Complete, which doesn't ...
0
votes
2answers
20 views

Update check box in a trigger

I want to update a check box in Opportunity obj.but it is throwing a error that field is read only. Please suggest me how I can update my field. My logic is if account having Lead and lead status not ...
1
vote
3answers
38 views

Can you use before trigger to wipe out a value on another field?

Trying to write a before trigger that wipes out the value of a field, Firm_Association__c if Consulting_Firm__c is either edited or deleted. They are both ID fields. I have never written a trigger ...
0
votes
1answer
54 views

Is it possible to update the same field in same object for multiple updates in the same batch class

Please let me know is it best practice to update the same field with different status for the same object in same batch class global void execute(Database.BatchableContext BC, List<SObject> ...
0
votes
0answers
23 views

Update Lead Object with field info from a custom object

I am trying to write a formula where, once a lead is created or updated, it takes the country name, compares that country name to a custom object records called Country and returns the Region ...
0
votes
0answers
86 views

Set “current User” in Workflow Rule - Fiel Update Action

I have a Worklfow Rule which changes a field Value. I have different User which will trigger this Workflow Rule. In the Field History of the Object, the respective user's name will show up. However I ...
0
votes
0answers
39 views

Trigger Field update on knowledge when record is created on custom object

For a particular case, I have the possibility to create a Jira issue (in custom object: JIRA_Issue__c) and an Article for Known Errors (in object Knowledge__kav) Jira Issue: known error Article: In ...
0
votes
0answers
25 views

Field update before or after creation of an issue

For a particular case, I have the possibility to create a Jira issue and an Article for Known Errors Jira Issue: known error Article: In this example I have create a Jira Issue and an Article for ...
0
votes
1answer
26 views

Use updated data for an email in a journey

I link the entry source DE to the contact record under an attribute group and then I can use a Decision split with Contact Data. I'm using this DE for a welcome journey. First I check if the Journey ...
0
votes
0answers
27 views

Re-evaluate Workflow Rules after Field Change on Record insert

I have 2 work flows and both of them have Evaluation Criteria as "Evaluate the rule when a record is created, and every time it's edited". WF1: Criteria: ISPICKVAL(Field, 'Annual') &&...
1
vote
1answer
241 views

How process builder evaluates the expressions for field update?

I'm having a field update in Process builder, as per the screenshot The problem is, I'm updating the record where User Action is NOT Awaiting GRN (as I am setting it to something else), and still the ...
0
votes
2answers
28 views

How to optimize my trigger

I have created a trigger to update a custom date/time field (called First_Aircall_Logged__c). Basically when an (Aircall) task is created on a Case; The trigger updates the Case field ...
1
vote
1answer
21 views

Is “Transfer Record” necessary to update OwnerId?

Under the hood, transferring a record is just updating the value of OwnerId. Transfer Record is necessary to do this through the layout. But is it necessary for DML? That is, if we run the following ...
3
votes
2answers
357 views

How would you use Schema.SObjectField to dynamically get the values of each field for the object?

Basically, we have this object: Animal. And Animal has a few fields, Number_Of_Legs, Warm_Or_Cold_Blooded, etc and I basically want to automatically map the names and corresponding values into a map. ...
0
votes
1answer
54 views

How to update a record in Salesforce via landing page linked to an email? [closed]

I have a landing page linked to an email and in the email there is a button. After the button is clicked I need to be able to connect to Salesforce and update a field in the Contact record. Please ...
0
votes
0answers
62 views

Create a workflow rule and formula field when Lead status is changed from X to Y to Z

Display the number of days Counting starts from zero, whenever a new record is created or whenever the "Status" value is changed from its current setting using old and new values(ISCHANGED ...
0
votes
0answers
22 views

How to adjust this PB so a picklist field updates every year on the same date?

We have a Current Grade field on our student Contact record. We would like it to update the Current Grade picklist value every year on July 1. I'm still new to Process Builder and formulas, and am not ...
1
vote
1answer
112 views

Execute trigger after the workflow rules

We have many workflow rules on the account Object, one of it is it prevents the users from entering wrong data in to Location__c.I recently created a Trigger on the Account Object which looks for a ...
0
votes
1answer
39 views

Field Update using Workflow

On a Agreement object I have End Date(date-data type) field , Auto Renew(checkbox), Terms months(number-data type), No of Terms(Data type-Number). End date should be updated based on Term month field ...
0
votes
1answer
59 views

How do I automatically send an email every time a person fills out a form in Marketing Cloud?

I have the following problem. I created a landing page using the standard Cloud Capture data extension because it was the only way to get the form to send data to the extension. But I needed an email ...
-2
votes
1answer
31 views

Workflow field update (date field) [duplicate]

On a Agreement object I have End Date(date-data type) field , Auto Renew(checkbox), Terms months(number-data type). End date should be updated based on Term month field when Auto Renew is checked. For ...
0
votes
1answer
245 views

Can we update related objects records in process builder without having direct relationship

I have a object(fulfillment) when i try to create a record for object(transferorder) based on closedate and stage values in object(poc),those values are updated with new values.Here I don't have ...
2
votes
1answer
505 views

Flows: trouble with updating a field used in a formula used in a validation rule

I am using an object from a third party package, we'll call it xyz__Obj__c, that has several fields, let's call them xyz__A__c, xyz__B__c and xyz__C__c, that are percentages. The package then has a ...
0
votes
0answers
98 views

Multi update records in data table LWC when selecting multi-rows

Hi I'm new to LWC and this is one of my assignment, I just learned it 3 days from now. Can someone help me how to code when user wants to multi update records in Data table? Detailed scenario: As you ...
0
votes
1answer
97 views

How can I create assignment rule on Account, Contact and opportunities objects?

I want to create assignment rule on standard objects (Account/contact/opportunity) I couldn't find, is it not possible to create assignment rule on Account/contact/opportunity objects ? My Scenario - ...
0
votes
1answer
110 views

Lock a Field on a Record based off of Profile

I have a field on a record that should only be editable by people with a certain profile. I can see that the read/edit is selected correctly under the field level security and I can see under the ...

1
2 3 4 5
9