Hi Alesandre,
New note can be created with the following.
var textCollection;
if(customer.TextCollection.IsSet()){
textCollection=this.TextCollection;
}else{
textCollection = this.TextCollection.Create();
}
if(textCollection.Text.Count()==0){
var textEle: elementsof textCollection.Text;
textEle.TypeCode.content ="10034"; // Account Note
var text = textCollection.Text.Create(textEle);
var textContent;
if(text.TextContent.IsSet()){
textContent= text.TextContent;
}else{
var textContentEle : elementsof text.TextContent;
textContent= text.TextContent.Create(textContentEle);
}
textContent.Text.content = "account note test";
}
Best Regards,
Fred