Developer forum

Forum » Integration » URL handlers with multiple sites and submitting an order from the backend

URL handlers with multiple sites and submitting an order from the backend

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have multiple live integration connections set up like this:

http://1.2.3.4:9090/DynamicwebService_Company1_Test;User.AccessUser_ErpConnectionSource;Company1
http://1.2.3.4:9090/DynamicwebService_Company2_Test;User.AccessUser_ErpConnectionSource;Company2

ErpConnectionSource is a custom field on the user that marks them as belonging to Company 1 or 2. This works well for orders submitted from the frontend.

How does this work with the "Transfer order to ERP" button in the backend on an order's RibbonBar? Since it considers the current frontend user, I don't think this will work correctly and possible send the order to the wrong ERP

Is there a work around for this?

Thanks in advance!

Imar


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Imar,
It is a bug and it seems there is no workaround for this as it checks the current frontend user which will be null for the backend context call. So it should consider the user from the completed order "CustomerAccessUserId" field instead?
BR, Dmitrij

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

>> So it should consider the user from the completed order "CustomerAccessUserId" field instead?

Yeah, that would be the best solution, IMO.

Thanks!

Imar

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar

The bugfix in liveintegration #18443 released in Dynamicweb 9.17.3
https://doc.dynamicweb.dk/downloads/dynamicweb-9

Kind Regards
Dynamicweb Care Support
Kristian Kirkholt

 

 

You must be logged in to post in the forum