Reply
Contributor
AkashDiwan
Posts: 8
0

Re: Problem Updating Record

Y i did check that there are no errors thrown.
Moderator
bob_buzzard
Posts: 6,414
0

Re: Problem Updating Record

And are you sure that you are checking the correct record in the database?

--
Certified Salesforce Technical Architect, Developer, Advanced Developer, Administrator, Advanced Administrator, Consultant, Sales Cloud Consultant,Service Cloud Consultant
Force.com MVP | The Bob Buzzard Blog | Linked In | Twitter

I don't respond to private messages/emails asking for help.


Take the Bob Buzzard Sobject Fields quiz.

Contributor
AkashDiwan
Posts: 8
0

Re: Problem Updating Record

yes
Moderator
bob_buzzard
Posts: 6,414
0

Re: Problem Updating Record

If your save method is being called, there are no errors with the update and the record doesn't change, that implies one of two things:

(1) There's a Salesforce bug that stops updates succeeding. This is simply not possible, as it would affect everyone.

(2) You aren't really updating the record - i.e. you aren't changing any of the values, the old field value is the same as the new one.

Given that your code simply grabs the first record out of the database and updates it, I'm still not convinced that you are confirming the update correctly.
--
Certified Salesforce Technical Architect, Developer, Advanced Developer, Administrator, Advanced Administrator, Consultant, Sales Cloud Consultant,Service Cloud Consultant
Force.com MVP | The Bob Buzzard Blog | Linked In | Twitter

I don't respond to private messages/emails asking for help.


Take the Bob Buzzard Sobject Fields quiz.