Hi Yousuf,
Check below SP Transaction Notification.
If @object_type='17' and @transaction_type IN ('A','U')
BEGIN
If Exists (Select T0.DocEntry from ORDR
Where T0.CardCode IN (SELECT CardCode FROM OCRD WHERE CardType = 'L')
And T0.DocEntry = @list_of_cols_val_tab_del)
Begin
Select @error = 17, @error_message = 'Lead is not allowed for Sales Order'
End
END
Hope this helps ![]()
Thanks'
--
--
Regards::::
Atul Chakraborty