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
1answer
37 views

Refresh the page after the flow completes

I have an auto launched flow that updates the Status of the Case to be closed when the button is clicked. The flow is like below I am calling the flow through the Detail Page Button using the URL ...
0
votes
1answer
18 views

Workflow doesn't update field when initated from apex

I stumble upon this problem multiple times so far. I want to make workflow initiate automatically.(through apex code) All my workflow is doing is copying a field value.(This field is new so it is not ...
0
votes
1answer
25 views

How to import MetaDataAPI to my SalesForce project?

I want to Update Picklist Values in a standard field in my project every X time. in my Apex Classes I was writing that function: I search for this error and figure out that I need to import ...
0
votes
0answers
28 views

how to update field in Lightning Web Component?

In my Lightning Web Component, I have a picklist field called Applicant_attendance__C according to the value of the picklist field the Stage__c field should get updated. Stage field is a read-only ...
0
votes
0answers
25 views

salesforce custom field value getting successfully updated through api but the updated field value not reflecting on sfdc ui page

I have a custom field for an object for a sandbox account at the portal. When I am updating its value through sfdc api it gets updated successfully and is also reflecting the updated value in the ...
0
votes
0answers
24 views

Look Up field auto Population on cases which is a related list to Cases

I have a Claim Request (Custom Object) as a related list on Cases object. Below is the Scenario. When a Claim Request Record is created by a user and is submitted for approval, based on the Approval ...
0
votes
1answer
20 views

Send email with attachment on field update

I have created a button to update a checkbox field. <apex:page standardController="McLabs2__Invoice__c" recordSetVar="Invoices"> <apex:form > <apex:pageBlock > &...
0
votes
1answer
46 views

When a record is updated, update related records using flow

I'm trying to use declarative methods to updated related records when one record changes. The two types of objects are related through a junction object, which means I cannot use a process builder to ...
0
votes
2answers
26 views

Want to write trigger on object to update the picklist field

Class : MonsterPositionClass Field : Experience__c Field : Position__c (picklist )> ( values:'Jr Engineer', 'Team Lead') Condition : if(Experience__c >= 7 ) then Team Lead should be shown my ...
0
votes
2answers
17 views

Automatic Date Stamp on a Stage Change

I want to add an automatic date stamp when an opportunity moves from Stage 1 to any other Stage that isn't closed.
0
votes
1answer
36 views

How to filter records based on parent object in process builder?

I am working on process builder. If the record passes the criteria node, I have added another filter before it tries to update the fields on the object. My object has a lookup to Account object, and ...
0
votes
1answer
43 views

Recursive Before Update Trigger Overwriting Saved Value with Null

UPDATE: Okay, so I've identified the issue. A workflow rule that checks for a specific opportunity stage and updates a datetime field with NOW() if true. Why would this field update undo other field ...
1
vote
1answer
85 views

APEX trigger lookup field value in onther custom object

This is what I have: trigger ComplaintInitialize on Complaints__c (before insert, before update) { for(Complaints__c Complaint : Trigger.new) { if(Complaint.RecordType_Name__c == '...
1
vote
1answer
76 views

I cannot update the unit price field on OpportunityLineItem

I am trying to update the UnitPrice on the OpportunityLineItem object; however, it does not update the field, my code is as follows: Id oliId = '00k1w000006SpWE'; OpportunityLineItem oli = [SELECT ...
2
votes
1answer
53 views

Workflow Field Update: Computing invalid date error - Invalid date formatting?

I have a workflow that updates a field based on a users schedule. The workflow action to update the field is telling me that it is computing an invalid date, I haven't been able to identify what the ...
1
vote
2answers
59 views

How to address multiple update actions on account through batch process

I have a batch process that does a query on an address object with a recordtype for billing / shipping / mailing. When I update the account there are multiple updates. Would there be a better approach ...
0
votes
2answers
46 views

How can I get my class to pull the exact record that made the trigger run?

Trigger: trigger UpdateLastActivitySubject_trigger on Lead (before update) { List<Lead> lead = Trigger.new; for (Lead ld : lead) { if (ld.Last_Activity_Date__c != trigger.oldMap.get(ld.Id) ...
1
vote
1answer
44 views

Does “Re-evaluate Workflow Rules after Field Change” behave more like a Boolean or a Set-ID for recursion prevention?

I'm refactoring 4 workflow rules into before-triggers, and one thing I noticed is that I'm not saving a lot of time. I'm investigating the possibility that this has to do with all 4 trigger handlers ...
0
votes
0answers
14 views

How to save a text field based on user input

I have created a LWC that displays a table of information for a user. I created a html lightning input, that looks like this. <td><lightning-input key={row.key} data-key={row.key} value={row....
1
vote
0answers
61 views

ActionHub (Mass Edit + Mass Update + Mass Delete) Lightning Customization?

We are currently migrating from Classic to Lightning. Our ActionHub Mass Edit + Mass Update + Mass Delete AppExchange package customizations rely on copy/paste of JavaScript for unincluded default ...
0
votes
1answer
53 views

The trigger that updates another object's field after inserting new record

I am new to Scaleforce. I created a new app, added three custom objects (Client, Property, Client_Property) and created tabs for them. So now CRUD is working correctly but I want to change Available ...
0
votes
1answer
31 views

update all child record when parent record is updated

I have created trigger on parent object (Vendor__c) to update child records(Transaction__c). Logic : when the Vendor Manager field is updated on a Vendor record, look for Transaction records ...
0
votes
1answer
37 views

Values in map overwritten by new ones

I have a Map where I put a String and a Decimal. Both of these fields are updated based on the day of the week. The String field can be converted into a date field since it's populated by the day, ...
0
votes
2answers
32 views

apex trigger is not updating a field on same object

I am trying to update the standard field of opportunity if custom field gets changed .. Here is my code for the same .. i want to run this in user mode o i am writtng class with sharing public with ...
0
votes
1answer
26 views

Can you update a lookup record field in apex? Such as object.relationship__r.field__c = x?

quick question here that's in the title. Is there any way to update the relationship record field in apex without looping through that object after querying a list of ids. Example snippet below that ...
0
votes
2answers
290 views

Update a lookup field to null

I need to update a lot of record to change their lookup field to null, I tried following code: public class UpdateContact implements Database.Batchable<sObject>{ public Database.QueryLocator ...
1
vote
1answer
53 views

Before insert is not taking effect

I'm trying to update an Email field on an sObject, we have lots of relationships, so using workflow rule is out of the question. Basically I need to send and email alert to the account owner of a ...
0
votes
0answers
17 views

Populate fields in service console for new record

I have a custom object called Refund under the Case object and there are fields called company name, address, Refund amount Address under the REFUND Object. My service cloud users want the Fields ...
0
votes
0answers
332 views

“INVALID_TYPE_ON_FIELD_IN_RECORD” while updating date/dateTime field using SOAP client

I have a SOAP client which connects with Salesforce and do CRUD operations. Earlier I used to use Axis to generate stub and in that case it works perfectly but then I replaced axis with force-wsc due ...
1
vote
2answers
47 views

How to update past values in to newly created field

I have created new field and updating the field with another field value using Workflow rule, When I create new record the field value is getting updated in the new field. Now the question is how do I ...
1
vote
2answers
53 views

How to pull an email address from one field into another

I'm wanting to insert the Account 'Email' value in to another field in a Workflow action but am having some trouble getting the formula right. This is what I Have so far.. Workflow rule = `Account: ...
3
votes
3answers
651 views

How to read lightning:recordEditForm Object instead of using API

I got 3 lightning:recordEditForm components on a wizard (3 pages handled by slds-hide/show) to capture details. At the last wizard page it must save first object, and 2nd object must get first object'...
1
vote
2answers
185 views

Send email or report only when a field value is updated

I have a rich text field on contact object. I want to send an email whenever the content in the rich text field changes. I have enabled field history tracking. If reporting is a right way to ...
0
votes
2answers
62 views

Workflow Field Update giving an exception Error

I am using the Field Update Workflow with the below scenario- If Length of name(Field)is Blank - Error Message: Name length is invalid If Length of name exceeds 35 - Error Message: Name length is ...
0
votes
2answers
207 views

How to update parent field with child field value FOR EXISTING records

There are two Objects with master-detail relationship (Contact and Certification__c) I need to copy a textfield(Name) value from the child object(Certification__c) and paste it on it's Parent's(...
0
votes
1answer
213 views

Can a process builder trigger a workflow field update?

I have an object (let's call it Object2), which has a lookup to account. Object2 has a field called combined, which concatenates the value of account.Customer type and a few other fields (including ...
0
votes
1answer
153 views

Field update workflow not updating field value

There is an object called CustomerOfTheWeek. It has a lookup field called Account. There is another field called Account Type, which is a field update (+ workflow rule) which for the purpose of ...
0
votes
1answer
33 views

field update in report not getting updated [closed]

I have an object, let's call it Object2. Object2 has a field called Account which is a lookup. Account has a field called customer type. Object2 has a formula field which gets populated by Account....
0
votes
2answers
104 views

Update existing records with before trigger [closed]

I need to update the fields of a few records (around 20) that were existing before I made a trigger. I know that before triggers cannot update existing records (or can they ?) but I think that using ...
0
votes
2answers
55 views

Field of new records not updated by trigger

I'm new to apex and trigger and have an issue. I need to update a field on a record when 2 other fields are updated. This field is supposed to calculate the time between 2 dates based on the business ...
0
votes
1answer
121 views

parent to child record changes using trigger [duplicate]

I have trigger on parent object which is used to update field Status of child object, I want to update child object's status field to Tested only if previous values is "ready for testing". And once ...
0
votes
1answer
74 views

Need help on trigger which is used to update parent record when child record value changes

Hi i have written trigger in which SC_Problem_Management__c is parent object and SC_Problem_Case_Link__c is child object having master detail relationship. I want to update status field of parent ...
0
votes
0answers
1k views

DUPLICATE_VALUE: Maximum number of duplicate updates in one batch (12 allowed)

I am getting this error when Leads are updated in bulk. Actually, it happens when the Lead Object Process criteria try to update a checkbox field on an Account. So when more than 12 child lead ...
1
vote
1answer
121 views

How to handle MOD returning a negative number?

I discovered today that Salesforce's MOD function (in formulae and workflows) will return a negative value if given a negative input. MOD(-5, 12) = -5 This goes against the mathematical definition ...
0
votes
1answer
36 views

How can I lookup an account ID for a Case using a field I am importing that is not the account name?

I have to import a history of cases in Service Cloud and, sadly, the account names I already have in Sales Cloud and the ones in the import don't match. I have a Client ID though in the Account object ...
0
votes
1answer
486 views

Records are not getting locked with “Approval.LockResult” class

On Using "Approval.LockResult" class, In debug logs i can see the records are successfully locked but in reality the records are not saved and i cannot even see the lock/unlock button on record detail ...
0
votes
0answers
100 views

Populate date fields on multiple records using a formula?

So we have a custom object called 'Sessions' (child). Sessions are automatically created via a trigger for a 'Course' (parent). Now depending on the value of the 'Level' field (on the Course) object, ...
0
votes
0answers
29 views

Update Account level fields through journey builder based on the response received from email sent to Lead?

We're using marketing cloud, integrated with sales cloud, to send emailers. There are two objects, "Lead" & "Account". Both object have a field named "email_status". Whenever a new Lead is ...
0
votes
2answers
333 views

PrePopulate Task with related data even before creating a Task

I am trying to populate the Task with related data even before creating a task. For example in this Task creation, I have RelatedTo(Loan) autofilled, similarly I want LoanNumber and ClientName to be ...
0
votes
1answer
77 views

Cloud page form update data

I have a CloudPage form. Is it possible to update a record already exist in the target DE? Let's give you an example: The target DE has a Primary Key email. Every other field is nullable. Person A ...

1
2 3 4 5
8