You need to sign in to do that
Don't have an account?
Raju Chi 5
Attachment check using lightning component
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
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
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