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
vote
1answer
78 views

How to get newly added events information

I am using rest api's to get salesforce data in my ios application. I am getting events details once, after that how can I get the events details which are newly added to system or modified. Basically ...
0
votes
1answer
3k views

Trigger old and new for update operation

I have pretty complicated situation here! I have a field on User named Credit__c and another field on Time_Off__c named Days__c. When I add a Time_Off__c with a number of days => Credit__c -= ...
1
vote
2answers
138 views

Why doesn't the SOAP update call return more than one validation error?

I am sending an update request (SOAP) using the Partner API. The update request is setting two fields to values that should trigger three different validation errors. When I set these values in the ...
0
votes
1answer
67 views

Updating field issue

This is my Code, It modifies the inner text, pulls the correct inner text but doesn not save. Am I missing something? String queryString = "SELECT Comments__c FROM ts2__Application__c WHERE ...
2
votes
2answers
9k views

Updating original object using trigger after update

I have the below code, which works, but I'm a little concerned that I'm calling a method in a loop, which performs a query. Basically, the trigger looks to see if the field Auto_Close_Reopen__c is set ...
0
votes
1answer
2k views

.net How to update value of a field

public void MssSetClientComments(RCSForce_SessionRecord ssSessionToken, string ssSearchesId, string ssComment, string ssContactId) { String queryString = "SELECT Comments__c FROM ...
1
vote
1answer
410 views

Update Lookup field to connect to child object

I have a lookup field to a child object on the Account object i want to update with a record Id for a child object. I want to compare the text value in either the Billing State/Province field (or if ...
1
vote
2answers
642 views

Getting last activity date on parent account to update child account

I'm trying to find a way to automate the updating of "Last activity date" for all accounts under a parent account when a parent account exists. Any suggestions would be much appreciated.
0
votes
2answers
1k 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 ...
8
votes
4answers
3k views

Workarounds for Sites page to update standard object?

I have a client who wants external users to submit data via a Sites VF page and update Opportunity records. Of course the Sites profile doesn't have permissions to update standard objects. Also, the ...
10
votes
1answer
4k views

How to upgrade developer org?

How do i upgrade my developer edition org to the latest Salesforce version? I have a developer org which is winter 14 and i would like to upgrade it to spring 14. Is there any option in ...
4
votes
2answers
4k views

Test class / code coverage for insert trigger on update

Still new to all this, thank you in advance for your responses! I have the following trigger which inserts a custom object record on Campaign Member update: trigger ...
4
votes
1answer
1k views

Help with basic insert trigger after Campaign Member Status update

This is my first attempt at an insert trigger :) Any help is greatly appreciated! Scenario: If campaign member status gets updated, insert a record on a custom object (Registration). Code: ...
4
votes
1answer
3k views

Trigger on Account that is pulling Account Team data

I am trying to update Accounts with Account Team information. I have created a custom field on the Account Object and want the Account to update after a team member has been added. I can get the ...
3
votes
1answer
2k views

How to build a map or list of related opportunities

I'm working on building a new trigger that for some reason has me a bit stumped on the best way to query some related data. I have an array of recently updated opportunities: public void ...
10
votes
6answers
53k views

Trigger to update parent object value with child value

In my company we are using Oppotunity standard object and we have created a custom Quote object. The opportunity object is the parent and Quote is the child. How has to be the trigger in order to ...
7
votes
1answer
472 views

Multiple triggers on same object needing to update a separate object

I have a managed package that has an AfterInsert trigger on Opportunity which updates contact records. I've been asked to write a separate AfterInsert trigger on Opportunity in order to update ...
9
votes
1answer
723 views

Is upsert properly ACID compliant?

Given an object Table_A with one unique field Unique and two rows: row Unique --- ------ 1 A 2 B And the following class: public class KeySwapDML { public void ...
2
votes
2answers
527 views

Trigger Is not working on opportunity while insert

I have a trigger in opportunity in trigger on update and insert. It was working until today but suddenly gotta stuck. It is working fine while update but while inserting it is giving error like ...
4
votes
2answers
284 views

Salesforce Timing/Cache issue ?? Update record before generating a VF PDF

I have a custom button which generates and sends an invoice pdf. Just before to generate the pdf, if the issue date of the invoice is null, I set the date to today, then I generate the PDF. The code ...

1 3 4 5 6 7