Developer forum

Forum » Integration » Live Integration: Allow multiple Users per Company and the use of "AccessUserExternalID" and "AccessUserCustomerNumber"

Live Integration: Allow multiple Users per Company and the use of "AccessUserExternalID" and "AccessUserCustomerNumber"

Asim Shahzad
Reply

Hi,

As i am new to DW so i have this question. So my question might be 

When we use the setting "Allow multiple Users per Company" in live integration than DW sends "AccessUserCustomerNumber" instead of "AccessUserExternalID" for example in case when we want to get the live price of a product.

My question is Why why we are sending only "AccessUserExternalID" when we dont use the setting "Allow multiple Users per Company" and why DW sending "AccessUserCustomerNumber" when we are using the setting.

The reason why i am asking this question is because our integration team for ERP is asking us to send "AccessUserExternalID" instead of "AccessUserCustomerNumber" and i am a bit reluctant to change the default functionality as it can have ripple effect througout the DW.

So can you please advise.

//Asim


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
This post has been marked as an answer

Hi there,

AccessUserExternalID typically refers to an individual user in the remote system. This would normally be a Contact of a Customer. However, when you don't have multiple contacts per company, there is a one to one mapping between a contact and a customer, so sending the AccessUserExternalID would be sufficient to figure out how to create the order.

AccessUserCustomerNumber typically refers to a Company (=Customer) in the remote system.

When sending AccessUserExternalID the order is placed for the contact (which is also assumed to be the custoemr); when AccessUserCustomerNumber is sent it's placed for the customer. That way, multiple users in DW (contacts in the remote system) can place an order for a single customer .

Does that help?

Imar

Votes for this answer: 1
 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Asim,
the option "Allow multiple Users per Company" means that you can have users that have the same customer number(that points they belong to the same company) and thus the custome number is used as the Identifier of those users in ERP. That option can be useful when in the ERP you have price for some copmany that should be applied on the Dynamicweb several users that belong to the same company, so on the ERP side one user ID corresponds to several Dynamicweb users that belongs to one company and on the Dynamicweb frontend those users will see the same ERP prices.

When this option is not checked (the default behavior) the user "AccessUserExternalID" is used: one ERP user Id corresponds to one Dynamicweb user.

You can edit the live integration code and include both: customer number and external user id in the request to the ERP so your developers could then choose which one to handle
Regards, Dmitrij

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Note: if you are using Live Integration V2 (https://doc.dynamicweb.com/documentation-9/integration/integration-framework-2/intro-features) you can use the extensibility hooks to add the extra information instead of modifying the source code. More info: https://doc.dynamicweb.com/documentation-9/integration/integration-framework-2/extensibility#sideNavTitle1-2

Imar

 
Asim Shahzad
Reply

Thanks Imar, It was really helpful. 

So by using "Allow multiple Users per Company" multiple DW users can place order for single customer. Is this the only reason we use this setting for ? 

Thanks

 

You must be logged in to post in the forum