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
Rabbani sayyed 8Rabbani sayyed 8 

@readonly can we perform dml actions? if no how to achieve this? can anyone suggest me on this ?

@readonly can we perform dml actions? if no how to achieve this? can anyone suggest me on this ?
sharathchandra thukkanisharathchandra thukkani
Methods which has @readonly dont allow DML operations. Instead you can use Force.com-JavaScript-REST-Toolkit to achieve this.
https://github.com/developerforce/Force.com-JavaScript-REST-Toolkit
Sforce.NinjaSforce.Ninja
If you want to perform DML action, why would you want to access those @readonly