<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to set unique id to document where creating a document from plugin</title><link>https://community.appian.com/discussions/f/plug-ins/12565/how-to-set-unique-id-to-document-where-creating-a-document-from-plugin</link><description>Hi All, 
 I am creating a document in custom plugin, while I am generating id for that document I&amp;#39;m getting following error. 
 Code : long id = cs.create(document, ContentConstants.UNIQUE_FOR_PARENT); document.setId(id); 
 Error: com.appiancorp.suiteapi</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to set unique id to document where creating a document from plugin</title><link>https://community.appian.com/thread/55958?ContentTypeID=1</link><pubDate>Wed, 30 May 2018 12:37:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b899e8c-6d73-43e8-9c0f-6bad9ebabaaa</guid><dc:creator>Pradeep Gudishana</dc:creator><description>Thanks its working&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set unique id to document where creating a document from plugin</title><link>https://community.appian.com/thread/55957?ContentTypeID=1</link><pubDate>Wed, 30 May 2018 12:31:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef9ff344-7932-4b38-9db0-b3daddcc42c7</guid><dc:creator>Tim</dc:creator><description>Try using ContentConstants.UNIQUE_NONE&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>