The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
36 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
57 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 ...
0
votes
1answer
19 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
45 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
1answer
30 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 ...
1
vote
1answer
42 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
35 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
22 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
77 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
40 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
51 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 ...
2
votes
1answer
74 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
249 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
62 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
143 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
311 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
217 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
116 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
138 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
0answers
108 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
258 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 ...
6
votes
3answers
413 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
80 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
1k 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
311 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
391 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
48 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
226 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
901 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
989 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
292 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
502 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
186 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
209 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
846 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 ...
2
votes
1answer
191 views

Added Auto-Number field in Managed Package - How to generate values for existing records in upgraded orgs?

I have a managed app installed in multiple orgs. This app contains CustomObject__c. All org where my app is installed have many records of that type. Now I push upgraded this app and added a new ...
0
votes
2answers
124 views

Update field with unique value via workflow

I have a Number field which I want to update using workflow. But since this field has unique option checked so how can I generate unique value in workflow? any thoughts?
1
vote
0answers
366 views

Default a Date field to FISCAL YEAR start/end when a record is created without using Apex triggers

I need to set a Date field on an object to the organization's Fiscal Year's Start Date. This could be a formula field, but ideally it would be just a Date field so that the value could be modified if ...
2
votes
1answer
200 views

Revert RecordType back to Master (default)

I have a "single" RecordType on Opportunity called "Opportunity Locked", this RecordType is set automatically when an Opportunity is ClosedWon using a workflow rule. My profiles do not have access to ...
4
votes
2answers
318 views

Update on any record update

I would like to know is it possible to send out a notification whenever a record is edited. I want the trigger to fire on any field change - I have about 10-15 field so I prefer not to create ...
3
votes
5answers
390 views

Best practice for removing former admin user from all records, triggers and workflows?

I'm thinking of using demandtools to find all objects that their account is tied to. Then I was going to test removal and replacement with current admin user in a sandbox environment. Just wondering ...
3
votes
2answers
217 views

Campaign to contact record record field update

Is there a way to trigger a field update such that when the information about a campaign member is modified in the campaign object, it updates a field of the same member's contact record?