General
This article describes behaviors and features that are specific to scripting within Integrator.
Return Values
Property Scripts
Return the value to assign:
return article.ItemNum + "/" + article.Revision;Workflow Scripts
- Normal scripts log the return value
- Condition scripts must return
trueorfalse
Logging
Logging is used for debugging and traceability.
Transaction Log (Recommended)
LogService.SaveTransactionLog(0, transaction.Id, "Title", "Message", "Integrator Script Action");Event Log
Used for system-wide logging but not recommended for normal scripting.
Property Handling
Reading Properties
var value = article.GetArticleProperty("PropertyName");Writing Properties
article.AddUpdateArticleProperty("PropertyName", "Value");Saving Changes
ArticleService.UpdateArticleProperties(article.Id, article.ArticleProperties);Changes are not persisted unless explicitly saved.