본문으로 건너뛰기
모든 도구

m365_save_attachment

Microsoft 365 · Windows

효과: 쓰기. 상태: 조건부 제공.

‘조건부 제공’은 도구가 버전, 플랫폼, 권한, 계정 또는 설정에 따라 달라질 수 있음을 뜻하며 모든 설치에서 활성화되었다는 의미는 아닙니다.

Windows

목적

Microsoft 365 이메일의 첨부 파일을 폴더에 저장합니다. 전부 저장하거나, attachment_id(m365_read_email이 나열하는 id)로 하나만 저장합니다. 첨부 파일이 같은 이름의 파일을 대체하면 LMCP가 먼저 그 파일의 사본을 (백업 폴더에) 보관하고 위치를 응답에 알려 줍니다. 첨부된 Outlook 항목이나 클라우드 파일 링크는 파일이 아니므로 저장되지 않으며, 응답에서 그렇게 알려 줍니다. 클래식 Outlook에는 outlook_save_attachment를 사용하세요.

필수 입력

입력 이름은 도구가 요구하는 정확한 형태로 유지됩니다. 영문 정식 기술 정의는 아래 펼칠 수 있는 스키마에 있습니다.

권한 및 확인

스키마에 명시적 확인 매개변수가 있습니다. 미리보기를 검토하고 플랫폼 계약에 따라 실제 작업을 승인하세요.

영문 정식 기술 스키마 — Windows
{
  "properties": {
    "account": {
      "description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
      "type": "string"
    },
    "attachment_id": {
      "description": "Save only this attachment (an id m365_read_email lists). Omit it to save all of them.",
      "type": "string"
    },
    "confirm": {
      "description": "Ignored; kept for older clients.",
      "type": "boolean"
    },
    "id": {
      "description": "The email message ID from m365_list_emails, m365_search_emails or m365_read_email",
      "type": "string"
    },
    "path": {
      "description": "Folder to save the attachments to",
      "type": "string"
    }
  },
  "required": [
    "id",
    "path"
  ],
  "type": "object"
}

문서 예시

m365_save_attachment 문서 예시입니다. 이 예시를 실행하지 마세요. 표시된 인수는 가상 데이터 세트에 속합니다. 실제 호출 전에 실제 식별자를 확인하고 승인을 받으세요.

{
  "confirm": false,
  "id": "demo-item-001",
  "path": "C:\\Users\\demo\\Documents\\Attachments"
}