Skip to Content
Author's profile photo Narashimman K S

SAP Analytics Hub – Bulk asset posting

Hello Everyone,

 

This blog is about how to bulk post assets to SAP Analytics Hub (SAH) using a mini application written using Excel VBA.

This application is useful to Administrators who are getting started with SAP Analytics hub and would like to post hundreds or thousands of assets quickly.

See the end to end video and the links to download the files needed towards the end of this blog.

 

Basic Functionalities of this tool:

 

 

 

  1. Load SAH Structure from JSON Export. Useful for values lookup
  2. Validate the data before creating the Postman requests
    1. Verify if the text, URL field lengths are within the limits defined in SAH
    2. Verify if all LoVs match with those defined on SAH
    3. Highlight Blank values
  3. Create Postman Collection JSON for Creating Drafts
  4. Create Postman Collection to make the asset live (Status change from Draft->forReview->Live)
  5. Bulk delete drafts (n number of assets sequentially)
  6. Bulk delete assets (n number of assets sequentially)

 

Prerequisites:

  1. Setting up postman: Install and Configure Postman and postman interceptor (Animated GIF below)
    1. From chrome apps install Postman and Postman interceptor
    2. Open postman through the bookmark bar shortcut for apps
    3. Enable interceptor
    4. Create a new environment with the following fields/values
      • url: YOUR SAH URL
      • x-csrf-token: blank
      • content-type: application/json
  2. Download and extract the SAH Hub Structure zip file: Make sure you have created fields, lovs and have updated the layout, either using SAH Cockpit or using postman or such REST client. It should be something like below (Animated GIF). You can download the HUB Structure data and unzip the file in a suitable location. Under the structure folder you will find 4 json format files namely
    1. assettype.json
    2. field.json
    3. lov.json
    4. lovfield.json
  3. Testing Postman setup:
    1. Import the sample postman collection (find the download link below)
    2. Open your SAH in chrome browser and establish the connection.
    3. Make sure you have selected the right SAH environment
    4. Select the “Get CSRF token” request and click send
    5. Go to the response header and Double Click the csrf-token value -> Right click and set the value for the environment variable.
    6. Note that the CSRF token changes if the session is inactive and you may need to repeat the process when you see CSRF Token nonce failed as the response

How to use the tool – E2E recording:

 

 

 

Links:

  1. Excel Application, Initial JSON request | here
  2. Get Chrome Extensions: Postman and Postman interceptor | here
  3. Direct YouTube link to the above video: here
  4. SAP Analytics Hub User guide | here
  5. SAP Analytics Hub Home | here
  6. SAP Analytics Hub REST APIs | here

 

Hope this helps you to get started with SAP Analytics Hub asset creation 🙂

 

***Update: 30th October 2017****

The tool now supports multi LOVs separated by comma.

 

Note:  The application provided here is to ease the bulk upload of assets. Use at your own discretion. The images used here are for representational and educational purposes only.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Henry Banks
      Henry Banks

      Very neat Naras! thanks for developing this utility 🙂 cheers, H

      Author's profile photo Phil Prentiss
      Phil Prentiss

      Hi Naras, the link to the E2E video https://youtu.be/v4SLs4nukxg is no longer available.  Can you remedy this?

      Thank you!

      Phil

      Author's profile photo Virendra J Potdar
      Virendra J Potdar

      Hey do we have link of YouTube which is working, need this on urgent basis

      Author's profile photo Rajani Ashok Kumar
      Rajani Ashok Kumar

      Hello Naras,

      The youtube link does not work , it says private , can you please look into this and enable the video .

      if somebody has downloaded this video could you please share .

       

      Thanks and Regards,

      Rajani.A