Skip to main content
Hi Team,

I have requirement like before click on submit for approval button validate attachemnt is present or not for custom object.

If attachment is not there then show the error message otheriwse submit for the approval.

how to achive this using custom lightning component button withour using trigger.

Regards,

Raj
1 个回答
  1. 2021年4月25日 17:50
    Hi Raju,

    Kindly query on Attachment with parent id being your record id. If the query returns 0 rows, display the validation. Else submit for approval on click of button.

     

    Please mark as Best Answer so that it can help others in the future.

    Regards,

    Priya Ranjan

     
0/9000