We have a datasource (a database) an attribute with data in the form "J" or "N", short term for swedish Yes (Ja) or No (Nej). In the Assets object I would like to store that as a boolean or status field. Simplest form I would like to say something like "Aktuell = J" to get a boolean.
Is there a way to do this during import?
We do now solve this by adding an automation checking the original attribute and update another when the objects are created or updated.
Hi,
The Automation is a good workaround.
You could also change the attribute's type to "Select" and your Import will create entries for J and N automatically (assuming that in your import config you setup "Unknown value to "Add" for the "select attributes")
You can then filter on those objects with an AQL that add : Aktuell = J
Hope this helps.
Have a nice day
Frederic Chartrand - FMX Solutions - Gold Solution Partner
Yes this is good workaround.
We use a script instead, as we want to have the attributes in a form like in other object types. So that when we filter on these object we may use the same way as for other objects.
In this case we may end up, looking at our source to see if it may be changed as it is generated from yet another source :-)
But in general I would like to have a way to transform data during import.
Regards
Olof Johansson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.