<?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: Specify folder in GetAction in VMware Aria Automation Tools Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Specify-folder-in-GetAction/m-p/1860763#M14325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For browsing a tree, you can use the presentation property "Specify a root object to be shown in the chooser", and attach the "Templates" folder to it.&lt;/P&gt;&lt;P&gt;For the list case, you can the presentation property "Predefined list of elements", and attach to it an action that returns the array of elements to populate in the list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Aug 2019 20:34:28 GMT</pubDate>
    <dc:creator>iiliev</dc:creator>
    <dc:date>2019-08-12T20:34:28Z</dc:date>
    <item>
      <title>Specify folder in GetAction</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Specify-folder-in-GetAction/m-p/1860762#M14324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vROrchestrator 7.5 - Working on a "Build From Template" workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have all of our templates in a folder called "Templates"&lt;/P&gt;&lt;P&gt;In the Presentation, I have an entry/variable to choose the template:&lt;/P&gt;&lt;P&gt;GetAction("com.vmware.library.vc.vm","getFolder").call()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select value as "tree" it starts at the top with the vCenter plug-in and I have to drill all the way down to the Templates folder.&lt;/P&gt;&lt;P&gt;If I select value as "list" it will enumerate all of the VMs and I have to start typing a template name to filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I specify to start with the "Templates" folder either for browsing by Tree (preferred), or by List, thereby limiting the number of choices to choose from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 13:31:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Specify-folder-in-GetAction/m-p/1860762#M14324</guid>
      <dc:creator>TBKing</dc:creator>
      <dc:date>2019-08-12T13:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Specify folder in GetAction</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Specify-folder-in-GetAction/m-p/1860763#M14325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For browsing a tree, you can use the presentation property "Specify a root object to be shown in the chooser", and attach the "Templates" folder to it.&lt;/P&gt;&lt;P&gt;For the list case, you can the presentation property "Predefined list of elements", and attach to it an action that returns the array of elements to populate in the list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 20:34:28 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Specify-folder-in-GetAction/m-p/1860763#M14325</guid>
      <dc:creator>iiliev</dc:creator>
      <dc:date>2019-08-12T20:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Specify folder in GetAction</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Specify-folder-in-GetAction/m-p/1860764#M14326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; It's the "attach" part I was having trouble with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(with the help of my TAM) I created a variable "#templateFolder", type VC:VmFolder and set to Templates.&lt;/P&gt;&lt;P&gt;Then in the Presentation, Predefined list of elements&lt;/P&gt;&lt;P&gt;GetAction("com.vmware.library.vc.folder","getAllVirtualMachinesByFolder").call(#templateFolder)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;---------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Was it helpful? &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Let us know by completing &lt;/SPAN&gt;&lt;A href="https://insights.vmware.com/cgi-bin/qwebcorporate.dll?idx=4RA39B&amp;amp;source=vRealize"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #2989c5;"&gt;this short survey here&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:03:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Specify-folder-in-GetAction/m-p/1860764#M14326</guid>
      <dc:creator>TBKing</dc:creator>
      <dc:date>2019-08-13T15:03:02Z</dc:date>
    </item>
  </channel>
</rss>

