Developer forum

Forum » Integration » Importing customers or contacts

Importing customers or contacts

Johan Ulff
Reply

Hi, I am using the following request to get all customers från BC:

<GetEcomData><tables><Customers type="all" importContacts="false"/></tables></GetEcomData>

and all contacts with this request:

<GetEcomData><tables><Customers type="all" importContacts="true"/></tables></GetEcomData>

But in both requests AccessUserActive is always true in the response. I tried to change the Blocked and Privace Blocked fields in BC, but that seems not to work. Which field is AccessUserActive mapped to?


Replies

 
Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Johan,
it is currently hardcoded to 'true' value for both cases. So you can submit a new feature request here or use custom subscribers:
UsersPublisher.OnAddCustomerXmlNode
UsersPublisher.OnAddContactXmlNode
and override the output of those field per your needs.
BR, Dmitrij

 

 
Johan Ulff
Reply

Thanks, that worked. Another question:

If I want to get certain information from the customer i BC (limit before free shipping for example) and transfer that information to the user in Dynamicweb, I tried with the following request:

 <GetEcomData><tables><Customers type="all" importContacts="false"/></tables></GetEcomData>

I get new custom fields from the customer, and I map them like this in data integration:

Apperantly I have to include AccessUserCustomerNumber because I use that as key on the table because the is what I have as key in the incoming response:

I use the User provider i data ingration. 

This works, I get updates for the fields in Dynamicweb, bit it always also changes the username in DW to that of the incoming response (customer name, not contact username)

I dont want that, I want the contact name. It seems that the integration job does this automatically. Is there some way to stop this behaviour, or should I try another way of getting information from the customer in BC to the user in DW?

 

 

 
Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Johan,
can you try to use the AccessUserExternalID column as a key instead?
Also you can try to include the AccessUserUserName column in the mapping and make it as a Key column too so it can find the right user and keep its user name then.

The fieds are populate with those values coming from BC:
AccessUserUserName is mapped to Customer or Contact "E-Mail"
AccessUserExternalID to Customer or Contact "No."

Kind regards, Dmitrij

Votes for this answer: 1

 

You must be logged in to post in the forum