Use MP Enumeration List item as criteria for Query Results Prompt
So to sum up I would like to use the enumeration list result to set criteria for the department property of the active directory users class.
I have included some screenshots to show how the enumeration list does not show available criteria.
Best Answers
-
Larry_Ellis Customer IT Monkey ✭Tom,
thanks for for the follow up. I'm new to creating custom lists. How do I create it as standard instead of enumeration? Is this with the authoring tool or the list builder tool?
thanks0 -
Brian_Wiest Customer Super IT Monkey ✭✭✭✭✭This is something I fight all the time. Where I have 98 "Departments" for the 23K users
Where I have the Asset Management app installed but not configured but will look at @Tom_Hyde suggestion.
How I work with this issue is using the simple list function but after creating the RO I export the management pack and update the values via copy/paste.
How to
Create the RO and for Department use Simple list and add one entry FindMe
Leave the RO in draft state
Export the Management Pack
Open in pack in a editor
Perform a search for FindMe and it should bring you to the location of<AddressableOutputs><AddressableOutput OutputName="ListValue" OutputType="string" /></AddressableOutputs><Configuration><Details>
<ListValue DisplayName="FindMe" IsDefault="false" /><Cireson><Show When="Always" /></Cireson></Details></Configuration>
Then update with ListValue with your required options (I keep an excel file with using concat to build the full list)<AddressableOutputs><AddressableOutput OutputName="ListValue" OutputType="string" /></AddressableOutputs><Configuration><Details>
<ListValue DisplayName="Department 1" IsDefault="false" />
<ListValue DisplayName="Department 2" IsDefault="false" />
....
<ListValue DisplayName="Department 200" IsDefault="false" /><Cireson><Show When="Always" /></Cireson></Details></Configuration>
Save and import your Management pack and it will now show all the department is the simple list drop down.
Publish your RO.
HTH5
Answers
Have you considered putting your departments in as a 'Standard' instead of a enumeration list?
I'd suggest creating each department within here and create a new Standard List Type called 'Departments' - This can be then used to scope out the standards within the RO.
You will then be able to set criteria for the department property of the active directory users class.
Hope this helps.
Thanks
Tom
thanks for for the follow up. I'm new to creating custom lists. How do I create it as standard instead of enumeration? Is this with the authoring tool or the list builder tool?
thanks
Unfortunately without the app it wont be possible to create a 'Standard' this is just something that we were able to utilise as part of the app. Someone else on here may be able to advise otherwise!
Where I have the Asset Management app installed but not configured but will look at @Tom_Hyde suggestion.
How I work with this issue is using the simple list function but after creating the RO I export the management pack and update the values via copy/paste.
How to
Create the RO and for Department use Simple list and add one entry FindMe
Leave the RO in draft state
Export the Management Pack
Open in pack in a editor
Perform a search for FindMe and it should bring you to the location of
<ListValue DisplayName="FindMe" IsDefault="false" />
Then update with ListValue with your required options (I keep an excel file with using concat to build the full list)
<ListValue DisplayName="Department 1" IsDefault="false" />
<ListValue DisplayName="Department 2" IsDefault="false" />
....
<ListValue DisplayName="Department 200" IsDefault="false" />
Save and import your Management pack and it will now show all the department is the simple list drop down.
Publish your RO.
HTH
You still have to export and import the xml to modify
If you are referring to powershell to the RO without exporting, you can use the export-scmanagmentpack and import-scmanagmentpack to peform the export/import as part of the script.
I prefer to do that manually as the import will report errors if the xml is malformed.