Developer forum

Forum » PIM » Asset Auto Checkin

Asset Auto Checkin

Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,​

Question about the AutoCheckin. The documenation states:

  1. Specify a search pattern for the assets you want to assign to this category, e.g. {ProductNumber}_lifestyle and optionally a regular expression which refines the list of assets matched by the search pattern

I am curious about the "and optionally a regular expression" part. Does that mean that I can combine patterns and regular expressions? Should I be able to do:

 {ProductNumber}_ProductInformtion_([^_]+)_([^_]+)_Latest$

To get a match on a file named "XT980_ProductInformtion_Product-Information_EN_Latest"?

If I am only able to use regular expression, how do I get a match to a product?

Regards / Aki 

 

 


Replies

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Aki,

If you hover your mouse over the "Information Icon", you will get this information:

"This is an extension that runs on the result 'Search Pattern' and accepts it if the RegEx matches; otherwise it rejects it."

So the defined RegEx will run on the result of assets, based on your definition of "Search Pattern".

I hope this helps you

/Søren

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi Soren,

Yes, I have read it, I just don't understand it :) 

So, to be really clear. If I put this in:

{ProductNumber}_([^_]+)_([^_]+)_([^_]+)_Latest$

The system will first resolve the {ProductNumber} part to, for example:

123456_([^_]+)_([^_]+)_([^_]+)_Latest$

And secondly match on the regex.

Is that correct understood?

Regards / Aki 

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Aki,

No ..

The pattern field has not been changed and is only used for defining the search pattern.

The "Regular expression" field can be defined with expressions that are called subsequently on the result of the search pattern.

/Søren

 

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Aah. There are two fields. I only have the Search Pattern field and running version 10.18.14 so I guess this is a feature in a later version 

/Aki

 

You must be logged in to post in the forum