Developer forum

Forum » Development » Add multiple addresses to a user by API

Add multiple addresses to a user by API

Ricardo Pereira
Reply

Hi everyone,

How can I add multiple addresses to a user by the API?


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Bu using the Dynamicweb.Modules.UserManagement.UserAddress API.

var adr = new Dynamicweb.Modules.UserManagement.UserAddress();
adr.Address = "some street 35";
adr.Zip = "90210";
adr.UserID = 12;
adr.Save();

Votes for this answer: 1
 
Ricardo Pereira
Reply

Thank you Nicolai.It works!!

 

You must be logged in to post in the forum