본문 바로가기
IT 전산/유용한 정보

MS Forms 에서 제출된 응답의 첨부파일을 Automate를 통해 SharePoint에 입력하는 방법

by 멍뭉부 2024. 9. 9.
728x90

출처 : https://plumsail.com/blog/save-microsoft-forms-attachments-to-sharepoint/

 

Save Microsoft Forms attachments to SharePoint with Power Automate

Learn how to automate the process of saving Microsoft Forms attachments to SharePoint using Power Automate. Follow our detailed guide to streamline your workflow.

plumsail.com

 

MS Forms에서 제출된 응답에 대해 첨부파일을 Automate로 어떻게 처리하는지 몰라서 굉장히 당황했는데요..

검색해봤더니 위와 같은 방법이 있었습니다.

 

1. Automate 내 트리거 설정 및 응답 데이터 가져오기

응답이 제출되는 경우 트리거 되도록 해놓고, 응답 데이터를 가져오기 합니다.

 

2. 이제 핵심인 첨부파일 가져오기

먼저 JSON 파서를 통해 아래와 같이 구문을 붙여넣습니다.

그리고 나서 OneDrive Business - 파일 콘텐츠 가져오기 단계를 추가한 이후 JSON 파서에서 추출된 ID값을 넣습니다.
(Forms에서 제출된 파일은 원드라이브에 저장되기 때문)

 

이후 쉐어포인트 첨부파일 추가 단계에서 Json 파서에서 추출된 Name값, Onedrive 파일 콘텐츠 가져오기의 콘텐츠값을 넣으면 끝입니다.

 

[JSON 파서 구문]

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "name": {
                "type": "string"
            },
            "link": {
                "type": "string"
            },
            "id": {
                "type": "string"
            },
            "type": {},
            "size": {
                "type": "integer"
            },
            "referenceId": {
                "type": "string"
            },
            "driveId": {
                "type": "string"
            },
            "status": {
                "type": "integer"
            },
            "uploadSessionUrl": {}
        },
        "required": [
            "name",
            "link",
            "id",
            "type",
            "size",
            "referenceId",
            "driveId",
            "status",
            "uploadSessionUrl"
        ]
    }
}



728x90