Hello,
I integrate orders via order batch OIS100MI and I want to integrate attributes (ATS101) on order lines.
I can't find how to do it via API
If someone has an idea.
Thank you
I haven't tried it - but I'll suggest:
ATS101MI.LstRelByOrder to obtain ATNR
and then fetch the values with:
ATS101MI.LstAttributes
there are multiple ways that i have found that you can acheive this from past experience.
1) You can create a dummy sales order and add the item multiple time - for each item change the description and assign it an attribute value. when it comes to creating the new sales order execute the APi OIS100MI_LstLine for the dummy sales order and depending on which attribute value you want, retrieve the ATRN value and use that.
2) (The most easiet way that I have found) - create an Alias number for the item (type popular number) and assign that with the attribute number. All you will need to do is reference the Alias number as the item number when creating the order lines and M3 should take care of the attribute value.