User Profile
Sam_Kumar
Brass Contributor
Joined 8 years ago
User Widgets
Recent Discussions
Help In Editing Data Source Credentials in PowerShell for Power BI Embedded Dashboards in D365 CRM
Hello, We are currently migrating Power BI embedded dashboards from one Dynamics 365 CRM tenant to another. The process involves creating a new Power BI report within a workspace. Since the Dynamics 365 Solution does not support the inclusion of Power BI reports within unmanaged solutions, we have resorted to using PowerShell scripting to manage the migration. During this migration, we encountered an issue where the report IDs from the original environment remained linked when moving the Power BI embedded dashboards to the new environment. To address this, we have utilized Environment Variables to map the new report and workspace IDs appropriately. However, we are facing an issue when attempting to edit the Data Source Credentials using PowerShell scripting. Specifically, we are receiving a "Bad Request" error, as shown in the screenshot below. Here is the PowerShell code we are currently using to edit the Data Source Credentials: Connect-PowerBIServiceAccount $accesstoken = Get-PowerBIAccessToken $patchBody = '"credentialDetails": { "credentials": {"accessToken":"'+$($accesstoken)+'"}, "encryptedConnection": "Encrypted", "encryptionAlgorithm": "None", "privacyLevel": "Organizational", "useEndUserOAuth2Credentials": true }' Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/gateways/9eaed562-e9c2-46e4-91cf-276ed0947b41/datasources/f1181856-de29-4a9a-a555-a0e181cd7898" -Method Patch -Body $patchBody We would greatly appreciate any guidance or suggestions on resolving this error in the PowerShell scripting process for updating the Data Source Credentials. Thanks! Inogic Professional Services: Power Platform/Dynamics 365 CRM An expert technical extension for your techno-functional business needs Drop an email at mailto:email address removed for privacy reasons Service: https://www.inogic.com/services/ Tips and Tricks: https://www.inogic.com/blog/
Recent Blog Articles
Document management in Microsoft Teams using Dynamics 365 Integration - Part 1
In any business organization, you need to be able to communicate effectively with your clients and prospects, as well as access and manage relevant documents and data in real-time. Microsoft Teams is...7.2KViews0likes0CommentsMicrosoft Teams Remarkable Journey - Unveiling the Future of Collaboration!
Launched in 2017, Microsoft Teams embarked on a transformative journey that surged forward in 2020, resulting in an astounding tenfold increase in monthly usage of third-party apps and tailor-made so...6.4KViews0likes0CommentsMicrosoft Dynamics 365 CRM and Maps with Teams integration is the future of business productivity
The changing face of daily global and local web communication cannot be defined more evidently than this. Work From Anywhere and Hybrid Work Models have further deepened the existence and use of comm...16KViews0likes1CommentEffective Microsoft Dynamics 365 CRM & Teams Collaboration: A Guide to the Basics and Beyond!
As of 2023, Microsoft Teams has 280 million daily active users with new users joining every day. And it amounts to 5.57% of the total collaboration software market. One of the key drivers for the suc...11KViews0likes3Comments