지정된 키 값 중 하나와 일치하는 키 특성이 있는 개체를 사용하여 listObject를 반환합니다.
목록
filter(<parameters>)
매개 변수 | 유형 | 설명 |
---|---|---|
listToFilter | listObject | 필터링할 개체 목록 필드 참조여야 합니다. |
keyAttributeName | string | 필터링에 키로 사용되는 지정된 목록의 객체 속성 이름 |
keyValueList | 목록에 있는 참조 페이지를 나타냅니다 | 필터링을 위한 키 값 배열 |
filter(listObject, string, listString)
filter(listObject, string, listInteger)
filter(listObject, string, listDecimal)
filter(listObject, string, listDateTime)
filter(listObject, string, listDateTimeOnly)
filter(listObject, string, listDateOnly)
filter(listObject, string, listDuration)
filter(listObject, string, listBoolean)
listObject를 반환합니다.
다음은 들어오는 이벤트 "myevent"에서 전달된 페이로드의 예입니다.
"productListItems": [{
"id": "product1",
"name": "the product 1",
"price": 20
},{
"id": "product2",
"name": "the product 2",
"price": 30
},{
"id": "product3",
"name": "the product 3",
"price": 50
}]
다음 표현식을 사용할 수 있습니다.
filter(
@{myevent.productListItems},
"id",
["product2", "product3", "product4"]
)
id로 "product2" 및 "product3"이 있는 두 개체가 포함된 listObject를 반환합니다.