Skip to main content
deleted 2 characters in body
Source Link
robrtc
  • 10.2k
  • 2
  • 16
  • 35

But here in var idinid I'm still getting the components present in archive, not used ,trash.

But here in var idin I'm still getting the components present in archive, not used ,trash.

But here in var id I'm still getting the components present in archive, not used ,trash.

Tweeted twitter.com/StackTridion/status/682082598303174656
formatting, bullets, and some grammar to make the difference between wanted and excluded folders clearer
Source Link
Alvin Reyes
  • 12.8k
  • 4
  • 23
  • 62

I have a folder, which has subfolders and components. For

For example, Main folder name as 030 Main, which has subfolders with names archive,not used,100 mango,120 apple,150 cake,trash and:

  • 100 mango
  • 120 apple
  • 150 cake
  • archive
  • not used
  • trash

There are also some components within the 030 Main.

Now iI want to retrieve only the components which uses a specified schema from onlycertain subfolders 100 mango,120 apple,150 cake.(i.ein bold above):

  • 100 mango
  • 120 apple
  • 150 cake

I don't need any components from archive,not used,or trash andnor the components within the 030 Main.)

TriedI tried something like below, First had putfirst with a filter on the folder structure  (iI got tcm id's of archive,not used,100 mango,120 apple,150 cake,and trash) then.

Then I checked for condition if folderthe folder's tcm id ismatches (100 mango,, 120 apple,, or 150 cake). Then if

If this condition is true put, I use a component filter andto get all the components with specified schema.

But here in var idin I'm still getting the components present in archive, not used ,trash.

I have a folder, which has subfolders and components. For example Main folder name as 030 Main, which has subfolders with names archive,not used,100 mango,120 apple,150 cake,trash and some components within the 030 Main.

Now i want to retrieve only the components which uses a specified schema from only subfolders 100 mango,120 apple,150 cake.(i.e don't need any components from archive,not used,trash and components within the 030 Main.)

Tried something like below, First had put filter on folder structure(i got tcm id's of archive,not used,100 mango,120 apple,150 cake,trash) then checked for condition if folder tcm id is (100 mango,120 apple,150 cake). Then if condition is true put component filter and get all the components with specified schema.

But here in var idin still getting the components present in archive, not used ,trash.

I have a folder, which has subfolders and components.

For example, Main folder name as 030 Main, which has subfolders with names:

  • 100 mango
  • 120 apple
  • 150 cake
  • archive
  • not used
  • trash

There are also some components within 030 Main.

Now I want to retrieve only the components which uses a specified schema from certain subfolders (in bold above):

  • 100 mango
  • 120 apple
  • 150 cake

I don't need any components from archive,not used,or trash nor the components within 030 Main.

I tried something like below, first with a filter on the folder structure  (I got tcm id's of archive,not used,100 mango,120 apple,150 cake,and trash).

Then I checked if the folder's tcm id matches 100 mango, 120 apple, or 150 cake.

If this condition is true, I use a component filter to get all the components with specified schema.

But here in var idin I'm still getting the components present in archive, not used ,trash.

Formatted for better readability & understandability
Source Link

I have a folder, which has subfolders and components.  For example Main folder name as 030 Main030 Main, which has subfolders with names archivearchive,not usednot used,100 mango100 mango,120 apple120 apple,150 cake150 cake,trashtrash and some components within the 030 Main030 Main. Now

Now i want to retrieve only the components which uses a specified schema from only subfolders 100 mango100 mango,120 apple120 apple,150 cake150 cake.(i.e don't need any components from archivearchive,not usednot used,trashtrash and components within the 030 Main030 Main.) Tried

Tried something like below, First had put filter on folder structure(i got tcm id's of archivearchive,not usednot used,100 mango100 mango,120 apple120 apple,150 cake150 cake,trashtrash) then checked for condition if folder tcm id is (100 mango,120 apple,150 cake100 mango,120 apple,150 cake). Then iffif condition is true put component filter and get all the components with specified schema, but here in "var idin " still getting the components present in archive, not used ,trash. Please suggest may be the second filtering part is not working.

But here in var idin still getting the components present in archive, not used ,trash.

Please suggest may be the second filtering part is not working.

I have a folder, which has subfolders and components.For example Main folder name as 030 Main, which has subfolders with names archive,not used,100 mango,120 apple,150 cake,trash and some components within the 030 Main. Now i want to retrieve only the components which uses a specified schema from only subfolders 100 mango,120 apple,150 cake.(i.e don't need any components from archive,not used,trash and components within the 030 Main.) Tried something like below, First had put filter on folder structure(i got tcm id's of archive,not used,100 mango,120 apple,150 cake,trash) then checked for condition if folder tcm id is (100 mango,120 apple,150 cake). Then iff condition is true put component filter and get all the components with specified schema, but here in "var idin " still getting the components present in archive, not used ,trash. Please suggest may be the second filtering part is not working.

I have a folder, which has subfolders and components.  For example Main folder name as 030 Main, which has subfolders with names archive,not used,100 mango,120 apple,150 cake,trash and some components within the 030 Main.

Now i want to retrieve only the components which uses a specified schema from only subfolders 100 mango,120 apple,150 cake.(i.e don't need any components from archive,not used,trash and components within the 030 Main.)

Tried something like below, First had put filter on folder structure(i got tcm id's of archive,not used,100 mango,120 apple,150 cake,trash) then checked for condition if folder tcm id is (100 mango,120 apple,150 cake). Then if condition is true put component filter and get all the components with specified schema.

But here in var idin still getting the components present in archive, not used ,trash.

Please suggest may be the second filtering part is not working.

added 1959 characters in body
Source Link
Loading
Source Link
Loading