Overview:
A Related Documents section is added to an Object Page Layout and the Criteria VQL "product__v = {{this.product__v}}" is added. It displays the filtered documents with the same products when trying to add a document.
However, if the Criteria VQL is changed to "type__v = 'email_fragment__v' AND product__v = {{this.product__v}}", it does not show any documents.
Root Cause:
The Label of the document type should be used in the Criteria VQL. Do not use the Name.
Solution:
An admin needs to change the Criteria VQL to type__v = 'Email Fragment'. The steps are shown below:
- Navigate to Admin --> Configuration --> Objects --> [Object] --> Page Layouts.
- Click the Page Layout link.
- Click the Edit icon of the Related Documents section.
- Change the Criteria VQL to "type__v = 'email_fragment__v' AND product__v = {{this.product__v}}".
Related Documentation:
Vault Help Documentation: VQL - Related Sections