You need to sign in to do that
Don't have an account?
Rohith Kumar 98
How to assign records to queue in Apex?
There is a requirement like
If the payment amount >2000 USD, save the records with “Pending Approval” status and assign this to a queue “Payment Order Pending Approval”
How to do that in Apex?
If the payment amount >2000 USD, save the records with “Pending Approval” status and assign this to a queue “Payment Order Pending Approval”
How to do that in Apex?
if(paymentAmount > 2000 && status == 'Pending Approval'){ //What to do? }
All Answers
Here i am assuming that PaymentOrder__c is a custome object which has fields paymentAmount,status.
-> Create a List which contains only pending payment object which has paymentAmount >2000 and status == 'Pending Approval'.
If you find this helpful please mark it as a best answer.
Thanks And Regards,
Suraj Tripathi.