Loading
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기
AndCondition Class

AndCondition Class

여러 중첩된 조건과 AND 연산자를 결합하는 SOQL 조건을 구축하므로 중첩된 모든 조건이 true인 경우에만 조건이 일치합니다. Extends GroupCondition.

필수 Edition

지원 제품: Lightning Experience
지원 제품: Life Sciences Cloud, Customer Engagement용 Life Sciences Cloud 추가 기능 라이센스, Life Sciences Customer Engagement 관리형 패키지가 포함된 Enterprise 및 Unlimited Edition.

constructor()

중첩 연산자로 AND를 사용하여 GroupCondition을 구축합니다.

toSoql()

생성된 SOQL 쿼리를 문자열로 반환합니다.

예

await new ConditionBuilder(
    "HealthcareProvider",
    new AndCondition()
        .add(new FieldCondition("Status", "=", "Active"))
        .add(new FieldCondition("IsPrimaryProvider", "=", true))
).build()
 
// Returns: "(Status = \'Active\') AND (IsPrimaryProvider = true)" 
 
로드 중
Salesforce Help | Article