title: Can I get Journal article resource UUID from article ID?
body: <p>I have created a Liferay WCM structure with a field where the user enters the ID of an existing web content. I want to use that <strong>ID</strong> to <a href="https://docs.liferay.com/portal/6.2/javadocs-all/com/liferay/portlet/journal/model/JournalArticle.html#getArticleResourceUuid()" rel="nofollow noreferrer">get the resource <strong>UUID</strong></a>.</p>
  <p>How can I accomplish this?</p>
  <hr />
  <h3>Update:</h3>
  <p>I followed the help of <em>Parkash Kumar</em> using the <strong>FreeMarker</strong> language instead of Velocity and it works but using Id:</p>
  <pre><code>&lt;#assign EntryId = 456017 /&gt;&lt;#-- id --&gt;
  &lt;#assign EntryArticleId= 444831 /&gt;&lt;#-- articleId --&gt;
  
  &lt;#assign articleId = EntryId?number /&gt;
  &lt;#assign articleService = objectUtil(&quot;com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil&quot;) /&gt;
  &lt;#assign article = articleService.getJournalArticle(articleId) /&gt;
  &lt;#assign articleResourceId = article.getArticleResourceUuid() /&gt;
  </code></pre>
  <p>When I use <code>articleId</code> I get this error:</p>
  <pre><code>com.liferay.portlet.journal.NoSuchArticleException: No JournalArticle exists with the primary key 444831
  </code></pre>