Hi Projjwal Lahiri Can you explain more about discount approval object. I think, discount approval object is a custom object. If you can give a clear picture of your object, may be I can help you.
Hi NABEEL KT,
Discount Approval is not a custom object. See, I have created an opportunity and there I added a product. So, I can also add the discount on that particular product. Now I can generate the quote. So, here I want when I am creating a quote, if the discount is greater than suppose 20% then it will automatically go to the submit for approval, after approved the quote will be generated and if the discount is not greater than 20% then it will not go to the submit for approval, the quote will be generated automatically. So, for this I want the trigger code to do it automatically.
Warm Regards,
Projjwal Lahiri
Can you explain more about discount approval object. I think, discount approval object is a custom object. If you can give a clear picture of your object, may be I can help you.
Thank you
If this is the scenario you can go with process builder instead of trigger. Have you tried with process builder?
have you tried to write trigger? if yes, can you send me the code? I didn't understand your full scenario.
Thank you.