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

csv import and links between objects

Heiko Lotz July 23, 2024

I need help with importing csv files and linking objects.

I have two csv files: customers and (as a child of customers) employees of the customer:

Customer object Attributes:
Name (type standard, text), customer number (type standard, integer)

Employee object Attributes:
Employee name (type standard, text), CustomerNo (type standard, integer), Ref customer (type object, object customer, reference)

The customers were all imported via csv. When importing the employees, a link should now be created between the customers and the employees via the customer number (Customer) / CustomerNo (Employee).

I have mapped the fields when importing the employees via csv:

csv.name > employee name
csv.customer number > CustomerNo
csv.customer > Ref customer (AQL: CustomerNo ={CustomerNumber})

How can I ensure that the Ref customer field is linked to the customer during the import? I allready tried several AQL-statements but had no luck.: CustomerNo = CustomerNumber, CustomerNo = ${CustomerNumber}

I would be delighted to receive a tip.

2 answers

2 accepted

1 vote
Answer accepted
Christopher Yen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 23, 2024

Hi @Heiko Lotz

I think the AQL might be this if I'm understanding your screenshots correctly 

"customer number" = ${CustomerNumber}

 

Heiko Lotz July 24, 2024

Thank you so much! Made me very happy!

0 votes
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 23, 2024

Hi @Heiko Lotz and welcome to the community,

While using the AQL to bind objects you have to keep this in mind. E.g. you have this AQL:

CustomerNo =${CustomerNumber}

CustomerNo should be the insight attribute and

CustomerNumber should be the column name of your csv.

That would be the case for 1-to-1 mapping. Make the corrections and try again. Let me know how it went.

Heiko Lotz July 23, 2024

Hello an thank you !!!

Now I am totaly confused. This is what it looks like:

ATTRIBUTES OBJECT CUSTOMER


pic01.png


ATTRIBUTES OBJECT EMPLOYEE

pic02.png


IMPORT-MAPPING

pic03.png


employees.csv

Name; CustomerNumber
Anton A;10001;
Berta B;10002;
Caesar C;10002;
Daniel D;10003;
Emil E;10001;
Fridolin F;10002;
Gerda G;10004;

Heiko Lotz July 23, 2024

It is still not working. Dont know how to link the objects.

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 23, 2024

Hi @Heiko Lotz try "customer number" = ${CustomerNumber}, that is the attribute "customer number" contains numbers just like the csv (e.g. 10001, 10002 etc).

Heiko Lotz July 24, 2024

You are totally right! That is the solution!

Thank you so much :-) You made my dax.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events