• mounika darisi 6
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hi All,

I had given Account OWD to private and created sharing rules to share records to specific users on satisfying few conditions.
I created Visualforce page and tehre is Account Lookup field which is displaying all the Account records irrespective of sharing rules.
I found it is salesforce bug that Visualforce page Lookup will not consider sharing rules.
I am planning to create custom lookup.
Let me know if there is any other possibility.

Thanks,
Mounika

Hi all,

I am trying to create Permissionsets from apex.I am able to create  permission sets with object and field permissions enabled through apex. Any Idea how to create permissionsets with specific tab settings permissions enabled through apex code ?
Below is how I gave object and field permissions.

PermissionSet ps = new PermissionSet();
    ps.Name = 'Test';
    ps.Label = 'Test';
insert ps;
ObjectPermissions op = new ObjectPermissions();
op.parentId = ps.Id;
op.SobjectType = 'Account';
op.PermissionsCreate = true;
op.PermissionsRead = true;
insert op;
FieldPermissions fp = new FieldPermissions();
fp.parentId = ps.Id;
fp.SobjectType = 'Account';
fp.Field = 'Account.AccountSource';
fp.PermissionsRead = true;
fp.PermissionsEdit = true;
insert fp;


 

Hi all,

I am trying to create Permissionsets from apex.I am able to create  permission sets with object and field permissions enabled through apex. Any Idea how to create permissionsets with specific tab settings permissions enabled through apex code ?
Below is how I gave object and field permissions.

PermissionSet ps = new PermissionSet();
    ps.Name = 'Test';
    ps.Label = 'Test';
insert ps;
ObjectPermissions op = new ObjectPermissions();
op.parentId = ps.Id;
op.SobjectType = 'Account';
op.PermissionsCreate = true;
op.PermissionsRead = true;
insert op;
FieldPermissions fp = new FieldPermissions();
fp.parentId = ps.Id;
fp.SobjectType = 'Account';
fp.Field = 'Account.AccountSource';
fp.PermissionsRead = true;
fp.PermissionsEdit = true;
insert fp;


 

I completed the challenge, earning the Force.com basics and Date Modeling badges, however I did so under a different login than my Salesforce employee login. I was having trouble accessing the developer zone and created a seperate account for it. Can I have the badges under my developer edition login transferred to my normal Salesforce employee login and am I still qualified for the t-shirt giveaway?