Skip navigation
All Places > All Things PI - Ask, Discuss, Connect > Ideas

Powershell - Add the ability to get Attributes or Elements by Category

score 0
You have not voted Submitted
Originally posted on UserVoice

Add the ability to retrieve Attributes and Elements by category for  Powewhell command-lets.

Example 1:

$cat = Get-AFCategory -Name "Product A Manufacturing" -Element -AFDatabase $afDB

get-AFElement -category $cat -AFDatabase $afDB

Get a list of all the elements in category "Product A Manufacturing"

Example 2:

$cat = Get-AFCategory -Name "KPIs" -Attribute -AFDatabase $afDB

Get-AFAttribute -category $cat

Get a list of all attributes in category "KPIs"

Comments