Find if any parent folder is un-published | Community
Skip to main content
Level 3
Mar 20, 2023 12:27 PM UTC
Solved

Find if any parent folder is un-published

I have a requirement where if someone is trying to activate/publish a child folder, I will call the preprocessor and check whether all parent folder to that child is active or not.

if any of the parents is inactive, I will stop the child folder activation. 

 

Problem - Is there a way to use X-path or SQL query to check for all the parent folder activation.

I am able to check for all parents using the recursive function and its working fine but wanted to check if is there any X-path or SQL or any other simple way to do this.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Mar 20, 2023 3:53 PM UTC

Hi,

Queries may not work in this use case and can be expensive also

Recursion make sense here to just immediate parent(s)

Arun Patidar

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Mar 20, 2023 3:53 PM UTC

Hi,

Queries may not work in this use case and can be expensive also

Recursion make sense here to just immediate parent(s)

Translate
Arun Patidar