How To Extract Attachments In Office 365 Mailbox Using Microsoft Graph API Part 2: Create the script

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 22

  • @DarkLurker_69
    @DarkLurker_69 Год назад

    Thank you! This video is to the point and the script works great. It's also a good jumping-off point for other tasks related to email, and is much easier to comprehend than the old EWS way of doing things.

  • @CoreView_rm
    @CoreView_rm Год назад

    I am trying to figure out how to this to export the attachments to a SharePoint Online Document Library. Do you know of a way to cache the attachment files to then be referenced for exporting to SPO through the PNP cmdlet, Add-PnPFile?

  • @DarkLurker_69
    @DarkLurker_69 Год назад

    Is there an "easy" way to move the email to a specific user-created folder instead of the Well-Known deleteditems folder?

    • @DarkLurker_69
      @DarkLurker_69 Год назад

      I figured it out:
      $SomeFolderID=((Invoke-RestMethod -URI $baseurl -Headers @{Authorization=("bearer {0}" -f $AccessToken)}).value | where {$_.displayname -eq $SomeFolder}).ID
      then replace $deleteditemsfolderid with $SomeFolderID down at the bottom of the loop before calling the move action.

  • @chgopinath2371
    @chgopinath2371 2 года назад +1

    Great video, could you please help me how to send an encrypted pdf file over the email using ms graph.

  • @rachidahggoune8969
    @rachidahggoune8969 2 года назад +2

    Bonjour, Bravo pour ce travail Merci.
    pouvez vous m'envoyer le script?

  • @kothainayaki5933
    @kothainayaki5933 2 года назад

    Could you kindly help me with the error I am getting when I try this script...
    New-MsalClientApplication : Exception calling "Build" with "0" argument(s): "Error: ClientId is not a GUID. "
    The property 'AppConfig' cannot be found on this object. Verify that the property exists.

    • @bernardmwanza1628
      @bernardmwanza1628  2 года назад

      There's a problem with your Post request arguments parsing. I can email you the entire script. share your email kindly.

    • @kothainayaki5933
      @kothainayaki5933 2 года назад

      ​@@bernardmwanza1628 It worked :) Thanks for your video

  • @nigelrothwell6281
    @nigelrothwell6281 2 года назад +1

    do you have the script itself?
    👌

  • @mattramezanian2646
    @mattramezanian2646 8 месяцев назад

    Hi, thank you for this helpful video. May I have the scripts please? I sent you an email.