Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmdlet Find-IshConditionValue returning denormalized Condition Name/Value combinations #176

Open
ddemeyer opened this issue Nov 14, 2023 · 0 comments

Comments

@ddemeyer
Copy link
Contributor

Quick drop from my personal notes to share an idea on community.rws.com... inspired by https://community.rws.com/product-groups/tridion/tridion-docs/f/forum/45257/can-condition-manager-data-be-manipulated-via-ishremote/160303?focus=true

We would actually have a use case for ISHRemote and condition management, too. We use a lot of conditions, and the lack of a search function in Condition Manager/Condition Builder makes it very difficult to find existing conditions. The ability to pull and search the master list via ISHRemote would at least fill the gap until RWS adds search to Condition Manager.

The building block cmdlets are there, and if I would wrap them up it would be a Find-IShConditionValue cmdlet

  1. Use Get-IShDocumentObjData to retrieve the xml of the latest ISHCONDITIONMANAGEMENT object under System area
  2. Load the resulting Condition Management xml (it holds all the data you see in Condition Manager)
  3. Find-IShConditionValue -Filter ThisCouldBeAnyConditionNameOrConditionValue or perhaps two filters. These are in the end XPath select expressions on the Xml, you would to find matching xml nodes to convert to some IShConditionValue object (becomes a table row)
  4. Result is a ConditionValue object that actual returns the matched ConditionName and ConditionValue and perhaps some other meaningful data?

So a result could be a table rendering denormalized Condition Name/Value combinations looking like

ConditionName ConditionValue Anything else?
COOLING AIR ?
COOLING WATER ?
COOLING FREON ?
ENGINE DIESEL ?

From there you can do what you want? Push them in a UI, or have them in an Excel file? Or...

Note

  • There is no intention for an Add- or Set- or Remove cmdlet. Only a read-only operation.
@ddemeyer ddemeyer changed the title Add cmdlet Find-IShConditionValue returning denoarmalized Condition Name/Value combinations Add cmdlet Find-IshConditionValue returning denormalized Condition Name/Value combinations Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant