Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Map<String,Schema.SObjectField> mapAccountFieldDescribed = Schema.SObjectType.Account.fields.getMap();
  2.  
  3. for(String strFieldName: mapAccountFieldDescribed.keySet())
  4. {
  5. Schema.SobjectField objfield = mapAccountFieldDescribed.get(strFieldName);
  6. system.debug('====name here==='+objfield.getDescribe().getName());
  7. system.debug('===is accessibility==='+objfield.getDescribe().isAccessible());
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement