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

Question

Question

Formatting tokens within Snapshot

asked on February 17, 2017

We have a metadata field which is formatted as month/day/year (ie 2/17/2017).  We want to set up a default naming convention for Snapshot using that field, but they would like it displayed year-month-day (2017-02-17) when Snapshot saves the document.

I know the built-in current date token of %(Date) can be formatted, such as with %(Date;"yyyy-MM-dd").  However, I cannot get a metadata field token to be able to use a format.  It will not give an error, but everything I have tried ends up using the format of the metadata field or else is interpreted as a string.

For example, if my metadata field "Closing Date" is set up month/day/year and has a value of 2/25/2017, below is what I get for each format:
%(Field:[Closing Date];"yyyy-MM-dd") gives me 2/25/2017.
%(Field:[Closing Date];"yyyy") gives me 2/25/2017.
%((Field:[Closing Date]);"yyyy-MM-dd") is treated as a string.
%(Field:[Closing Date;"yyyy-MM-dd"]) is treated as a string.

Is it possible for Snapshot to accept a format for a metadata field, or will it always just use the format of the metadata field? 

0 0

Answer

SELECTED ANSWER
replied on February 20, 2017

I'm sorry to report that this does not work with Snapshot. The reason it doesn't work is because Snapshot internally converts all field values to strings before it processes tokens. This means that the ability to perform date and number formatting during token substitution is lost and Snapshot will use the formatting that's specified in the field definition. I will file an enhancement request in our internal change request tracking system to add this functionality to Snapshot.

0 0

Replies

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

Sign in to reply to this post.