본문 바로가기

개발

Salesforce : 세일즈포스 사용자 정의 설정(Custom Setting )

728x90

사용자 정의 설정(Custom Setting )이란? 

1. 커스텀 오브젝트와 비슷하다.

2. 조직, 프로필, 유저 등의 레벨 단위로 데이터 종류를 저장할 수 있다

3. 캐시를 사용하지 않는다.

4. SQOL을 사용할 필요가 없다

5. 포뮬러에서 참고가 가능하다. ( + Validation rules, workflow, VF page..)


사용자 정의 설정(Custom Setting) 타입?

1. List Type :

  • 말그대로 Org내에서 리스트 형태로 사용할 수 있음
  • 프로필 혹은 유저 레벨에 따라 특정하여 지정할 수는 없음
  • 자주쓰는 메소드 : getAll(), getValues()

2. Hierarchy Type

  • 프로필 혹은 유저 레벨에 따라 특정하여 개인화 가능
  • 자주쓰는 메소드 : getOrgDefault(), getInstance(ProfileName);

메소드 관련 참고 : https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_custom_settings.htm#apex_methods_system_custom_settings


 

출처 : https://sfdcpanther.wordpress.com/2017/10/03/custom-settings-in-salesforce/

 

728x90