Skip to content

creating field via xml #3

@SimonFox90LT

Description

@SimonFox90LT

Hi, i'm trying to create a lookup filtered field using powershell by xml..
i've successfully created the field, but the property "Apply Query Filter" is't filled as configured.

maybe i have to adjust the QueryFilterAsString property value.. some help to this?

this is the xml used:
<Field Type='FilteredLookupField' DisplayName='TEST' StaticName='TEST' Name='TEST' Required='FALSE' EnforceUniqueValues='FALSE' List='56f4b59d-3b55-45ea-931f-94d7dd0efc5d' ShowField='fa564e0f-0c70-4ab9-b863-0177e6ddd247' Group='Test' ID='{92f02f00-ff56-4332-9122-9156cf6b66b0}' WebId='ffadd85b-9d24-440d-97ae-500460afc5c6' Description='test'> <Customization> <ArrayOfProperty> <Property> <Name>QueryFilterAsString</Name> <Value> &amp;lt;Where&amp;gt;&amp;lt;Contains&amp;gt;&amp;lt;FieldRef Name=&amp;#39;Documenti_x0020_disponibili&amp;#39; /&amp;gt;&amp;lt;Value Type=&amp;#39;LookupMulti&amp;#39;&amp;gt;Manuale&amp;lt;/Value&amp;gt;&amp;lt;/Contains&amp;gt;&amp;lt;/Where&amp;gt;</Value> </Property> <Property> <Name>ListViewFilter</Name> <Value></Value> </Property> <Property> <Name>SupportsMultipleValues</Name> <Value>False</Value> </Property> <Property> <Name>IsFilterRecursive</Name> <Value>False</Value> </Property> </ArrayOfProperty> </Customization> </Field>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions