Office-docs-powershell: New-ComplianceTag -FilePlanProperty

Created on 1 Apr 2019  Â·  12Comments  Â·  Source: MicrosoftDocs/office-docs-powershell

I would like to add new File Plan Properties and configure these as a bulk import the powershell seems to be partly there but it is hard to work out what it is expecting.

I have tried entering the fileplanpropertydepartment and adding a new department but this crashes the powershell?
[Enter feedback here]


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

exchange

Most helpful comment

@beigewell, the description is basically an example. Use the Get-FilePlanProperty* cmdlets to get the name values, then use the two commands as descfribed to store the values in a variable to use for the parameter.

I realize the cmdlet reference topics for the 27 file plan property cmdlets aren't live yet; I'm looking into it. When those publish, they will contain examples of how to create the file plan properties themselves.

All 12 comments

We have been trying to get this to work for sometime and the fileplan functionality is undocumented and fails to work as expected. Add items via UI, export using powershell and try to run to. Import same data fails its own validation. This needs fixing.

@officedocsbot assign @yogkumgit

Thank you @chrisda!!

Do we have some information to add in the description area?

can this be documented with examples as I am still getting failures on my tenant? We need to powershell all the fileplan properties and add descriptions

Name: Administration
WARNING: An unexpected error has occurred and a Watson dump is being generated: Failed to parse File plan
metadata value.

error
fileplan

Seeing same - where can add in properties (as per the @beigewell's screenshot) via UI but there's no apparent way to manage via powershell for fileplan properties. Any news, details, description would be useful.

@chrisda - I've systematically been trying every variation of switches, parameter variables and strings based on -FilePlanProperty flag. Export of a tag which has the FilePlanMetadata added via the ComplianceCentre UI shows pared Descriptor and Value e.g.

{"Settings":[{"Key":"FilePlanPropertyDepartment","Value":"Finance"},{"Key":"FilePlanPropertyCitation","Value":"Commodity Exchange Act"},{"Key":"FilePlanPropertyReferenceId","Value":"1"},
{"Key":"FilePlanPropertyAuthority","Value":"Business"},{"Key":"FilePlanPropertyCategory","Value":"Administration"}]}

  • but there is apparently no combination with which to create/update these on a ComplianceTag using PowerShell. The documentation in gitHub is the same as on docs - neither of which have accurate, or useful examples or explanation on how to use this flag. Is there any progress on atleast updating the documentation to be more complete - or even working example of how to utilise it?

@beigewell, @bongo-ho, I received information about valid values for FilePlanProperty, and I've updated the topic. The syntax is very complex.

Thanks @chrisda Is it possible to get one example? I can see the update to -FilePlanProperty
{{ Fill FilePlanProperty Description }} on the docs page or have you updated the valid values somewhere else?

@beigewell, the description is basically an example. Use the Get-FilePlanProperty* cmdlets to get the name values, then use the two commands as descfribed to store the values in a variable to use for the parameter.

I realize the cmdlet reference topics for the 27 file plan property cmdlets aren't live yet; I'm looking into it. When those publish, they will contain examples of how to create the file plan properties themselves.

@chrisda @bongo-ho brilliant thanks I’ll check it out happy Easter

Thanks @chrisda .
I understand that were missing documentation, but all the commands are available when run them. I've been working on script for while, so slotting in the -FilePlanProperty wasn't difficult. Have found an issue with -ReferenceId attribute.

Adding metadata via UI for ReferenceId will block the user adding duplicates:
image

The ComplianceCentre FilePlan UI guides you to create an unique ReferenceId per item, although no constraints on format (its a string). This is acceptable when using number-referencing convention.

Via powershell the command errors if you DONT use an existing ReferenceId when creating a new label, or when update using "Set-"
image

I have tried multiple variations this morning and proven it's not script reference, but the command and incorrect validation on service.

Q: Do we raise a bug here? Or is this a separate issue?

@chrisda @beigewell I've gone ahead and posted a new issue with bit more detail about reproducing issues. See: https://github.com/MicrosoftDocs/office-docs-powershell/issues/3251.

Thanks for help with this Chris

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TobieFysh picture TobieFysh  Â·  3Comments

mrik23 picture mrik23  Â·  5Comments

savusca picture savusca  Â·  4Comments

Staffanb88 picture Staffanb88  Â·  3Comments

tomresing picture tomresing  Â·  5Comments