How to setup a sFTP export in 5.8+ and format the Metadata search results.
Please note, this is a long and complicated process, usually 20 hours is a good estimate.
Test the clients sFTP.
a. They will need to give you the Host address, username, password and port for the sFTP they want the assets sent to.
b. Open up Filezilla or WinSCP and make sure you can connect to the sFTP.
Setup the sFTP automation.
a. Use this automation to create your sFTP asset export automation, filling in the appropriate info for your specific sFTP -
Test your automation.
a. Upload a test asset or find a test asset on the client MM and pass its assetId in the manual trigger on your sFTP upload automation.
b. Get confirmation of asset received from the client
Pull the list of assetIds from the DB to run through the automation. Use the defining characteristics of the assets to narrow down your list.
***THE METADATA SECTION HAS BEEN MADE OBSOLETE BY THE NEW METADATA EXTRACT APP (see doc link below)***
https://keyshot.atlassian.net/wiki/x/B4B5AwE
Create your metadata search.
a. In the DAM Center, scroll to config manager → DAM Center, select searches and click on the Add new search button -
b. You may need to beak the search into two or more different searches depending on how many metafields you are returning, the API will throw a critical exception when the search is called if there is too much metadata returned.
c. These are general settings for the Input (request) side of the search, what parameters you send to trigger the search. These settings will return all assets in the client DB that are not soft deleted. Adjust per your search needs -
d. The Output tab is what the search will return for each asset’s metadata. Click Add to begin adding asset metafields. Each field must be added individually -
e. Select the Metadata field tab and choose metafield group button to add a specific metafield -
If you want to add data directly from a DB table, select the Table and column tab and select the table, then the column name that the value you want is in -
f. When you have added all the metafields from all of the metadata groups you want returned in the search, click the save button by the Add button.
Test your search. The best way to do this is to call your search in Postman. Here is the base url for the new API search: https://admin-media.mdrt.org/dmm3bwsv3/SearchService.js?
a. Then add your input parameters. The minimum you will need are an accesskey (to the DC) and the search name. It is a good idea to add a limit -b. If you get a critical exception response, then you have too much metadata coming back in the response. You can add a page param with the limit or you can break the search into multiple searches returning different metafields(recommended).
Run your search in Excel.
a. copy your search from postman and open an excel doc. Click on the data tab, then the From Web button -
b. The first time you run the search Excel will prompt you for credentials. Enter the SuperAdmin user and password for the environment you accessing.
Formatting the search results (part 1).
a. Click the into Table button when excel transitions to Power Query editor -
Then hit To Table -
b. Click on the little expand icon in your condensed column -
Keep the delimitator as None and click OK on the modal -
Uncheck the Use original column name as prefix option on the next modal (this will save you pain later on) and then click OK -
Formatting the search results (part 2). Expanding list.
a. Now that your columns have expanded out, we need to further expand the columns with lists (multiple values in one cell), unfortunately this is not as easy as it should be. First, copy all of the column names. Note which columns have a List value -
b. Now click on the Advanced Editor button -
c. You will need to modify this code with your searches details (please note the sections you need to enter your own data) -
d. When you have clicked done the Advanced Editor will now allow you to expand all the columns that contained Lists-
Select “Extract Values…” From the dropdown -
And select Comma as your value delimiter (comma works best) -
Turning it back into an Excel doc.
a. Once you have checked that all of the List have been expanded and look correct, you can click the Close & Load button and Power Query will turn this into a Excel file and you should be good to edit as an Excel doc from here-
Congratulation, if you have made it this far you are a champ and have completed a big project. Good job!