<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: declaring records programatically using any API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/declaring-records-programatically-using-any-api/m-p/272279#M225409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting AccessDeniedException while trying to call the rest api &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/api/rma/actions/ExecutionQueue?alf_ticket=TICKET_545cadeec4c441f24007ff52213e1fb7f83847eb" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/rma/actions/ExecutionQueue?alf_ticket=TICKET_545cadeec4c441f24007ff52213e1fb7f83847eb&lt;/A&gt;&lt;SPAN&gt; to declare the document as record programatically, even though I am able to declare the record by logging into Alfresco Share Records Management manuallly. Can anyone please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"name":"declareRecord",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"nodeRef":"workspace://SpacesStore/9418526e-496c-4789-8d4a-2002d66c8ed3"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same exception even if I add the params object to the above request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;params:{"prop_cm_name":"Contract_Signed.pdf",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_title":"Contract_Signed",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_description":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_author":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_mimetype":"application/pdf",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_originator":"ABC",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_originatingOrganization":"XYZ",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_publicationDate":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_location":"", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_mediaType":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_format":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_dateReceived":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_address":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_otherAddress":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rmc_supplementalMarkingList":""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 18:03:15 GMT</pubDate>
    <dc:creator>agovikar</dc:creator>
    <dc:date>2014-05-21T18:03:15Z</dc:date>
    <item>
      <title>declaring records programatically using any API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declaring-records-programatically-using-any-api/m-p/272276#M225406</link>
      <description>Hello. I'm trying to file records into RM from an external application, but I haven't yet find out how to do it.If I understand correctly, in order to declare a record from scratch one has to : 1) create the folder in RM 2) upload or move a the file to that folder (can be done via CIFS/DAV/etc)3) se</description>
      <pubDate>Wed, 01 Jun 2011 19:49:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declaring-records-programatically-using-any-api/m-p/272276#M225406</guid>
      <dc:creator>marianov</dc:creator>
      <dc:date>2011-06-01T19:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: declaring records programatically using any API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declaring-records-programatically-using-any-api/m-p/272277#M225407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes there is a way. You can achieve the same result by…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 - by doing the same call that Share is doing when updating the mandatory fields for the document:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/0c9abac8-a4b4-46e1-854b-e8fa432329f3/formprocessor" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/0c9abac8-a4b4-46e1-854b-e8fa432329f3/formprocessor&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_cm_name":"pgadmin.log",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_cm_title":"PG Admin Log",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_cm_description":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_cm_author":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_mimetype":"text/plain",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rma_originator":"Hello",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rma_originatingOrganization":"Erik",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rma_publicationDate":"2011-06-16T00:00:00.000+02:00",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rma_location":"",&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rma_mediaType":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rma_format":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rma_dateReceived":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rma_address":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rma_otherAddress":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "prop_rmc_supplementalMarkingList":""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;…and…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#4 - by doing the same call that&amp;nbsp; Share does when declaring a document to be a record:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/api/rma/actions/ExecutionQueue" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/rma/actions/ExecutionQueue&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "name":"declareRecord",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "nodeRef":"workspace://SpacesStore/0c9abac8-a4b4-46e1-854b-e8fa432329f3"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS1. If you want to do the upload, field update and record declaration in one single transaction you will have to create your own repository webscript that does them all for a single REST call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to call the repository directly you can do so by changing the beginning of the url. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simply change:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS3. If you want to browse the available REST calls for RM, navigate to your alfresco respository and check out the webscripts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/index/uri/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index/uri/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The ones starting with "api/rma/" relate to Records Management.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS4. If you can't find any docs for a certain thing but wants to know how Share is doing it, I suggest you download FireFox and install the HttpFox addon to see the HTTP/REST calls that Share is doing against the respository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 06:58:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declaring-records-programatically-using-any-api/m-p/272277#M225407</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2011-06-17T06:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: declaring records programatically using any API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declaring-records-programatically-using-any-api/m-p/272278#M225408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! I've been struggling with this for weeks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mariano&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 15:12:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declaring-records-programatically-using-any-api/m-p/272278#M225408</guid>
      <dc:creator>marianov</dc:creator>
      <dc:date>2011-06-23T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: declaring records programatically using any API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/declaring-records-programatically-using-any-api/m-p/272279#M225409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting AccessDeniedException while trying to call the rest api &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/api/rma/actions/ExecutionQueue?alf_ticket=TICKET_545cadeec4c441f24007ff52213e1fb7f83847eb" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/rma/actions/ExecutionQueue?alf_ticket=TICKET_545cadeec4c441f24007ff52213e1fb7f83847eb&lt;/A&gt;&lt;SPAN&gt; to declare the document as record programatically, even though I am able to declare the record by logging into Alfresco Share Records Management manuallly. Can anyone please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"name":"declareRecord",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"nodeRef":"workspace://SpacesStore/9418526e-496c-4789-8d4a-2002d66c8ed3"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same exception even if I add the params object to the above request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;params:{"prop_cm_name":"Contract_Signed.pdf",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_title":"Contract_Signed",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_description":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_cm_author":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_mimetype":"application/pdf",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_originator":"ABC",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_originatingOrganization":"XYZ",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_publicationDate":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_location":"", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_mediaType":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_format":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_dateReceived":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_address":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rma_otherAddress":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prop_rmc_supplementalMarkingList":""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 18:03:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/declaring-records-programatically-using-any-api/m-p/272279#M225409</guid>
      <dc:creator>agovikar</dc:creator>
      <dc:date>2014-05-21T18:03:15Z</dc:date>
    </item>
  </channel>
</rss>

