Code Monkey home page Code Monkey logo

powerbi-developer-samples's Introduction

Build Status

App Owns Data samples

Read this documentation to prepare your environment https://docs.microsoft.com/en-us/power-bi/developer/embedding-content

To embed reports, dashboards and tiles, the following details must be specified within web.config:

Detail Description
applicationId Id of the AAD application registered as a NATIVE app.
workspaceId The group or workspace Id in Power BI containing the reports, dashboards and tiles you want to embed.
pbiUsername A Power BI username (e.g. Email). The user must be an admin of the group above.
pbiPassword The password of the Power BI user above.

Important

For security reasons, in a real application, the user and password should not be saved in web.config. Instead, consider securing credentials with an application such as KeyVault.

User Owns Data samples

Follow these steps to run PowerBI.com Integrate samples:

Step 1 - App Registration

Register an application to be used to call Power BI APIs using the Embed Setup Tool

Registration parameters per sample

Redirect URL - http://localhost:13526/Redirect

Home Page URL - http://localhost:13526/

Registration Example:

regexample

Step 2 - Change Cloud.config

Copy Client Id and Client secret to Cloud.config file

regexample

Troubleshooting

Visual Studio 2013

To resolve a 'CS0012:Predefined type 'System.Object' is not defined or imported' error, please update web.config.

Find line:

<compilation debug="true" targetFramework="4.5"/>

And modify it to:

<compilation debug="true" targetFramework="4.5">
 <assemblies>     
   <add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />   
 </assemblies>
</compilation>

Issues

Power BI Support Page

Power BI Ideas

API Sample - NodeJS

Contains several API calls samples for App Owns Data.

After registering an app (as described under "App Owns Data Sample").

Fill config parameters under config.json.

Use one of the methods in app-owns-data-sample.js to make the coresponding api call.

powerbi-developer-samples's People

Contributors

ofirgordon avatar eligr avatar ali-hamud avatar may-hartov avatar microsoftopensource avatar ranbreuer avatar t-yoigra avatar yarovinsky avatar gossemol avatar josephzunigadaly avatar mahirdiab avatar msftgits avatar somriar avatar thomasteoh avatar vdurante avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.