• Radhika Ch
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
326:  offer__Share offerShare=new offer__Share();     327:offerShare.userorgroupid =[Select id from user where id=:userinfo.getuserid()].id;  
   328: offerShare.AccessLevel = 'Edit';    
    329: insert offershare; 
I want to set field level security for particular field of object from Apex.
e.g  There is custom field named  "SLASerialNumber__c"  on Account object and I have System Administrator Profile.
So I want to give Read and Edit Access of  field to Profile.

How it's possible?