<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Document Script API Type</title><link>https://community.telligent.com/community/11/w/api-documentation/66324/document-script-api-type</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>Document Script API Type</title><link>https://community.telligent.com/community/11/w/api-documentation/66324/document-script-api-type</link><pubDate>Wed, 20 Nov 2019 15:06:29 GMT</pubDate><guid isPermaLink="false">dc7e9bd4-27f9-4e4a-960e-785082835745</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/66324/document-script-api-type#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/20/2019 15:06:29&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;div class="documentation"&gt;&lt;p&gt;Content created on the site must implement this interface for the social services to support it.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="#Properties"&gt;Properties&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#Body"&gt;Body&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#HasErrors"&gt;HasErrors&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#HasWarnings"&gt;HasWarnings&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#HasWarningsOrErrors"&gt;HasWarningsOrErrors&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#HtmlDescription"&gt;HtmlDescription&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#ThrowErrors"&gt;ThrowErrors&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a name="Properties"&gt;&lt;/a&gt;&lt;div class="documentation-members properties"&gt;&lt;h3&gt;&lt;a id="Properties" name="Properties"&gt;&lt;/a&gt;Properties&lt;/h3&gt;&lt;table cellspacing="0" cellpadding="2" width="99%" class="WikiTable"&gt;&lt;thead&gt;&lt;tr class="WikiTableBgBlue"&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Access&lt;/th&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;Attachments&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;IList of [[DocumentAttachment Script API Type|DocumentAttachment]]&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Attachments&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;Author&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;[[User Script API Type|User]]&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Author&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;Category&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;[[Category Script API Type|Category]]&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Category&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;ContentId&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;Guid&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;A Guid uniquely identifying the content.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;CreatedDate&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;Nullable of DateTime&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;The date the content was created.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;Errors&lt;/td&gt;&lt;td rowspan="1"&gt;Read&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;IList of [[Error Script API Type|Error]]&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Errors&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;Id&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Id&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;KnowledgeCollectionId&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;Nullable of Guid&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Knowledge Collection Id&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;LastUpdatedDate&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;Nullable of DateTime&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Last Updated Date&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;Tags&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;IList of [[tag]]&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Tags&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;Title&lt;/td&gt;&lt;td rowspan="1"&gt;Read, Write&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Title&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;Url&lt;/td&gt;&lt;td rowspan="1"&gt;Read&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;A Url to the content on the site.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;Warnings&lt;/td&gt;&lt;td rowspan="1"&gt;Read&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;IList of [[Warning Script API Type|Warning]]&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Warnings&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="documentation-members methods"&gt;&lt;h3&gt;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;&lt;a name="Body"&gt;&lt;/a&gt;&lt;h2&gt;&lt;a id="Body" name="Body"&gt;&lt;/a&gt;Body&lt;/h2&gt;&lt;h3&gt;&lt;a id="Body_Overload_1" name="Body_Overload_1"&gt;&lt;/a&gt;Body Overload 1&lt;/h3&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;#set($stringResponse = $document.Body())&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;var stringResponse = document.Body();&lt;/pre&gt;&lt;h3&gt;&lt;a id="Body_Overload_2" name="Body_Overload_2"&gt;&lt;/a&gt;Body Overload 2&lt;/h3&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;#set($stringResponse = $document.Body($target))&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;var stringResponse = document.Body(target);&lt;/pre&gt;&lt;h4&gt;&lt;a id="Parameters" name="Parameters"&gt;&lt;/a&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/h4&gt;&lt;table cellspacing="0" cellpadding="2" width="99%" class="WikiTable"&gt;&lt;thead&gt;&lt;tr class="WikiTableBgBlue"&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;th&gt;Required&lt;/th&gt;&lt;th&gt;Default&lt;/th&gt;&lt;th&gt;Options&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;target&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Target&lt;/td&gt;&lt;td rowspan="1"&gt;Required&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;p&gt;&lt;div&gt;&lt;code&gt;String&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;&lt;a name="HasErrors"&gt;&lt;/a&gt;&lt;h2&gt;&lt;a id="HasErrors" name="HasErrors"&gt;&lt;/a&gt;HasErrors&lt;/h2&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;#set($booleanResponse = $document.HasErrors())&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;var booleanResponse = document.HasErrors();&lt;/pre&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;p&gt;&lt;div&gt;&lt;code&gt;Boolean&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;&lt;a name="HasWarnings"&gt;&lt;/a&gt;&lt;h2&gt;&lt;a id="HasWarnings" name="HasWarnings"&gt;&lt;/a&gt;HasWarnings&lt;/h2&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;#set($booleanResponse = $document.HasWarnings())&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;var booleanResponse = document.HasWarnings();&lt;/pre&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;p&gt;&lt;div&gt;&lt;code&gt;Boolean&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;&lt;a name="HasWarningsOrErrors"&gt;&lt;/a&gt;&lt;h2&gt;&lt;a id="HasWarningsOrErrors" name="HasWarningsOrErrors"&gt;&lt;/a&gt;HasWarningsOrErrors&lt;/h2&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;#set($booleanResponse = $document.HasWarningsOrErrors())&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;var booleanResponse = document.HasWarningsOrErrors();&lt;/pre&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;p&gt;&lt;div&gt;&lt;code&gt;Boolean&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;&lt;a name="HtmlDescription"&gt;&lt;/a&gt;&lt;h2&gt;&lt;a id="HtmlDescription" name="HtmlDescription"&gt;&lt;/a&gt;HtmlDescription&lt;/h2&gt;&lt;p&gt;Return the Html encoded description of the content (the body, for example).  Possible values for “target” are “Web”, “Email”, “WebServices”, or “raw”.  When “raw” is specified as the target, the description should not be encoded or have any special rendering done to it.&lt;/p&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;#set($stringResponse = $document.HtmlDescription($target))&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;var stringResponse = document.HtmlDescription(target);&lt;/pre&gt;&lt;h4&gt;&lt;a id="Parameters" name="Parameters"&gt;&lt;/a&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/h4&gt;&lt;table cellspacing="0" cellpadding="2" width="99%" class="WikiTable"&gt;&lt;thead&gt;&lt;tr class="WikiTableBgBlue"&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;th&gt;Required&lt;/th&gt;&lt;th&gt;Default&lt;/th&gt;&lt;th&gt;Options&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;target&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Target&lt;/td&gt;&lt;td rowspan="1"&gt;Required&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;p&gt;&lt;div&gt;&lt;code&gt;String&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;&lt;a name="ThrowErrors"&gt;&lt;/a&gt;&lt;h2&gt;&lt;a id="ThrowErrors" name="ThrowErrors"&gt;&lt;/a&gt;ThrowErrors&lt;/h2&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;$document.ThrowErrors()&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;document.ThrowErrors();&lt;/pre&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;span&gt;Nothing&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>