Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 655 Bytes

File metadata and controls

30 lines (25 loc) · 655 Bytes
description Automatically generated file. DO NOT MODIFY
Import-Module Microsoft.Graph.Groups

$params = @{
	post = @{
		body = @{
			contentType = "text"
			content = "I attached a reference to a file on OneDrive."
		}
		attachments = @(
			@{
				"@odata.type" = "#microsoft.graph.referenceAttachment"
				name = "Personal pictures"
				sourceUrl = "https://contoso.com/personal/mario_contoso_net/Documents/Pics"
				providerType = "oneDriveConsumer"
				permission = "Edit"
				isFolder = "True"
			}
		)
	}
}

Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params