Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CorneAussems/9955941 to your computer and use it in GitHub Desktop.
Save CorneAussems/9955941 to your computer and use it in GitHub Desktop.
import com.liferay.portal.service.ServiceContext
import com.liferay.portlet.journal.service.*
try {
groupId = 143401;
tmpl = JournalTemplateLocalServiceUtil.getTemplate(groupId,'298777' );
tmpl.setStructureId("");
println('PK='+tmpl.getPrimaryKey()+' structureId='+tmpl.getStructureId()+' group'+tmpl.getGroupId())
JournalTemplateLocalServiceUtil.updateJournalTemplate(tmpl);
} catch (Exception e) {
println('Fatal Exception'+e)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment