How do I change both the URL and description of a "Link" field using a Powershell script?
In the past I've used the following:
$newitem = $splist.Items.Add()
$newitem["Title"] = $somestuff
How do I change both the URL and description of a "Link" field using a Powershell script?
In the past I've used the following:
$newitem = $splist.Items.Add()
$newitem["Title"] = $somestuff
Extending your example above:
$newitem = $splist.Items.Add()
$somestuff = "http://www.google.com, Google"
$newitem["Link"] = $somestuff
That will, assuming "Link" is a type of "Hyperlink or Picture" (Hyperlink), create a link that says Google and links to http://www.google.com