<?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: run a branch project sas enterprise guide with powershell in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/run-a-branch-project-sas-enterprise-guide-with-powershell/m-p/579329#M34389</link>
    <description>Hello Casey,&lt;BR /&gt;&lt;BR /&gt;Thank you for your answer. the projects are organized so that in a process flow I have several branches that correspond either to a quarterly monthly program ... and I wanted to execute only part of the branches. in digging I found that the execution was fessait either by process flow or project shot I reorganized my projects by process flow.&lt;BR /&gt;&lt;BR /&gt;Isek</description>
    <pubDate>Tue, 06 Aug 2019 11:55:51 GMT</pubDate>
    <dc:creator>isek</dc:creator>
    <dc:date>2019-08-06T11:55:51Z</dc:date>
    <item>
      <title>run a branch project sas enterprise guide with powershell</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/run-a-branch-project-sas-enterprise-guide-with-powershell/m-p/571340#M34124</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a project sas enterprise guide which I want to run two branchs. I have ten branchs.&lt;/P&gt;&lt;P&gt;Here is my code, but it does not work.&lt;/P&gt;&lt;P&gt;Can somebody help me please&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;# Launch the application using the registered prog ID
$eguideApp = New-Object -comObject SASEGObjectModel.Application.7.1

$chemin = "C:\Users\Desktop\test.egp"

$project = $eguideApp.Open($chemin,"")

# Show all of the process flows in the project
$pfCollection = $project.ContainerCollection

$pf=$pfCollection.item("Connexion") # Connexion is name of my branch
Write-Host " first branch " $pf.Name
# To RUN a process flow, simply use $pf.Run()
$pf.Run()

$pf=$pfCollection.item("trim1") # trim1 is name of my branch
Write-Host " second branch " $pf.Name
# To RUN a process flow, simply use $pf.Run()
$pf.Run()

$project.Close()

$eguideApp.Quit()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 09:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/run-a-branch-project-sas-enterprise-guide-with-powershell/m-p/571340#M34124</guid>
      <dc:creator>isek</dc:creator>
      <dc:date>2019-07-05T09:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: run a branch project sas enterprise guide with powershell</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/run-a-branch-project-sas-enterprise-guide-with-powershell/m-p/579269#M34387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278504"&gt;@isek&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your PowerShell script works fine for me -- it runs the two desired process flows.&amp;nbsp; (I used EG 7.15 HF8.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: The script as written runs the two flows, but does not save the project, so you won't see any difference in your project.&amp;nbsp; If you want the results of the running of the process flows to be stored in the project, make sure to save the project in your script (ex. $project.Save()) before closing it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note 2: If you have 32-bit EG installed, make sure you are running the PowerShell script with the x86 version of PowerShell.&amp;nbsp; Similarly, if you have 64-bit EG installed, use the x64 version of PowerShell to run the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 04:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/run-a-branch-project-sas-enterprise-guide-with-powershell/m-p/579269#M34387</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-08-06T04:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: run a branch project sas enterprise guide with powershell</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/run-a-branch-project-sas-enterprise-guide-with-powershell/m-p/579329#M34389</link>
      <description>Hello Casey,&lt;BR /&gt;&lt;BR /&gt;Thank you for your answer. the projects are organized so that in a process flow I have several branches that correspond either to a quarterly monthly program ... and I wanted to execute only part of the branches. in digging I found that the execution was fessait either by process flow or project shot I reorganized my projects by process flow.&lt;BR /&gt;&lt;BR /&gt;Isek</description>
      <pubDate>Tue, 06 Aug 2019 11:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/run-a-branch-project-sas-enterprise-guide-with-powershell/m-p/579329#M34389</guid>
      <dc:creator>isek</dc:creator>
      <dc:date>2019-08-06T11:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: run a branch project sas enterprise guide with powershell</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/run-a-branch-project-sas-enterprise-guide-with-powershell/m-p/579506#M34409</link>
      <description>&lt;P&gt;Hi Isek,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, execution (via scripting) is by process flow, project, or individual items.&amp;nbsp; There isn't an easy way to run just a single branch in a process flow via the scripting interface.&amp;nbsp; I'm glad organizing by process flow allows you to accomplish your goal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 21:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/run-a-branch-project-sas-enterprise-guide-with-powershell/m-p/579506#M34409</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-08-06T21:20:37Z</dc:date>
    </item>
  </channel>
</rss>

