Timeline for How does getSObjectType().getDescribe() work in a 'Without Sharing' Class?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 6, 2017 at 18:32 | history | edited | Carlos Naranjo | CC BY-SA 3.0 |
[Edit removed during grace period]; added 82 characters in body
|
Mar 6, 2017 at 18:26 | history | edited | Carlos Naranjo | CC BY-SA 3.0 |
added 400 characters in body
|
Mar 6, 2017 at 18:26 | comment | added | bluecatkaka | I have set Deletable() to false. Since without sharing is running the class on system context so it should will not reinforce sfdc object access, which will make d.isDeletable() always return true no matter what I set for "Deletable()", is that correct? | |
Mar 6, 2017 at 18:17 | comment | added | Carlos Naranjo | If you set up the Deletable() to true then you should get a positive response from your: System.assertEquals(d.isDeletable(),true); You can use Workbench to check the values like Deletable() for any object: | |
Mar 6, 2017 at 18:15 | history | edited | Carlos Naranjo | CC BY-SA 3.0 |
added 8 characters in body
|
Mar 6, 2017 at 18:14 | comment | added | bluecatkaka | Do you mean in my specific case, the values from d.isDeletable() should return true? However, when I run this code as a user using the profile which as "deletable" turn off, the d.isDeletable() always give false value... | |
Mar 6, 2017 at 18:09 | history | edited | Carlos Naranjo | CC BY-SA 3.0 |
added 8 characters in body
|
Mar 6, 2017 at 18:04 | history | answered | Carlos Naranjo | CC BY-SA 3.0 |