티스토리 뷰
<sObject>.sObjectType.getDescribe().isCreateable(); // 생성 가능한지 ( C )
<sObject>.sObjectType.getDescribe().isAccessible(); // 조회 가능한지 ( R )
<sObject>.sObjectType.getDescribe().isUpdateable(); // 수정 가능한지 ( U )
<sObject>.sObjectType.getDescribe().isDeletable(); // 삭제 가능한지 ( D )
// Example
Account.sObjectType.getDescribe().isCreateable();
Account.sObjectType.getDescribe().isAccessible();
Account.sObjectType.getDescribe().isUpdateable();
Account.sObjectType.getDescribe().isDeletable();
- 현재 사용자의 권한에 따라서 해당 오브젝트의 CRUD 권한을 True / False로 판단
728x90
'[세일즈포스 개발자]' 카테고리의 다른 글
Recently Viewed List View 필드 세팅하는 방법 (0) | 2025.02.12 |
---|---|
Standard Object / Standard Field 라벨 변경 (0) | 2025.02.12 |
Modal을 Event로 Close하기 (0) | 2023.10.18 |
Schedule Apex Class 실행하는 방법 (0) | 2023.10.04 |
LWC 내에서 Flow를 포함하고 있을 때, Flow에 값을 전달해주는 방법 (0) | 2023.08.23 |
댓글