Skip to main content

set-fetchxml

Apply a complete FetchXML document to a view, replacing the existing fetchxml.

Expected format (file must have <fetch> as root element): <fetch version="1.0" output-format="xml-platform" mapping="logical" no-lock="false"> <entity name="account"> <attribute name="name" /> <order attribute="name" descending="false" /> <filter type="and"> <condition attribute="statecode" operator="eq" value="0" /> </filter> </entity> </fetch>

Usage​

ppds views set-fetchxml [options]

Options​

LongShortTypeDefaultDescription
--correlation-idstringCorrelation ID for distributed tracing
--debugboolShow trace-level diagnostic output
--entitystring[Required] Entity logical name (e.g., account)
--environment-estringOverride the environment URL.
--fetchxmlstring[Required] Path to a file containing a complete FetchXML document with <fetch> root element.
--output-format-fOutputFormatOutput format
--profile-pstringAuthentication profile name
--publishboolPublish the entity after the operation
--quiet-qboolShow only warnings and errors
--solutionstringAdd the view to this solution after the operation
--verbose-vboolShow detailed output including debug messages
--view-vstring[Required] View name or ID