728x90
String str = '123';
Integer int = (Integer) str;
원인
String 타입을 아래와 같이 cast하려고하여 이슈 발생
String str = '123';
Integer int = Integer.ValueOf(str);
수정
Decimal, Double등의 타입으로는 가능하나 compatible하지 않은 String의 경우 아래와 같이 수정하여 사용해야 한다
출처 : https://developer.salesforce.com/forums/?id=906F00000008yxFIAQ
728x90
'개발' 카테고리의 다른 글
Salesforce : Aura Component : 토글 값 셋팅하기 (0) | 2022.06.16 |
---|---|
Salesforce Summer 22 -> Report (보고서) 내 필드 업데이트 & 편집 가능 추가 (0) | 2022.06.14 |
var, const, let의 차이점 (0) | 2022.04.06 |
Salesforce -> 라이트닝 컴포넌트가 검색되지 않아요 (0) | 2022.03.23 |
Salesforce : 세일즈포스 사용자 정의 설정(Custom Setting ) (0) | 2022.03.03 |