A sample filter

I have a document that I would like to filter on (DocA). DocA contains a Doc Reference list to DocB, which contains string StringA…I want to filter on StringA in my trigger for only documents where StringA = “GO”

What is the proper syntax to put in the trigger filter?

%DocA/DocB/StringA%==“GO” ← Is this correct?

I have tried every different format…frustrated. Any help would be gladly appreciated.

This works too,
%DocA/DocB/StringA% == “GO” or else %DocA/DocB/StringA%= ‘GO’

Hello,
I thought triggers were scoped to the top level document. That would mean all that was necessary was:
%DocB/StringA% == “GO”
However, true to the possibility, if Chris has DocA as an internal portion to the top level triggering document, then I would agree. Check back on this.

HI All,

I have asituation to provide filter in the trigger for an incoming document which contains array structure. I put the filter like this, but it doesn’t work.

%Doc/DocList/strg1% == “GOO”.

Document structure of the publishable document is like

Doc
String1
String2
DocList
strg1
strg2

Is there any way out to provide filter based on an array elemnt.
Thanks,
KK

If you want to filter only on first index where DocList loops then here it is…

%Doc/DocList[0]/strg1% == “GOO”

HTH,
RMG

Hi RMG,

Thanks for the quick response. But I like to search for any of the index. As the string i am looking for can occur at any of the intermediary index.

Thanks,
KK.

Hi RMG

I too have a simiar requirement , I want to use a filter condition on one of the fields (say Field1) which is inside a document list ( say Doc1) of a canonical document ( say UDM 1) ,
so the structure is :
-UDM
– Doc 1
----Field 1

Is there any way to filter out the documents at the trigger level / broker level for all the values of Field1 ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.