Developer forum

Forum » Integration » Creating order with orderline

Creating order with orderline

Casper Andersen
Reply

Hi DynamicWeb

I'm trying to create an integration, that takes some information from a CRM system and creates an order with an order line attached to it.

Getting the data from the CRM system is done, and i have created all other needed code, but when it comes to assigning an orderline to an order, how do i do this when i dont know the orders ID yet, since i'm guessing this will be set by the integration at run time?


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Casper

Orderids you can set your self - so if you have something from CRM you can just use that, or add a pre or suffix to it, or use the Dynamicweb.Ecommerce.Common.NumberGenerator.GetNumber("ORDER") to get a new DW order number.

BR Nicolai

Votes for this answer: 1
 
Casper Andersen
Reply

Ahh great thanks, just the method i needed!

 

You must be logged in to post in the forum