Forum Discussion
Issues Embedding Report in Salesforce
Hi Anonymous,
Regarding to issue A:
1. The client info, like client id and client secret, is surely stable. So you can hard-code them. Did you get error message that the client info is invalid?
2. Did you upload all the things in the guide post?
Regarding to issue B:
Can you provide more info? Or I would suggest you open a support ticket here.
Best Regards,
Dale
Hi v-jiascu-msft,
Thanks for getting back to me!
1. I was able to successfully embed the report when the values were hard coded. This led me to believe the values in the Custom Setting were wrong so I deleted the Custom Setting and the App in AAD and recreated both, however, the issue ended up being that I named the Custom Setting 'PowerBI' instead of PowerBI. Now that the Custom Setting is named properly, Salesforce can access client_id, client_secret, etc, but the AccessToken and RefreshToken that are stored are for a different App so the authentication fails. I've been unable to overwrite the AccessToken and RefreshToken stored by Salesforce despite attempts to re-initiate the login process.
Research into how to overwrite OAuth tokens in Salesforce hasn't been fruitful so I'm hoping someone who understands the authenication process better might have some insight.
2. I have followed all of the steps in the guide. After the hard coded version worked I made sure all of the necessary parts exist within Salesforce and are named correctly.
As for B, I'll look into a support ticket for now.
Thank you for your time.