Powershell command: Batch edit "Website" data entries

Powershell command: Batch edit "Website" data entries

avatar

Good day

I would like to batch edit some entries with a custom PowerShell command.

So for changing the name of all selected data entries there is a sample within the powershell command window:

$connection.Name = "ModifiedName"; 
$RDM.Save();


What is the correct property (instead of .Name) to use, so I can change the field "Website" within a Website Data Entry.
I have already tried .Host and .URL with no success. I have also tried.Website but it throws an error.

I could not find any documentation about all existing properties of a data entry.

Thanks and regards,
Alex

All Comments (2)

avatar

Found my solution myself.

The property which I need was .HostUrl and/or .HostUrlMain.


For other uses in the future:
I typed the following in to the Custom Powershell Command Window.

$connection | Format-List | Out-File -FilePath "C:\temp\out.txt"

This generated the out.txt file in my local C:\ and I got a list of all properties.

Regards,
Alex

avatar

Hello Alex,

glad you've found the solution - it's also possible to get the values with the Clipboard function described here

Regards,
Min