• Shivateja Madipalli 18
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I am a noob with Salesforce, please bare with my question.

I am creating an App which enables easy edit/creation of PermissionSets on an ORG.

In this process, I am creating a tree view with Permission Sets -> Objects + Permissions -> Fields + Permissions

Step 1. I have retrieved Permission Sets with SOQL "SELECT Id,Name,Description,NamespacePrefix,UserLicenseId,CreatedDate FROM PermissionSet"
Step 2. I am retrieving Objects with "Schema.getGlobalDescribe()"
Here is my question, I am able to fetch all the objects from my ORG.
But, The Object names does not match with the Object names which we generally see in Permission Set -> Object Settings

For example,
With "Schema.getGlobalDescribe()", I get the Object Names, something like this,

Label: Contract, Name: Contract
Label: Contract History, Name: ContractHistory
Label: Order, Name: Order
Label: Order Share, Name: OrderShare

but, in Permission Set -> Object Settings I see something like this,

Accounts
App Launcher
Assets
Campaign Members
Campaigns
Cases
Chatter Coaching
Coaching
Contacts
Content Contracts

All I need is same set of Object Names as we see in "Permission Set -> Object Settings"
I read that the Object names displayed in Permission Set -> Object Settings are the whole set of Objects from ORG but, I see some of them are missing and some are different with just being singular to plural like,

From my code: "Case"
From Permission Set -> Object Settings: "Cases"

Btw, I am doing all of this in Lightning components

Thanks!
I am a noob with Salesforce, please bare with my question.

I am creating an App which enables easy edit/creation of PermissionSets on an ORG.

In this process, I am creating a tree view with Permission Sets -> Objects + Permissions -> Fields + Permissions

Step 1. I have retrieved Permission Sets with SOQL "SELECT Id,Name,Description,NamespacePrefix,UserLicenseId,CreatedDate FROM PermissionSet"
Step 2. I am retrieving Objects with "Schema.getGlobalDescribe()"
Here is my question, I am able to fetch all the objects from my ORG.
But, The Object names does not match with the Object names which we generally see in Permission Set -> Object Settings

For example,
With "Schema.getGlobalDescribe()", I get the Object Names, something like this,

Label: Contract, Name: Contract
Label: Contract History, Name: ContractHistory
Label: Order, Name: Order
Label: Order Share, Name: OrderShare

but, in Permission Set -> Object Settings I see something like this,

Accounts
App Launcher
Assets
Campaign Members
Campaigns
Cases
Chatter Coaching
Coaching
Contacts
Content Contracts

All I need is same set of Object Names as we see in "Permission Set -> Object Settings"
I read that the Object names displayed in Permission Set -> Object Settings are the whole set of Objects from ORG but, I see some of them are missing and some are different with just being singular to plural like,

From my code: "Case"
From Permission Set -> Object Settings: "Cases"

Btw, I am doing all of this in Lightning components

Thanks!