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
NarcissuNarcissu 

How to write a code saying "If delete..." ?

Hi,

 

I am thinking about this language "If delete A, the value of A will become null."

 

Does anyone have any ideas?

 

Thanks in advance.

Best Answer chosen by Admin (Salesforce Developers) 
Abhay AroraAbhay Arora

Hi,

 

If you delete the task nothing will be left for that task it will be moved to recycle bin with all its data 

 

Please mark this as solved if above is what you need

All Answers

Abhay AroraAbhay Arora

for example let say you have a flag saying ifDelete

 

if(ifDelete==true){

delete = null;

}

 

please mark as closed if above is what you need

NarcissuNarcissu

I mean, for example, if there is a task that contain several fields, if I delete the task, all the value of the fields will become null?

Abhay AroraAbhay Arora

Hi,

 

If you delete the task nothing will be left for that task it will be moved to recycle bin with all its data 

 

Please mark this as solved if above is what you need

This was selected as the best answer