Hello All,

Hello All,

running the following code in Powershell to add an Element in AF:

Add-AFElement -Name "Test_CHILD_powershell" -AFElement (Get-AFElement -Name "Montreal" -AFDatabase (Get-AFDatabase -Name "AF_startup" -AFServer (Get-AFServer -Name "DESKTOP-56APJ5L")))

 

The code runs, however, when I go back to AF explorer (Pi sys. explorer) I don't see any changes. The code runs successfully the first time, and if you run it a second time it will prompt an error saying that the element already exists.

Somehow it executes in powershell but no changes are seen in AF. What could be the issue? Thanks in advance.

 

Rimon,

Process Analyst, BKOai

Parents Reply
  • Hi, I opened my machine today and no change has been seen - ran the above code with "-CheckIn True" at the end of it and it ran successfully - Again, no change is seen.

    I am sure about the database and sure about the AFserver, and I access AF as an admin.

    Creating a new element within AF works perfect, however i wish to automate the creation of an entire hierarchy through powershell with a database graphing algorithm.

     

    Any help is appreciated. Thanks

Children
No Data