Schedule Power BI reports set up

Created by Erik Åkerlund, Modified on Fri, 20 Oct 2023 at 03:35 PM by Axel Johansson

Schedule updates of Power BI Reports 

 

For TS to be able to schedule push updates to Power BI reports in your internal organization, the TS application (Autopilot) needs access tyour organizations Power BI API.  

This guide will help you with setting up access for the autopilot. You only need this guide if you want to be able to schedule power bi reports. 

The first steps are one-time setups.   

Step 1 

One-time setup 

Can be performed by: IT Admin 

Prerequisite:  Ensure that at least one user from your organization have successfully logged in to TS. The “Finance.Net” or "Treasury Systems SaaS" (depending on version) App Service Principal should now exist in your organization. 

The autopilot will authenticate itself as the service principal “Finance.Net” or "Treasury Systems SaaS".  This step will setup a security group in your Azure Active Directory that contains the principal.  

  1. Login to to your azure portal 

  1. Navigate to “Azure Active Directory” 

  1. Go to Groups 

  1. Click new Group 

  1. Group type Security, Group name “TS Autopilot” 

  1. Add yourself as owner. 

  1. Add the application service principal "Treasury Systems SaaS" as a member of the group. 

 

Sidbrytning 

Step 2 

One-time setup 

Can be performed by: Power BI Admin 

This step will allow the previously created security group “TS Autopilot” access to the Power BI API in your organization. 

  1. Login to Power BI 

  1. Click on the settings icon "cogwheel" 

  1. Go to “Admin Portal” 

  1. Go to “Tenant Settings” 

  1. Scroll down to section “Developer Settings” 

  1. Enable “Allow service principals to user Power BI APIs” 

  1. Apply to “Specific Security groups 

  1. Add the “TS Autopilot” security group that was created in previous step. 

  1. Click apply. 

 

 

Sidbrytning 

Step 3 

One-time setup  

Can be performed by: Power BI Pro User 

 

This step will create a new Workspace that you and the TS Autopilot will both have access to.   

 

Any reports that TS Autopilot should be able to update needs to exist in a workspace that both the user and the TS Autopilot have access to. 

 

Previosuly created reports that exist in “My Workspace” cannot be accessed by the Autopilot.  

 

  1. Log in to Power BI 

  1. Click “Workspaces 

  1. Click “Create a workspace 

  1. In this guide we name it “TS-Shared 



  1. Click “Apply” 

  1. In your workspaceclick “Manage Access” 

  1.  

  1. Add the "Treasury Systems SaaS" AppID as a member of the workspace 

  1.  

 

Sidbrytning 

Step 4  

Can be done by:  Report Owner, Power BI Pro User 

 

This step will export a report from TS to Power BI that can later be scheduled by the Autopilot. 

 

  1. Create a report in TS that you want to export to Power BI 

  1. Set Report viewer to “Power BI” 

  1. Run report 

  1. Choose the “TS-Shared” workspace i.e. Your newly created shared workspace 

  1. Choose “Create new” report 

  1.  

  1. Run 

  1. Design the report in Power BI and save i. 

  1. Run the report in TS again and select the newly created report. 

  1. The report in TS is now linked to the report in Power BI. 

  1. (Dont forgetShare the report with Autopilot by giving the Autopilot user the “Read” permission. 

  1.  

 

Sidbrytning 

Step 5 

Can be done by: Any TS User with permissions for Activities. 

 

This step will create an activity setup that can be scheduled to update a power BI report. 

 

  1. Login to TS 

  1. Navigate to the “Activities” view. 

  1. Create a new activity setup “Update Power BI Report 

  1. Give it a name and description. 

  1. Select the power bi report that should be updated. 

  1. Save 

  1. Test-run the activity to make sure it works by clicking “Run”.  
    ActivitySuccess will be logged in the activity history if the run was successfull. 
    Verify that the Power BI report has been updated with the new data. 

  1. Ask TS personnel to schedule the activity. 


     

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article