Skip to main content
Answer

Lookup CustomerID via external reference number

  • February 19, 2025
  • 5 replies
  • 104 views

SimKra
Freshman II

Hi everybody,

 

I’m struggeling a bit with an import scenario. Our partner wants to import customers and customer orders from a third party via a csv.

To me, it looks like I need two import scenarios. One for the customer and one for the order as they are on different screens. (It would be great, if everything could be imported at once, though.)

I am able to import new customers and save the third party customer number in the field ‘external reference number’ on the customer screen.

Now I want to import the Customer Orders and need to match the external reference number (from the third party) with our new customer ID created earlier in the first import.

How do I do this? I just can’t get it running.

Every help is appreciated.

Thanks in advance.

Best answer by SimKra

Hi ​@Chris Hackett,

unfortunately we couldn’t solve the issue via an import scenario. We will solve it via an API. I think this is better, as the customer want’s to import data regularly.

Regards

5 replies

riglesias
Acumatica Employee
Forum|alt.badge.img+2
  • Acumatica Employee
  • February 19, 2025

Hello ​@SimKra ,

You could try mapping a substitution list to change the external reference number values to the corresponding Customer ID’s

 


riglesias
Acumatica Employee
Forum|alt.badge.img+2
  • Acumatica Employee
  • February 19, 2025

Hello ​@SimKra 

Here’s a quick example.

Create a substitution list that includes under Original Value column the external reference numbers and under Substitution value the corresponding Customer ID’s.

 


And map the substitution list for Customer line. In this example, [Customer Ref] corresponds to the Data Provider field that includes the External Reference number values and CUSTOMERS is the name of the substitution list:

 


Hope this helps.


SimKra
Freshman II
  • Author
  • Freshman II
  • February 20, 2025

Hello ​@riglesias ,

thank you for the quick response.

Unfortunately a substitution list won’t work here, as our partner needs to import new data every few week or so and thus the ExternalReferenceNumber and the CustomerID in Acumatica need to be variables. I can’t create a substitution list right now for the next imports.

Is there a possibility, to create a formula for a lookup in the ‘source/field value’-column, to lookup the customerID with the ExternalRefNbr-field?

 

Just for clarification, this is the process:

  1. our partner gets a csv with customer and customer-order-data from the third party.
  2. our partner imports the customer-data from this csv (external reference nbr included)
  3. our partner imports the customer-order-data from the csv
  4. our partner gets a new csv the next week → repeat every week
    (Sorry, I wasn’t clear with the last step in my first message) 

I am struggeling with the matching of the customer and customer order via the external reference nbr in step 3.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • May 13, 2025

Hi ​@SimKra were you able to find a solution? Thank you!


SimKra
Freshman II
  • Author
  • Freshman II
  • Answer
  • May 20, 2025

Hi ​@Chris Hackett,

unfortunately we couldn’t solve the issue via an import scenario. We will solve it via an API. I think this is better, as the customer want’s to import data regularly.

Regards