How to get file from root folder

Post Reply
Krzysztof Mycek
Member
Posts: 30
Joined: Tue Mar 03, 2020 11:28 am

How to get file from root folder

Post by Krzysztof Mycek »

Hi
I need to download a file in a specific way:

For Example I have a root folder with folder:
Root/
123456_costam/test.pdf
098766_terefere/test2.pdf
567843_test/test3.pdf
345678_test2/test4.pdf

inside the folders are files
Question is:
How can I download files by looking at the first 5 numbers in root folder?
I need to find file for example test.pdf from folder 123456_costam but in variables I have only 123456 in XML (that is the number of orders.
I will try to get path //root/123456/test.pdf and find this number by regexp (first 6 digits) but variables is always not correct.
laurentd
Member
Posts: 142
Joined: Wed Mar 13, 2019 2:06 pm

Re: How to get file from root folder

Post by laurentd »

There's an app for that, Inject Wildcard
Laurent De Wilde, Solution Architect @ Enfocus
Krzysztof Mycek
Member
Posts: 30
Joined: Tue Mar 03, 2020 11:28 am

Re: How to get file from root folder

Post by Krzysztof Mycek »

Hi Laurentd
I use them but not working correct:

I use the line in root joob repository:

//nordsign.local/dfs/Orders/Print Republic/[Metadata.Text:Dataset="Xml",Model="XML",Path="/Positions/position/ORDER_NUMBER"]/

result is: //nordsign.local/dfs/Orders/Print Republic/12345/

Here is the first segment incoming from XML: 12345

But how I can change them by 12345_costam?
I need result: //nordsign.local/dfs/Orders/Print Republic/12345_costam/and here is the name of file from next line of XML
tdeschampsBluewest
Member
Posts: 37
Joined: Tue Jun 01, 2021 11:57 am

Re: How to get file from root folder

Post by tdeschampsBluewest »

Hi, as Laurent said, inject Wildcard have every tool you need for this purpose (and several option to achieve it)

Maybe you could try something like this :

job repository : //nordsign.local/dfs/Orders/Print Republic/
Inject : File only
Injected jobs name filter : *.pdf (or something from your xml)
Hierarchy parents name filter : [Metadata.Text:Dataset="Xml",Model="XML",Path="/Positions/position/ORDER_NUMBER"]_*
Krzysztof Mycek
Member
Posts: 30
Joined: Tue Mar 03, 2020 11:28 am

Re: How to get file from root folder

Post by Krzysztof Mycek »

My solution is in Scan hierarchy and Inject Wildcard
But thank You for your help
Attachments
Zrzut ekranu 2023-07-11 o 16.49.35.png
Zrzut ekranu 2023-07-11 o 16.49.35.png (119.76 KiB) Viewed 13722 times
Zrzut ekranu 2023-07-11 o 16.49.21.png
Zrzut ekranu 2023-07-11 o 16.49.21.png (96.23 KiB) Viewed 13722 times
Post Reply