CONTAINS 함수는 2개의 텍스트 문자열을 비교하며 일반적으로 유효성 검사 및 워크플로 규칙에서 텍스트 필드의 문자 또는 문자열을 검색하는 데 사용됩니다. 자세한 내용은 CONTAINS 및 Formula Operators and Functions를 참조하십시오(링크를 마우스 오른쪽 버튼으로 클릭하고 새 탭에서 링크를 엽니다).
1. 텍스트를 검색합니다.
2. 알 수 없는 문자열 또는 문자가 정의된 문자열 또는 문자 집합과 일치하는지 확인합니다.
텍스트 검색 예
CONTAINS(Comments__c,"BadWord")"BadWord"가 Comments__c에 포함되어 있으면 TRUE를 반환합니다.
알 수 없는 문자열 또는 문자 검색 예
CONTAINS("0123456789", TextField__c)1,2,9,01,789와 같은 TextField__c 값 또는 "0123456789"의 다른 하위 문자열에 대해 true를 반환합니다. CONTAINS("0123456789", LEFT(TextField__c,1))숫자 0~9만 일치시키려면 compare_text의 길이가 1과 같아야 합니다. 이 경우 수식을 통해 TextField__c의 첫 번째 문자가 0~9 사이의 숫자인지 확인합니다. CONTAINS를 사용하여 문자열을 정의된 집합과 비교할 경우 해당 집합 요소의 길이는 비교하는 문자열의 길이와 일치해야 합니다. 하지만 구분 기호는 계속 일치시킬 수 있습니다. 상응하는 CASE 문은 더 길지만 더 신뢰할 수 있습니다.
참고: CONTAINS 함수는 빈 값을 true로 간주합니다. 요구 사항을 충족하려면 CONTAINS와 함께 NOT(ISBLANK()를 포함하십시오. CONTAINS에 NOT을 사용할 경우 BLANK 값을 인식하지 않습니다.
000385300

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.