function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Trif Cristian 7Trif Cristian 7 

why i can't access my field?

i want to set my field isActive to true:

User-added image
but if i try to debug this, i get two records:

 

User-added image

 

Best Answer chosen by Trif Cristian 7
SuredreamSuredream
You need to make dml operation. use a statement like below:
update activeRecords;

Please mark this as the best answer, if it solves your issue.

Thanks,
 

All Answers

SuredreamSuredream
Hi,

Can you update your SOQL filter as below and try:
ObjA__c IN : objectAIDS

Mark this as best answer, if it solves your problem.

Thanks,
 
Trif Cristian 7Trif Cristian 7
now it works but my field isActive is not setting up to false for my record from query.... do you know why?
User-added image

User-added image
User-added image
SuredreamSuredream
You need to make dml operation. use a statement like below:
update activeRecords;

Please mark this as the best answer, if it solves your issue.

Thanks,
 
This was selected as the best answer