<?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>Question Re: Issue getting DMS Folder Content in SAP Build Process... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14005202#M4901763</link>
    <description>&lt;P&gt;I have now created a blog that explains this:&amp;nbsp;&lt;A class="" href="https://community.sap.com/t5/technology-blogs-by-sap/convert-dms-folder-id-to-name-in-automation/ba-p/14005092" target="_blank" rel="noopener"&gt;Convert DMS Folder ID to Name in Automation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enjoy &lt;span class="lia-unicode-emoji" title=":grinning_cat_face:"&gt;😺&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 09:47:55 GMT</pubDate>
    <dc:creator>Dan_Wroblewski</dc:creator>
    <dc:date>2025-02-03T09:47:55Z</dc:date>
    <item>
      <title>Issue getting DMS Folder Content in SAP Build Process Automation - Undefined DMS Destination</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaq-p/13999927</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to get the DMS Folder Content using the SAP provided activity "get DMS Folder Content", but I keep getting this error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SandipAgarwalla_0-1738133608388.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/218545iEE682A7FE819AE6F/image-size/medium?v=v2&amp;amp;px=400" alt="SandipAgarwalla_0-1738133608388.png" title="SandipAgarwalla_0-1738133608388.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The file Is uploaded using File Upload in SBPA Form, so initial DMS Destination is already set. I am using this activity to get the folder content&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SandipAgarwalla_1-1738133667256.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/218546iC9C998889D6D0247/image-size/medium?v=v2&amp;amp;px=400" alt="SandipAgarwalla_1-1738133667256.png" title="SandipAgarwalla_1-1738133667256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the folder path, I am passing the hash number which I received after uploading the file. Is this the correct value? Also what specific destination we need to use the DMS Related Activities?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation does not have any details around these. Appreciate if someone can help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 06:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaq-p/13999927</guid>
      <dc:creator>SandipAgarwalla</dc:creator>
      <dc:date>2025-01-29T06:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14001123#M4901221</link>
      <description>&lt;P&gt;You need to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;define an environment variable of type destination&lt;/LI&gt;&lt;LI&gt;Add this activity before you call any other DMS activities:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Wroblewski_0-1738223141133.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/218992i328E6C3D5B43AD1C/image-size/medium?v=v2&amp;amp;px=400" alt="Dan_Wroblewski_0-1738223141133.png" title="Dan_Wroblewski_0-1738223141133.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Then when you run (or deploy) you need to specify a destination. I use a destination that ends with the repo ID I want to use, and then I add /root or whatever else I need in the DMS activities when I need to specify a path.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As for the path, yes, I think there is a missing activity allowing you to get folder content with object ID. But you can do it the "old" way directly with Web Service Call with Destination, which you can see examples of if you go to the store and import the template "&lt;SPAN&gt;How to use Document Management Service&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;You'd call the Get Properties API -&amp;nbsp;&lt;A href="https://api.sap.com/api/GetPropertiesApi/path/get_browser__repository_id__root" target="_blank" rel="noopener"&gt;https://api.sap.com/api/GetPropertiesApi/path/get_browser__repository_id__root&lt;/A&gt;&amp;nbsp;and you can filter for just the name.&lt;/P&gt;&lt;P&gt;Here's how it looks in Postman:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Wroblewski_1-1738224486235.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/219002i5D75A83D2CAB08F0/image-dimensions/925x578?v=v2" alt="Dan_Wroblewski_1-1738224486235.png" title="Dan_Wroblewski_1-1738224486235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here's how it looks in a project that gets the folder name:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Wroblewski_2-1738225196401.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/219025iAF7C9D2609F6D98B/image-dimensions/962x463?v=v2" alt="Dan_Wroblewski_2-1738225196401.png" title="Dan_Wroblewski_2-1738225196401.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Perhaps there's an easier way. I'm pretty sure development was working on adding that activity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 08:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14001123#M4901221</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2025-01-30T08:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14001141#M4901225</link>
      <description>Hi Dan, Thanks for your inputs. My doubt is related to destination, we have only one destination for DMS - "Sap_process_automation_document_store". We need to give this destination name?</description>
      <pubDate>Thu, 30 Jan 2025 08:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14001141#M4901225</guid>
      <dc:creator>SandipAgarwalla</dc:creator>
      <dc:date>2025-01-30T08:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14001180#M4901227</link>
      <description>No, you do not have to name it anything special -- though I would try to use the same destination you used for setting up DMS and Process Automation. You select the destination when you deploy or test the automation, so it can be called anything.</description>
      <pubDate>Thu, 30 Jan 2025 08:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14001180#M4901227</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2025-01-30T08:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14002386#M4901367</link>
      <description>&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;Thanks for your reply. So, I added the destination under Control Tower -&amp;gt; Destination. This was missing.&amp;nbsp;I also added another activity in the Automation "Select DMS", and gave the destination under its property.&amp;nbsp;When I run the automation now, I do not get the Destination issue.&lt;/P&gt;&lt;P&gt;However I am getting another issue, "Response Code 405 (Method not allowed", I am using the standard DMS activity to get folder content&amp;nbsp; (well atleast the SAP help docs says so).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SandipAgarwalla_0-1738303886898.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/219615i4B85C16045B613D9/image-size/medium?v=v2&amp;amp;px=400" alt="SandipAgarwalla_0-1738303886898.png" title="SandipAgarwalla_0-1738303886898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 06:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14002386#M4901367</guid>
      <dc:creator>SandipAgarwalla</dc:creator>
      <dc:date>2025-01-31T06:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14002500#M4901386</link>
      <description>Please show your destination URL, and the values you are providing to the Get DMS Folder Content</description>
      <pubDate>Fri, 31 Jan 2025 08:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14002500#M4901386</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2025-01-31T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14002856#M4901438</link>
      <description>&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;Here is the destination set up,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SandipAgarwalla_0-1738330062098.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/219840i3E8D51B72FC91626/image-size/medium?v=v2&amp;amp;px=400" alt="SandipAgarwalla_0-1738330062098.png" title="SandipAgarwalla_0-1738330062098.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Our Repo starts with "a4b82******" .&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Get DMS Folder Content - in the folderPath property, I tried different options but I keep getting 405 method not allowed&lt;/P&gt;&lt;P&gt;Option1: a4b****/TdUra3lLBAc1tM6IkUh9cLkm**** (RepoID/folderID, I got the folder ID from DMS UI)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option2: /repoID/folderID&lt;/P&gt;&lt;P&gt;Option3: folderID (with &amp;amp; without /)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 13:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14002856#M4901438</guid>
      <dc:creator>SandipAgarwalla</dc:creator>
      <dc:date>2025-01-31T13:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14003964#M4901533</link>
      <description>&lt;P&gt;You are getting 405 because you are missing "root" in the path. The underlying API for this activity (I believe) is:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;https://{{endpoint}}/browser/{{repo}}/root/myfolder&lt;/LI-CODE&gt;&lt;P&gt;I cannot see the full destination URL, but I assume it is not there. In any event, I would not put root in the destination but put it in the path of the activity, as then you can reuse the same destination for other purposes.&lt;/P&gt;&lt;P&gt;Also, this activity takes a path, not an object ID. When you said "folder ID" I assumed you meant objectID.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2025 09:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14003964#M4901533</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2025-02-02T09:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14004978#M4901739</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;The destination url does not have 'root' in it, this is how it looks&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/" target="_blank"&gt;https://&amp;lt;host&amp;gt;/browser/repoID&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, when I said folderID - it is the object ID which we get once we upload a file via the SPA forms. Example of it -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;spa-res:cmis:folderid:PiZaWRq8AYvDLC83fQWAbOBCcUtpiqDZ-2P4D6oeprI&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So in the folderPath property of "Get DMS Folder Content" - I tried the following options&lt;/P&gt;&lt;P&gt;1) /root/&lt;STRONG&gt;&lt;EM&gt;PiZaWRq8AYvDLC83fQWAbOBCcUtpiqDZ-2P4D6oeprI&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) root/&lt;STRONG&gt;&lt;EM&gt;PiZaWRq8AYvDLC83fQWAbOBCcUtpiqDZ-2P4D6oeprI&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;neither worked, but this time I get a different error - 404 not found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SandipAgarwalla_2-1738567146660.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/220946iB75CF24602F5070B/image-size/medium?v=v2&amp;amp;px=400" alt="SandipAgarwalla_2-1738567146660.png" title="SandipAgarwalla_2-1738567146660.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 07:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14004978#M4901739</guid>
      <dc:creator>SandipAgarwalla</dc:creator>
      <dc:date>2025-02-03T07:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14004986#M4901741</link>
      <description>&lt;P&gt;You can try knocking a square peg in a round whole but it won't work. Not your fault: Some of the DMS activities need a folder and some need an objectID.&lt;/P&gt;&lt;P&gt;This needs a folder.&lt;/P&gt;&lt;P&gt;Until they add the option for the objectID, you will have to convert the objectID to a folder, using the Get Properties API.&lt;/P&gt;&lt;P&gt;Go into the store and create a project from the template "How to Use Document Management Service", which provides the "old" way of doing DMS calls. There is an automation called "Get folder content", which has 2 activities -- custom script and call web service with destination. This shows you how to call DMS by creating your own call. Modify the call according to the API ... it should be quite simple.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Wroblewski_0-1738567948024.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/220947i4BE23430849CFEDA/image-dimensions/1010x714?v=v2" alt="Dan_Wroblewski_0-1738567948024.png" title="Dan_Wroblewski_0-1738567948024.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the API for Get Properties:&amp;nbsp;&lt;A href="https://api.sap.com/api/GetPropertiesApi/path/get_browser__repository_id__root" target="_blank" rel="noopener"&gt;https://api.sap.com/api/GetPropertiesApi/path/get_browser__repository_id__root&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not that you need it here, but you only need the name so you could add the query parameter filter=cmis:name to return only the name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14004986#M4901741</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2025-02-03T09:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting DMS Folder Content in SAP Build Process...</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14005202#M4901763</link>
      <description>&lt;P&gt;I have now created a blog that explains this:&amp;nbsp;&lt;A class="" href="https://community.sap.com/t5/technology-blogs-by-sap/convert-dms-folder-id-to-name-in-automation/ba-p/14005092" target="_blank" rel="noopener"&gt;Convert DMS Folder ID to Name in Automation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enjoy &lt;span class="lia-unicode-emoji" title=":grinning_cat_face:"&gt;😺&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-getting-dms-folder-content-in-sap-build-process-automation-undefined/qaa-p/14005202#M4901763</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2025-02-03T09:47:55Z</dc:date>
    </item>
  </channel>
</rss>

