[CoE Starter Kit - BUG] App Last Launched Date Is Inaccurate
RickKush opened this issue · comments
Does this bug already exist in our backlog?
- I have checked and confirm this is a new bug.
Describe the issue
The App Last Launched Date in the CoE Is Inaccurate
Expected Behavior
The App Last Launched Date in the CoE should match with the Power Platform Admin Analitics
What solution are you experiencing the issue with?
Core
What solution version are you using?
4.37
What app or flow are you having the issue with?
apps
What method are you using to get inventory and telemetry?
Cloud flows
Steps To Reproduce
Compare the CoE Last Launched with the Admin Analytics export
Anything else?
Do you have this flow turned on? Admin | Sync Template v3 (Call Updates)
oh sorry I pasted the wrong flow. This is the one I meant: Admin | Audit Logs | Update Data (V2)
Are the missing launches in the Audit Log table in Core?
OK that is the audit log table then. So can you please double check? It does show the app id per your first screenshot
My guess is that you had the Admin | Audit Logs | Update Data (V2) flow off for some period of time and in that time you missed the launches getting updated. You can probably look at the cases you are finding and see if that pattern matches.
If so we do have this write up for how to go repair that:
Audit Logs MISSED last launch in Power Apps table:
Hello.
We moved the updating of the Power Apps table to its own flow for performance reasons and it looks like you may not have turned it on. Please validate that both these turned on:
That will fix the issue going forward, but I have also created a one-off flow to run which will go back and fix up app information for the ones you missed while the flow was off.
Import and Turn On the flow into CoE Environment
Go to https://make.powerautomate.com/ > select your CoE Environment > My flows > Import > Import Package (Legacy)
Upload the following flow:
Fixupmissedauditlogentries_20240514131140.zip
Create the connection and Import
When done click Open Flow to view and then back to see details and turn on.
Yes please run the steps instructed above, repasted for your ease:
Audit Logs MISSED last launch in Power Apps table:
Hello.
We moved the updating of the Power Apps table to its own flow for performance reasons and it looks like you may not have turned it on. Please validate that both these turned on:
That will fix the issue going forward, but I have also created a one-off flow to run which will go back and fix up app information for the ones you missed while the flow was off.
Import and Turn On the flow into CoE Environment
Go to https://make.powerautomate.com/ > select your CoE Environment > My flows > Import > Import Package (Legacy)
Upload the following flow:
Fixupmissedauditlogentries_20240514131140.zip
Create the connection and Import
When done click Open Flow to view and then back to see details and turn on.
yes please turn on and run it
Sorry are you saying a bunch of data is missing from the Audit Logs table?
If so, likely when one flow was turned off so was the other.
You may be able to go backfill it depending on how long your logs are stored for your organization.
https://learn.microsoft.com/power-platform/guidance/coe/setup-auditlog-http#how-to-get-older-data
Not to my knowledge no. Depending on your tenants sway you may be able to create a ticket and get data from product support but from our pov the data is not available once its gone form Purvue.
If the data is still in pervue then you can download it and get it into the audit logs table.
Here is a write up to assist
https://learn.microsoft.com/power-platform/guidance/coe/setup-auditlog-http#how-to-get-older-data
sorry what makes you think that?
I got an error message saying that my file wasn't good JSON
When I switched to JSON, I got much further in my testing.
I just tested out the steps and they still work. Perhaps the file you made just isnt the correct format. The steps rely on the file being downloaded from pervue.
I did try obfuscate a sample of what the download file looks like from pervue which is this:
895e0c5e-0a47-4a8d-b232-a86b33bbd7b7.csv
It does work
My file is a csv. And these steps convert csv to array.
Sorry this isnt working for you. These instructions were written for people with access explicitly to the pervue and the flow is written assuming that file format.
You may need to just use it for inspiration to write your own flow if what you can develop is a json style file from your data source.
Wonderful, way to persevere.
Here you go
895e0c5e-0a47-4a8d-b232-a86b33bbd7b7.csv
RecordId,CreationDate,RecordType,Operation,UserId,AuditData,AssociatedAdminUnits,AssociatedAdminUnitsNames
fa45c2fa-1c1a-4267-b3e1-b6b017e91b75,"2024-09-30T22:11:19.0000000Z ",45,LaunchPowerApp,Grahamb@tenant.onmicrosoft.com,"{""CreationTime"":""2024-09-30T22:11:19"",""Id"":""aa45c2fa-1c1a-4267-b3e1-b6b017e91b75"",""Operation"":""LaunchPowerApp"",""OrganizationId"":""abcabcab-a1a1-a1a1-a1a1-a1a1a1a1a1a1"",""RecordType"":45,""ResultStatus"":""Success"",""UserKey"":""a1a1a1a1-a1a1-a1a1-a1a1-216616e47182"",""UserType"":0,""Version"":1,""Workload"":""PowerApps"",""ClientIP"":""2601:600:a480:64c6:58b7:900f:fd6:49b1"",""ObjectId"":""a1a1a1a1-a1a1-a1a1-a8eb-216616e47182"",""UserId"":""Grahamb@tenant.onmicrosoft.com"",""AdditionalInfo"":""{""environmentName"":""a1a1a1a1-a1a1-a1a1-a1a1-1dd2c93d081d"",""resourceDisplayName"":""ButtonClicker"",""environmentDisplayName"":""Graham Barnes's Environment""}"",""AppName"":""a1a1a1a1-a1a1-a1a1-9369-c2504dd9bca6""}",,
Thats just what the product outputs, a csv in that format. It does look like its JSON in there, but its not output that way, its output as a csv perhaps of json records.
Im afraid there isnt anything I can do here to help. This is just a helper flow we shipped.
Perhaps you can use the flow as inspiration to make it work for cases when you dont have access to pervue.