Set-SPOLookupField

Synopsis

Hooks up a lookup field to the specified list and sets the field to display

Syntax

Set-SPOLookupField -Context <ClientContext> -Web <String> -Field <String> -List <String> -TargetField <String> [<CommonParameters>]

Description

Parameters

-Context <ClientContext>

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Web <String>

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Field <String>

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-List <String>

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-TargetField <String>

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Notes

Examples

Set a lookup field to pull from a list

PS C:\> Set-SPOLookupField -Context $ctx -Web "/sites/sitecolurl/Tools" -Field "LookupField" -List "ListName" -TargetField "DisplayField"

Related links

Last edited Aug 5, 2014 at 1:07 AM by provokesolutions, version 9

Comments

No comments yet.