tprouvot / Salesforce-Inspector-reloaded

Chrome extension to add a metadata layout on top of the standard Salesforce UI to improve the productivity and joy of Salesforce configuration, development, and integration.
https://chrome.google.com/webstore/detail/salesforce-inspector-relo/hpijlohoihegkfehhibggnkbjhoemldh
MIT License
203 stars 62 forks source link

[API Access Control] Installation error with default connected app #358

Closed LCh07 closed 5 months ago

LCh07 commented 7 months ago

Make sure to read the troubleshooting section before creating an issue

Describe the bug When I click Install from the default App Oauth Entry I get the error message attached

To Reproduce Steps to reproduce the behavior:

  1. Go to SETUP>> Connected Apps OAuth Usage

  2. Click on '.Install' next to entry (blocked) matching the default 'Salesforce Inspector reloaded' App

  3. See error attached

Expected behavior App can be installed and then allowed

Screenshots attached

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

mehdicherf commented 7 months ago

Hi @LCh07 , thank you for reporting your issue.

I have 2 questions to help us understand your issue:

1) Do you have API Access Control enabled in your org? (I suppose the answer is "yes", otherwvise you wouldn't try to install the connected app?)

2) What is your Salesforce Edition (you can check under Setup | Company Information)?

LCh07 commented 7 months ago

Hello @mehdisfdc,

Thanks for coming back to me. We do have API access Control enabled and our edition is Enterprise Edition. Its worth noting that the installation worked in a Dev sandboxe but is now failing as I move it up to a devpro and a partial. Anything else you need me to check just let me know.

Thanks

mehdicherf commented 7 months ago

Thank you @LCh07 .

I'm not sure why you get this error is some of your sandboxes (this is not something I managed to reproduce on my end). One hypothesis was that you used a Salesforce Edition lower than Enterprise, but that's not the case...

If this becomes a blocking issue for you, you may want to log a case to Salesforce Support so that they could investigate why your are getting this error in some of your orgs. [EDIT: Or, as a workaround, use a custom connected app as described by @tprouvot , but beware that there is currently an issue with this use case: #338 ]

tprouvot commented 7 months ago

Hi @LCh07, Could you try to create a custom connected app and then I can show you how to save it in localStorage manually (or with the 1.23 beta version)

The goal is to check if you are facing the issue with a custom connected app also

image

LCh07 commented 7 months ago

@tprouvot @mehdisfdc , Thanks for the updates. See the latest below:

We do have API access Control (answer = yes to your question) We want to install the default connected app to avoid the issues we faced 2 weeks ago during your last upgrade

Tried via Edge: this also failed If that's any clue I start this in Lightning and after I get the error my experience switches back to Classic

Now logged this under Case #46584367 with Salesforce Support.

I have created other Default Apps in this org last week without problem. I would rather not go down the route of creating custom for this one since we are trying to go default to avoid issues. Migrating to default will already be an effort and would not want to invest time in a half solution.

Thanks

tprouvot commented 7 months ago

@LCh07 Ok I'll try to help the support investigating this issue

tprouvot commented 7 months ago

Hi @LCh07, Have you seen case support message ? They're trying to reach you

tprouvot commented 5 months ago

I'm posting the resolution in order to help other who are facing the same issue: https://tprouvot.github.io/Salesforce-Inspector-reloaded/troubleshooting/#managed-application-installation-error