Page 1 of 1

App Package Event

Posted: 21 May 2017 13:30
by husky
Hello,

I want to keep track of apps that are added/updated/changed etc with App Package Event.
For starters I tried to code a flow for ADDED Event.

Event= Added

Package Name= blank (as I do not expect a particular app already been installed).

Probably my reading of App Package Event is, as always, wrong.

I'd expect that when adding(installing) a new app the trigger fire and give me information I need to write to a file.

I'd expect to have at least the app_name.

What I Observed:

1. the trigger never goes off.
2. if I force execution manually after having installed the app, {app_name} returns null.

QUESTION:

Where am I going off the tracks and smashing my nose into the wall?

Any help is welcome.


Thank You

Husky

Re: App Package Event

Posted: 21 May 2017 14:33
by Martin
Hi Husky

You have to set field Package Name to * to achieve that the trigger is executed for all packages.

The variables usually provided by the trigger are not available when a flow is executed manually since it completely bypasses the trigger.

Regards,
Martin

Re: App Package Event

Posted: 21 May 2017 16:51
by husky
Hey Martin,

It works.

Sorry for the late reply. I was doing some tests before asking further questions.

One issue I have now is with Remove and Uninstall. The app_name is always null although the Global_Package_name is not.

Is this engineered this way or there is a way to list the app_name?

Now, placing the * is for all options of App Package Event? (Adding/Uninstalling...and so on)


Thank You

Husky

Re: App Package Event

Posted: 21 May 2017 20:13
by Martin
Hi,

* means to execute the trigger for all packages but only for the event that is selected in the Event field, not all events.
The variable app_name is likely not available anymore since the system removed the app so the system can not determine the name anymore (the name is stored within the apps resources that have been removed). I'll add a note to the help page about the missing app_name on remove.

Regards,
Martin

Re: App Package Event

Posted: 22 May 2017 03:47
by husky
Martin,

Cool !!!!


Best Regards

Husky