Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2069

Re: How to add a note (textCollection) to Customer

$
0
0

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


Viewing all articles
Browse latest Browse all 2069

Trending Articles