title: How to get articleId dynamically?
body: <p>I am using Asset Publisher and need to dynamically get the articleId of the latest journal article published.</p>
  
  <p>I am using in <strong>abstracts.jsp hook</strong>:</p>
  
  <pre><code>version=JournalArticleLocalServiceUtil.getLatestVersion(assetRenderer.getGroupId(), "14405");
  journalArticle = JournalArticleLocalServiceUtil.getArticle(assetRenderer.getGroupId() , "14405",version);
  </code></pre>
  
  <p>I have hardcoded the articleId here.
  How do I avoid this??</p>
  
  <p>Kindly help.
  Thanks.</p>