function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AlbertoKiteAlbertoKite 

How to get PermissionsEditOppLineItemUnitPrice value in s-Control

I need to know inside an S-Control if the logged user can edit Price on opportunityLineItem.

I made this query

Select PermissionsEditOppLineItemUnitPrice from Profile where id='00e20000000pIx3'

but if the logged user isn't an administrator I got the following error:

INVALID_TYPE', faultstring:'INVALID_TYPE: sObject type 'Profile' is not supported.',

In fact If I use ApexExplorer with that user I cannot se the object "Profile".

How can I know inside an S-Control if the logged user can edit Price on opportunityLineItem??

Thanks

AlbertoKiteAlbertoKite

Anyone can help me?

Thanks