-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnInstallAppPerCompany #1881
Comments
I tested this. I have the opposite behavior :-/. It is always going to run that trigger, no matter what the schemaUpdateMode setting is. #puzzled Do notice that debugging does not seem to be an option.. . don't know if that is what you are trying to do... |
HI Waldo, As you suggested i have put recreate in launch.Json but it does not seems to work in that way also the trigger OnInstallAppPerComany is not triggering. Also is debug not possible for this trigger. Please suggest? |
In order to debug, you need code from the web client that triggers it for the moment. We have a backlog item to add more to how debugging works. |
It does trigger on my end though... |
@kalberes i tried to do both ways(debugging and not debugging) but it is not triggering. Can you please suggest? |
Hi, |
@kalberes i am using March preview update which is 0.15.18771 |
I have submitted a request for the owning team. As soon as there is a response it will be logged here. |
@bachii1010 I'm afraid I have not been able to reproduce this yet on the March preview you mentioned. Can you provide some sample version of the code you are using in the trigger? Or in the codeunit? |
@HunterFeltman-MSFT i am using the same code as in this document in the below link i additionally kept a message to check if the trigger is running or not. https://docs.microsoft.com/en-us/dynamics-nav/developer/devenv-extending-application-areas Please suggest |
I'm not familiar with this particular example code, however, I can tell you that the OnInstallAppPerCompany trigger is going to be run in a UI-less 'background' session and as such will never display messages to users, so unfortunately you would never see things in the client. If you are sure that the 'IsExampleApplicaitonAreaEnabled' function should be responding back with 'false' then you could check the DB to see if 'EnabledExampleExtension' code has actually executed (though it also seems that there are more 'quit early' checks inside that) If you want to be really sure, I suggest creating a simple dummy table & page and then populate said table in this code. for example:
Note: Use the 'recreate' schemaUpdateMode to assert that data is cleared from this table before you F5 multiple times with this code. You might have to adjust object ids, but with this you could then navigate directly to your page and see if data was inserted into the table (indicating that the trigger did, in fact, run) |
@HunterFeltman-MSFT thanks for the update yes i tried with your example it is executing i will go into further details what is going wrong with ours. Thanks once agian!!!!! |
No problem, thanks for letting us know about the potential issue. Hope you figure out the problem in the ApplicationArea example. |
Hi
As in the below code when we run the app using F5 or Ctrl + F5 the trigger OnInstallAppPerCompany is not triggering.
Please Suggest
Thanks & Regards
Varun Reddy
The text was updated successfully, but these errors were encountered: