Skip to content

Commit

Permalink
1.20.1 (#213)
Browse files Browse the repository at this point in the history
Bugfix #211
  • Loading branch information
tprouvot authored Nov 9, 2023
1 parent 49dcf65 commit ab6b660
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## Version 1.20.1

- Bugfix User selection not displaying information (for orgs without community enabled) [issue 211](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/211)

## Version 1.20

- Move popup arrow icon in Flow Builder because of Winter 24 UI changes [feature 200](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/200)
Expand Down
2 changes: 1 addition & 1 deletion addon/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Salesforce Inspector reloaded",
"description": "Productivity tools for Salesforce administrators and developers to inspect data and metadata directly from the Salesforce UI.",
"version": "1.20",
"version": "1.20.1",
"icons": {
"128": "icon128.png"
},
Expand Down
8 changes: 7 additions & 1 deletion addon/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,14 +552,20 @@ class AllDataBoxUsers extends React.PureComponent {
}
//Optimistically attempt broad query (fullQuery) and fall back to minimalQuery to ensure some data is returned in most cases (e.g. profile cannot be queried by community users)
const fullQuerySelect = "SELECT Id, Name, Email, Username, UserRole.Name, Alias, LocaleSidKey, LanguageLocaleKey, IsActive, FederationIdentifier, ProfileId, Profile.Name, ContactId, IsPortalEnabled";
const minimalQuerySelect = "SELECT Id, Name, Email, Username, UserRole.Name, Alias, LocaleSidKey, LanguageLocaleKey, IsActive, FederationIdentifier, ContactId, IsPortalEnabled";
//TODO implement a try catch to remove non existing fields ProfileId or IsPortalEnabled (experience is not enabled)
const mediumQuerySelect = "SELECT Id, Name, Email, Username, UserRole.Name, Alias, LocaleSidKey, LanguageLocaleKey, IsActive, FederationIdentifier, ProfileId, Profile.Name, ContactId";
const minimalQuerySelect = "SELECT Id, Name, Email, Username, UserRole.Name, Alias, LocaleSidKey, LanguageLocaleKey, IsActive, FederationIdentifier, ContactId";
const queryFrom = "FROM User WHERE Id='" + selectedUserId + "' LIMIT 1";
const compositeQuery = {
"compositeRequest": [
{
"method": "GET",
"url": "/services/data/v" + apiVersion + "/query/?q=" + encodeURIComponent(fullQuerySelect + " " + queryFrom),
"referenceId": "fullData"
}, {
"method": "GET",
"url": "/services/data/v" + apiVersion + "/query/?q=" + encodeURIComponent(mediumQuerySelect + " " + queryFrom),
"referenceId": "mediumData"
}, {
"method": "GET",
"url": "/services/data/v" + apiVersion + "/query/?q=" + encodeURIComponent(minimalQuerySelect + " " + queryFrom),
Expand Down

0 comments on commit ab6b660

Please sign in to comment.