App Package Event

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

App Package Event

Post by husky » 21 May 2017 13:30

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
"Basic research is what I'm doing when I don't know what I'm doing"

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: App Package Event

Post by Martin » 21 May 2017 14:33

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

User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

Re: App Package Event

Post by husky » 21 May 2017 16:51

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
"Basic research is what I'm doing when I don't know what I'm doing"

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: App Package Event

Post by Martin » 21 May 2017 20:13

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

User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

Re: App Package Event

Post by husky » 22 May 2017 03:47

Martin,

Cool !!!!


Best Regards

Husky
"Basic research is what I'm doing when I don't know what I'm doing"

Post Reply