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
SirishaMSirishaM 

when is the record inserted into table ?

Hi,

I have a button which creates  a record . I also want to delete the created record by testing some condition before refreshing page.
But when I click the button, it checks the condition and deletes the previous records accordingly but not the latest record .

The record shows the creation time properly but I dont know why it does not remove the record. Is it because my function executes on  oncomplete  event ?

Any ideas ?

Sirisha

IspitaIspita

Are you using apex for this??
  It would be helpful if you can post the code snippet u r using for clarity of understanding what is happening at the backend.