Skip to main content
July 29, 2022
Question

Check the Object or Document if Exist

  • July 29, 2022
  • 4 replies
  • 0 views

Hi everyone, How to check all of the document if exist. 
I query all of the data have Document Id and I want to check all of that using in the single query

4 replies

stefanhelzle0001
Brainy
July 29, 2022

The content tools plugin has a function getcontentobjectdetailsbyid() which might help you.

amans0009
October 3, 2022

if(
find(
"Document",
extract(
getcontentobjectdetailsbyid(id: ri!DocId),
"Type:",
"]"
)
) > 0,
true,
false
)

harshitb6843
October 3, 2022

[mention:6717cea67e0d4b518e67211cb2034197:e9ed411860ed4f2ba0265705b8793d05], you can use this to insert the code. Makes it clean and more readable.

amans0009
October 3, 2022

sure... thank you [mention:ef600ff8f5d2497eb2def2126dc89484:e9ed411860ed4f2ba0265705b8793d05]