Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Transforming data during import to Assets

Team Serviceportal October 10, 2023

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.

1 answer

1 vote
Frederic Chartrand
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 10, 2023

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

Team Serviceportal October 12, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events