powershell mail and sort

Elmata 136 Reputation points
2021-01-11T16:13:16.36+00:00

Hello,
With powershell I would like to send an email to a sharepoint local group.
I would like to know too how can I make a sort-object on sharepoint value (order by column "Title" for example) ?
$items = $list.Items
$known = $items | where {($["Decision"] -ceq "Known")}
$unknown = $items | where {($
["Decision"] -ceq "Unknown")}
Regards,

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,616 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,537 questions
0 comments No comments
{count} votes

Accepted answer
  1. Elmata 136 Reputation points
    2021-01-11T17:29:13.333+00:00

    I found for the sort way : | Sort-Object { $_["Title"] }
    Looking for the email...

    [EDIT]
    Solution here : http://www.dotnetsharepoint.com/2017/03/send-email-to-members-of-sharepoint.html


1 additional answer

Sort by: Most helpful
  1. Elmata 136 Reputation points
    2021-01-11T17:13:51.683+00:00

    I found for the sort way : | Sort-Object { $_["Title"] }
    Looking for the email...


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.