You are viewing limited content. For full access, please sign in.

Question

Question

Routing Entry to Folder YYYY

asked on January 18, 2023

Hello,

I am trying to route an entry to create a folder if it doesn't already exist based off the Date Value of a Field.  

I had this working originally just using Today's Date but now that we are grabbing the date from the entry we want to use that date.  

This is what I was using in the past:

\%(Date#"yyyy"#)\

 

Example: We want to take a file that has a date of 4/19/2018 and put it in a folder 2018 then inside the name of the file.  I don't think we need any help with the name of the file.  We just need to get the folder routing working.

 

Thank you!

 

 

0 0

Replies

replied on January 18, 2023

The token/variable Date is for Today's date.  You need to use the token/variable for the date you want to grab the year from.

 

1 0
replied on January 18, 2023

Yes, I know this but what is the variable to change the Token/Variable to YYYY?

Thank you!

0 0
replied on January 18, 2023

Hi Manuel,
Format the token as follows:

 

1 0
replied on January 24, 2023

I think you can just shorten this to %(Date#"yyyy"#) instead of adding regex

1 0
replied on January 19, 2023

I'm not sure what you're really asking. How are you grabbing the date from the entry? If you use a Retrieve Field Values, Find Entry or Pattern Matching activity, then that activity will generate a token similar to the date token you were using above. So you can use that token in your folder path and apply the same "yyyy" formatting to it.

If that's not what you're asking, please post screenshots of your workflow so far.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.