Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
PlatformManager Data Upload-Customers
In this lab narrative, we will use the Data Upload option within the PlatformManager tool to load the Customer Master table. The use of PM Data Upload templates provides a quick and easy method for loading all types of master data including pricing tables, data sources, and extensions.
Prerequisites
In order to be able to complete this laboratory exercise, please complete the prerequisite lab(s) before proceeding.
PlatformManager Login/Setup
Extract of Customer master data in CSV format
Define Master Data Metadata
Prior to uploading an data using PlatformManager, we must create the metadata associated with the master data entity (Product, Customer, etc.). Once the metadata has been defined, then we will be able to reference the attributes for the data mapping phase of the data upload.
Download
...
External Customer data
Download and examine the Customer CSV data file
Which columns exist in the file?
What is the content of each column? Which data type does each column support (text, number, date)?
Configure the Customer Master Table
Our goal is to use PlatformManager to upload our CSV data into the Customer Master Table. First, you’ll need to configure the columns in the Master Table to match column in the Customer Master CSV file.
...
The Customer master table exists out of the box, but the column names are not matching the names in the CustomerMaster CSV file. When you hover over the column label, a tooltip will display the name of the column in the back-end database.
From this table layout we can see that we have a standard set of defined columns; isParent?, Customer ID, Customer Name, and Last Update These do not need to be renamed.
Additionally, we have some customizable columns that are labeled as Attribute1, Attribute2, etc. These are the user defined columns and we will rename them to match the incoming columns on our CSV file.
Rename the column Attribute1 to CustomerGroup
Right-click on the label for the Attribute1 column, from the list select Rename and Customize Columns option:
Rename it to “CustomerGroup”.
Set the label to “Customer Group”.
Set the type to “String”.
...
Click on Confirm Changes
Repeat the steps above for all the other columns in the CSV file using the following assignments:
Attribute 2 = Customer Type
Attribute 3 = Customer Class
Attribute 4 = Region
Attribute 5 = Country
At this point we will have exhausted all of the viewable custom columns in our table. In order to make more columns visible, click on the drop-down menu of any column and choose Select Fields to Display option.
From the following click on checkbox for Attributes #6 -12
Note: Aside from the prebuilt columns, there’s a maximum of 30 columns that can be added to the Customer master table (attribute1 to attribute30)
Now we can complete the definition of our remaining columns so the Customer master closely matches the columns in the CSV file. Thus, create the following attributes and associate them with our Attributes:
Attribute6 = Segmentation
Attribute7 = Service
Attribute8 = Customer Currency
Attribute9 = Industry
Attribute10 = Global Customer
Attribute11 = Location
Attribute12 = SubRegion
Now ,we will need to save the preference settings for our Customer Master table.
Click on Preferences Manager icon (bottom, right) to create a preference. This will save the layout changes you made to the Customer view (column position, etc.).
From the Preferences dialog box, click on the Save as New Preference option.
Type the Preference name of Customer_default and check option of Set as default preference for me
Click Apply button.
Upload Data
...
Using PlatformManager
Now that our Customer master table has been defined, we are ready to upload the data in our CSV file into our Customer master.
Login to PlatformManager
In browser, go to URL: https://platform.pricefx.com/
If you are a Pricefx employee, click on Login with O365.
Access Target Partition
Navigate to Partitions option
Then, input (or select) your target partition:
Click on Data Upload option. Then click on the Add button:
The Data Upload dialog will now begin:
First, we must provide a meaningful name for our Data Upload, enter “CustomerMasterLoad” as the name.
Next, we need to select the Pricefx entity that we will be loading, click inside the box and the list of possible entities will appear:
Select the Customer entity. Click Continue button.
Next, the Data Upload will need the CSV file that we will be uploading:
Drag and Drop our CustomerMaster.csv file onto the page.
PlatformManager will then parse the CSV file and using default parsing options it will show you a sample layout of the file:
NOTE: Verify that the layout shown here will map to the CSV file uploaded. This view within PlatformManager will be used to map these columns to our Customer master table.
Click Continue button.
Data Mapping
Our next phase is the mapping of the columns in the CSV file to the attributes defined in our Customer master table in our partition.
When performing the data mapping we should be aware that certain Customer master table columns are mandatory (in most cases this is just the primary key column). The mapping page should now appear:
The very first column in our mapping will be IsParent?, we don’t need this column to be mapped. So, click on the trashcan icon to delete
Now, we will begin the mapping process and our first mapping will be for Customer Id (in CSV) to primary key in Customer master (which is Customer Id column). Click in the Choose field drop down:
Scroll down in the list and locate the customerid column and select it.
Next, we will continue to map to the pre-built “out-of-the-box” columns in Customer Master. Map Customer Name to name in Customer Master:
We don’t need the mapping of the Last Update date for our purposes. So, we can delete this mapping using the trashcan icon:
Next, perform the following mapping assignments:
Customer Group to attribute1(“CustomerGroup”)
Customer Type to attribute2(“CustomerType”)
Customer Class to attribute3(“CustomerClass”)
Then, we have a series of mappings where the input and output columns have already been defined. This is due to the matching column name:
Next, we need to map the input field of Customer Currency to attribute8(“CustomerCurrency”):
There should only be 2 unmapped input fields left and here is the mapping for them:
Global Customer to attribute10(“GlobalCustomer”)
Sub-Region to attribute12(“SubRegion”)
Finally, we don’t need to map the remaining columns of User Group (Edit) and User Group (View). So, simply click on the trashcan icon to delete both of these mappings.
Thus, the final data mapping should appear as:
Click Continue button. This will submit the data upload for processing:
Click on our CustomerMasterLoad upload process and select Show history from the menu options:
The history of the upload will appear as:
NOTE: Review the number of records processed and the number that failed. This upload shows that all records were processed successfully with 0 failures.
Additionally, if there were any record failures, then we can review the log records. The upload log records can be found via Data Upload Logs link:
Finally, to verify it was successful we need to view the Customer Master in our partition. Click on Master Data | Customer:
When we return to the Customer Master (without the refresh) it will appear as:
Click on the Refresh option:
NOTE: After the refresh, then the full complement of data should now be available.
PlatformManager Data Upload-Products
In this narrative, we will use the Data Upload option within the PlatformManager tool to load the Product Master table. The use of PM Data Upload templates provides a quick and easy method for loading all types of master data including pricing tables, data sources, and extensions.
...
Figure 1: Use of PlatformManager for data uploads
Prerequisites
In order to be able to complete this laboratory exercise, please complete the prerequisite lab(s) before proceeding.
PlatformManager Login/Setup
Extracted Product master data in CSV format
Define Master Data Metadata
Prior to uploading an data using PlatformManager, we must create the metadata associated with the master data entity (Product, Customer, etc.). Once the metadata has been defined, then we will be able to reference the attributes for the data mapping phase of the data upload.
Download external Product data
Review the Product master CSV data file
Which columns exist in the file?
What is the content of each column? Which data type does each column support (text, number, date)?
Configure the Products Master Table
Our goal is to use PlatformManager to upload our CSV data into the Products Master Table. First, you’ll need to configure the columns in the Master Table to match column in the ProductMaster CSV file.
Click on Master Data | Products from the menu:
The Products master table exists out of the box, but the column names do not match the names in the extracted Product master CSV file. When you hover over the column label, a tooltip will display the name of the column in the back-end database.
From this table layout we can see that we have a standard set of defined columns; Product ID, Label, Product Unit, Currency, Last Update and Pricing Logic. These do not need to be renamed.
Additionally, we have some customizable columns that are labeled as Attribute1, Attribute2, etc. These are the user defined columns and we will rename them to match the incoming columns on our CSV file.
Rename the column Attribute1 to ProductFamily
Right-click on the label for the Attribute1 column, or click on the dropdown menu Click [Rename and Customize Columns]
Rename it to “ProductFamily”.
Set the label to “Product Family”.
Set the type to “String”.
Click on Confirm Changes
Repeat the steps above for all the other columns in the CSV file using the following assignments:
Attribute2 = Business Unit
Attribute3 = Product Category
Attribute 4 = Product Group
Attribute 5 = Product Type
At this point we will have exhausted all of the viewable custom columns in our table. In order to make more columns visible, click on the drop-down menu of any column and choose Select Fields to Display option.
From the following click on checkbox for Attributes #6 -11:
Note: Aside from the prebuilt columns, there’s a maximum of 30 columns that can be added to the Products master table (attribute1 to attribute30)
Some of the columns in our CSV file can be aligned with some of the pre-built columns that are provided in our Product master “out-of-the-box. Make note of the following attribute assignments that we will NOT need to define:
Product Currency will be assigned to Currency in Product master
Last Update will be assigned to Last Update in Product master
Pricing Logic will be assigned to Pricing Logic in Product master
Now we can complete the definition of our remaining columns so the Product master closely matches the columns in the CSV file. Thus, create the following attributes and associate them with our Attributes:
Attribute6 = Product Class
Attribute7 = Discount
Attribute8 = UOM
Attribute9 = Industry
Attribute10 = Product Group Id
Save the preferences
Click on Preferences Manager icon (bottom, right) to create a preference. This will save the layout changes you made to the Products view (column position, etc.).
From the Preferences dialog box, click on the Save as New Preference option.
Type the Preference name of Product_default and check option of Set as default preference for me.
...
Click Apply button.
Upload Data using PlatformManager
Now that our Product master table has been defined, we are ready to upload the data in our CSV file into our Product master.
Login to PlatformManager
In browser, go to URL: https://platform.pricefx.com/
If you are a Pricefx employee, click on Login with O365.
Access Target Partition
Navigate to Partitions option
Then, input (or select) your target partition:
Click on Data Upload option. Then click on the Add button:
The Data Upload dialog will now begin:
First, we must provide a meaningful name for our Data Upload, enter “ProductMasterLoad” as the name.
Next, we need to select the Pricefx entity that we will be loading, click inside the box and the list of possible entities will appear:
Select the Product entity. Click Continue button.
Next, the Data Upload will need the CSV file that we will be uploading:
Drag and Drop our ProductMaster.csv file onto the page.
PlatformManager will then parse the CSV file and using default parsing options it will show you a sample layout of the file:
NOTE: Verify that the layout shown here will map to the CSV file uploaded. This view within PlatformManager will be used to map these columns to our Product master table.
Click Continue button.
Data Mapping
Our next phase is the mapping of the columns in the CSV file to the attributes defined in our Product master table in our partition.
...
When we return to the Product Master (without the refresh) it will appear as:
Click on the Refresh option:
NOTE: After the refresh, then the full complement of data should now be available.