Get-NectarLocation
    • 15 May 2023
    • 1 Minute to read
    • Contributors
    • Dark
      Light
    • PDF

    Get-NectarLocation

    • Dark
      Light
    • PDF

    Article Summary

    Returns a list of Nectar DXP locations

    Syntax

    Get-NectarLocation
      -SearchQuery  <String>
      -TenantName  <String>
      -ResultSize  <Int32>
    

    Examples

    Example 1

    Get-NectarLocation
    

    Returns the first 10 locations

    Example 2

    Get-NectarLocation -ResultSize 100
    

    Returns the first 100 locations

    Example 3

    Get-NectarLocation -LocationName Location2
    

    Returns up to 10 locations that contains "location2" anywhere in the name. The search is not case-sensitive. This example would return Location2, Location20, Location214, MyLocation299 etc

    Example 4

    Get-NectarLocation -LocationName ^Location2
    

    Returns up to 10 locations that starts with "location2" in the name. The search is not case-sensitive. This example would return Location2, Location20, Location214 etc, but NOT MyLocation299

    Example 5

    Get-NectarLocation -LocationName ^Location2$
    

    Returns a location explicitly named "Location2". The search is not case-sensitive.

    Parameters

    -SearchQuery <String>
    The name of the location to get information on based on either network, networkName, City, StreetAddress, State, SiteName or SiteCode. Can be a partial match, and may return more than one entry.

    ParameterValue
    Requiredfalse
    Position1
    Requiredfalse
    Default ValueNone
    Accept pipeline input?false
    Accept wildcard characters?false

    -TenantName <String>
    The name of the Nectar DXP tenant. Used in multi-tenant configurations.

    ParameterValue
    Requiredfalse
    Position2
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -ResultSize <Int32>
    The number of results to return. Defaults to 1000.

    ParameterValue
    Requiredfalse
    Position3
    Requiredfalse
    Default Value5000
    Accept pipeline input?false
    Accept wildcard characters?false

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses