Skip to content

Commit 4cfab2e

Browse files
committed
CRMR-10 Add-columns-for-NCE-Migrations-report
Merge in MSFT/microsoft-reports from ~ROMANH/microsoft-reports:Add-columns-for-NCE-Migrations-report to master Squashed commit of the following: commit e8336c68b8b19b263cd99d88533415d94157d9ee Author: Roman Hudz <Roman.Hudz@ingrammicro.com> Date: Wed Aug 24 13:56:38 2022 +0200 added new columns for the report
1 parent a7cb790 commit 4cfab2e

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

reports/nce_migrations/entrypoint.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
'Number of Licenses',
1818
'Subscription ID',
1919
'Provider Name',
20+
'Connect Subscription ID',
21+
'Connect Subscription Status',
22+
'Marketplace ID',
23+
'Transaction Type'
2024
]
2125

2226
# This report is only valid for the NCE Commercial product in development and production environments.
@@ -96,6 +100,10 @@ def _process_line(request):
96100
num_licenses = item['quantity']
97101
subscription_id = parameter_value('subscription_id', params)
98102
provider_name = get_value(request, ['asset', 'connection', 'provider', 'name'])
103+
asset_id = get_value(request, ['asset', 'id'])
104+
asset_status = get_value(request, ['asset', 'status'])
105+
marketplace_id = get_value(request, ['marketplace', 'id'])
106+
transaction_type = get_value(request, ['asset', 'connection', 'type'])
99107

100108
row = (
101109
migration_date,
@@ -108,5 +116,9 @@ def _process_line(request):
108116
num_licenses,
109117
subscription_id,
110118
provider_name,
119+
asset_id,
120+
asset_status,
121+
marketplace_id,
122+
transaction_type
111123
)
112124
return row
-68 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)