The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
3answers
137 views

How do I mass update my object?

I have created a new number field within my Opportunities object which is set to required and has a default value (0), however this is causing issues with closed Opportunities that did not have the ...
1
vote
1answer
28 views

Validation rule confusion adding OR

I have trouble writing validation rules in Salesforce. So I have a checkbox field BypassWF__c which when checked bypasses workflow. I have three fields AssignedToUser__c, SupportUser1__c and ...
2
votes
1answer
22 views

Complete Regex Reference For Salesforce Formulas?

Is there a complete Regex Reference somewhere for using REGEX() in formulas? I have searched and found nothing useful. The problem I am having is below. I want to know if any of the characters ...
1
vote
1answer
30 views

Get one value from a list as an integer

I am having trouble updating a variable because of various errors. I cannot get the value from my list to work with the value of my other list. trigger StudentNoUpdate on Class_Size__c (before ...
0
votes
1answer
41 views

What do I put in front of my query to update a field

Opportunity is the master and CustomObject is detail with multiple CustomObjects linked to one Opportunity. I want to update OpportunityField to equal CustomObjectField from the most recent ...
1
vote
2answers
76 views

How to track the creation and last edited date of a custom field - best practice

Here i have issue regarding workflow or trigger.On Account level i have 2 fields.. 1) Account note - text field 2) Account note modified date - date field I want the Account Note Modified Date ...
1
vote
1answer
49 views

Unable to use priorvalue() field update with a user field

I've got a field update that saves prior value from a lookup to user object. The updated field is then used in email notification. It used to something like PRIORVALUE(ME1__c), but that would just ...
2
votes
1answer
29 views

Use Workflow to update checkbox between objects

I need to update a checkbox field on the Lead object called Grant Access by replicating the same type field Grant Access on the Campaign Object. I cannot use a Formula field due to limitations ...
2
votes
1answer
60 views

Update fields in Custom Object (Sales Order) when related Custom Object (Sales Invoice) is created

This is only the 2nd trigger I've attempted to write, and it's making me nuts. I have two custom objects: Sales Order Lines (child of Sales Order) and Sales Invoice Lines (child of Sales Invoice). ...
0
votes
1answer
39 views

Fatal Error - Developer Console Event Object

I'm trying to run some tests using the developer console on the Event object. `List<Event> even = new List<Event>([SELECT Id, Status_Event__c, Activity_Cost__c ...
3
votes
2answers
118 views

Field Update Trigger - Why is the field not updating?

I'm trying to create a trigger that updates a field on a contact whenever the contact changes ownership. The trigger saves without error, and my test class for the trigger gives a 100% code coverage ...
1
vote
1answer
159 views

Update LastModifiedDate field of custom object

I'm uploading attachments to a custom object using the following JS. I want to update the LastModifiedDate field of the custom object each time I do this. Would anyone have any suggestions as to how I ...
0
votes
1answer
58 views

Updating a record without DML

I am writing an after update trigger on OpportunityLineItem that will update an opportunity based on values retrieved from it's respective line items. By sheer accident, I forgot to include the ...
1
vote
2answers
138 views

What is wrong with this apex trigger to cascade address updates?

I've only just started using apex so I'm having trouble pinpointing what is wrong with this code. It is a trigger on accounts which is intended to cycle through all contacts belonging to an account ...
4
votes
2answers
149 views

Trigger to update Account field when update is made to Custom object

Hi i could use a little help and i'm totally stuck. I'm trying to write a trigger to update a custom field on my Account object when a update is made on a field in my custom object. The object is ...
1
vote
1answer
56 views

Touching Contact Record in Person Account scenario

We use Person Accounts. I'm very familiar with how they work (after 3.5 years of dealing with them). We are constantly at the brink of no custom field space left on our Account object. I decided to ...
0
votes
1answer
201 views

Email-To-Case, Set Field Values When Email Arrives

Cannot find any example of guide to this either here on in SF's "help"... When using Email-To-Case, is it possible to add (workflow I would assume) a value to other field(s) on the Case when it's or ...
0
votes
2answers
51 views

How to work with field update in workflow?

I have two fields, A and B i am using workflow on both field for field update... criteria is like, If A = 1 then b should be 1.. both are picklist fields..Like A contains HI,none b contains HI,none ...
2
votes
1answer
79 views

Prevent User from changing related list lookup

I have a related list object through lookup relationship. When i click on new button on child object in related list, the lookup is prepopulating with the parent Name. how can i prevent the users ...
2
votes
1answer
48 views

Changing a Case Insensitive field in Managed Package

I have a "Dupe Detector" field in a couple of objects that is Unique (Case Insensitive). It is a Text(255) whose value is updated by a Workflow Field Update. We have recently had the problem that ...
1
vote
1answer
35 views

how to enable a profile to mass update records?

How do I enable a profile to be able to mass update records of a specific object in Salesforce?
0
votes
2answers
187 views

dupecatcher - Duplicate error from salesforce when updating Account which has same name

I am trying to update on Account Object's one custom field by using trigger. But always hitting the below error if Similar Account Name are existed in DB. It is so confusing and shouldn't check for ...
1
vote
1answer
74 views

How to write a status update trigger for object having Look up filter?

I have 3 custom object "Project"(Parent), "Block"(Child), "Flat"(child of block). In Flat object i have a field called "Status" which is picklist values('Available', 'Block', 'Sold'). I have one more ...
5
votes
1answer
68 views

Looking for declarative approach to updating a field on a child record basd on a value from the parent record

I am racking my brain on the best way to solve for this seemingly easy issue. First let me set the stage a bit: I have custom objects called 'Demand' and 'Release'. Each demand is associated to a ...
3
votes
1answer
164 views

Field Updates in Workflows

I have a workflow that has three field updates. I would like to know if these occur in sequential order. If I can guarantee they do occur in the order I have set out I can accomplish my use case ...
0
votes
1answer
551 views

Follow up on apex trigger with cross objects

This is a follow up on this morning thread. And thanks to both person who have helped me this morning. Now, I'm trying to get a bit more fency (well the business logic wasn't well developed at the ...
1
vote
0answers
101 views

Can an Opportunity be Changes with Stage as 'Dropped' or 'Lost' once it is 'Won'

I am getting a problem according to which I have two picklist fields in Opportunity: 1. Stage , 2. Category (Dependent on 'Stage') & 3. Status (text field). Now I have some workflow's which ...
2
votes
1answer
271 views

Approval process step field update doesn't appear in same step's Visualforce email template?

Two step approval process on custom object Foo__c initial value of Foo__c.Status__c is 'Submitted' Approval Step 1 actions are threefold: Field update on Foo__c.status__c = 'Step 1 approved' Text ...
4
votes
1answer
456 views

after update trigger creates duplicate value to related list if related list is empty

I am trying to create a trigger that would add a new value to a related list if a value is adeded to a field. The field is called Reason of Contact (ROC) and when ever a new reason of contact is ...
1
vote
1answer
387 views

How to Update a datetime field with current date time in VF page?

I need to update a datetime field with current date time in VF page using JavaScript.Currently my code is like this : var newRecords = []; var a = new sforce.SObject("myObj__c"); ...
5
votes
1answer
169 views

Why does this formula not evaluate to true?

I have a time based workflow but the criteria I have set up is not being evaluated to true even though the results are the value that I believe them to be. Here is the debug log showing the workflow ...
3
votes
2answers
190 views

Update a Parent object with field values from the Grandparent

I am attempting to update the parent of a newly created object with fields from grandparent of the object. Does anybody have an answr to this ? I'm currently trying to convert this code into this. As ...
4
votes
1answer
127 views

I would like to auto update a field using parsed data from another?

I am trying to either set up a field that will auto populate with parsed data from another or a workflow to accomplish the same. I have text field of Field1_C with data 12345D. I would like to pull ...
2
votes
2answers
274 views

Trigger to update Account from multiple child custom objects

Can somebody please guide me through creation of a trigger that would update a text field on account from picklist on a child custom object or objects? The issue is that there can be two or even more ...
7
votes
3answers
638 views

Avoiding use of future calls in triggers?

I have some code I'd like to change in a trigger. The issue is that there is a field that is being updated with a prefix plus the value of a field in the object that is an automatic number. The ...
5
votes
1answer
94 views

Is the order of update calls within one batch guaranteed?

We have an external application integrated with Salesforce that sends account information to Salesforce using the Soap API call upsert(), including status information. We have the problem that changes ...
3
votes
3answers
2k views

Trigger to update field in another object

Here's the trigger I created to update a list of service orders related to a Case when a field is changed in that particular Case. System.debug shows the Order Status value set to 'Closed' but it is ...
3
votes
2answers
352 views

Validation rule to pass a Value to a text field by validating another text field

I am having two textfields consider A and B. When i enter a value for B, the corresponding value should be passed in Field A. FOR EXAMPLE : Field A is Dependant on Field B Values IF Field A IS ...
0
votes
2answers
399 views

Trouble with Trigger: wan to update child object field (which update via formula from other object)

I'm new with triggers and am having trouble with making one work. I have a child custom object called "Actividad" which has a formula field "Actor Principal Indicador" that gets updated from its' ...
1
vote
1answer
57 views

Rolling back custom field change

Is there a way to get the prior values of a custom field for which history tracking was not setup for and neither was a PRIORVALUE field update field created for it. Thanks.
3
votes
1answer
372 views

Mass update Knowledge Articles with Data Categories

Is there any possible way to update an existing set of knowledge articles to include specific data categories without manually going into each one? Can this be achieved with data Loader?
2
votes
1answer
1k views

Trigger to update field on existing records with same owner of insert

New to writing triggers, I'm trying to set one up that adjusts a field on existing records with the same Owner as the one(s) being inserted. I have an End Date field that I want populated when a new ...
4
votes
2answers
2k views

How do I mass update existing records after adding a new custom field?

I added a new custom field to an object with many existing records. It was a checkbox field and during creation I specified the default value to be "true". However, it looks like all the records have ...
2
votes
2answers
333 views

Update date field with null value using JS remoting?

With the Rest Toolkit, creating or updating an optional date field with an empty string results in an Invalid date error. Using null instead results in another error: Argument 1 cannot be null. How ...
3
votes
2answers
583 views

Dynamically get result of a VF field's formula, using Apex

How can I get the result of a formula ("field update"/"workflow rule"), in Apex, without hard-coding it? There is a field whose value (calculated on upsert) is the formula result. I have dismissed ...
0
votes
1answer
220 views

Automatically update a field based off of data from another field

Here's the scenario, we sell a Lite and Pro version of our product and a customer already has the Lite version and the fields on their account are filled out as shown below. Product: Lite Go Live ...
0
votes
1answer
254 views

Inserting data to audit field like created date for test class [duplicate]

I am creating a test class and the scenario I am testing requires an older date for the created date. I know CreatedDate is an audit field and I can't write to it. Is there a workaround I could use ...
3
votes
3answers
983 views

Is Batch APEX the only way to execute an Apex class

I need to loop over a bunch of records from a custom object and set a value on a new field. I expect the total number of records at about 1000-1200 only. Is batch apex the only way to do this? I ...
0
votes
0answers
19 views

How unlock record after Workflow approvall process? [duplicate]

Possible Duplicate: Are triggers able to modify records locked by an approval process? Good morning everyone, Would like to know how can I update a field in a record that was locked after ...
5
votes
1answer
1k views

Trigger behavior with Field Update

Well today while working with triggers I observed a weird issue. In my org I have a object called Demo__c and which has a standard "Name" field and another field called "TimeStamp__c". I have a ...