Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Hide info message while invoking sales quotation confirmation through code

$
0
0

Hi All,

In sales quotation when we confirm sales quotation from sales quotation-> confirm button , at end it gives infolog - " %1 quotaion are updated to status %1"

now i want to invoke confirmation process from Sales order. when i will select Quotation id on SOH or SOL that time it should auto confirm the quotation. Problem is when i am invoking this code everything is fine only at end it is showing me this infolog. I don't wan't this infolog to be come when I do confirmation from x++ custom code so I can't comment the info message directly.

I tried to get the callers information.Based on this caller's info I will be setting one Boolean variable's value.

If this is set then I will be using these globally declared variable in my extended class's run method for not executing the info message.

Issues I am facing are:-

1. I tried to use global variable in Main method but it is not possible. I am using Main method to set global variable because in main method only I can get Arg value, fro which I can get callers info.

2. I tried to pass Arg value to other function but it is also not possible.

Can anyone pls help me to solve this??

Thanks in advance.

 


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>