{"id":71830,"date":"2024-12-13T11:30:29","date_gmt":"2024-12-13T02:30:29","guid":{"rendered":"https:\/\/support.questetra.com\/?p=71830"},"modified":"2024-12-19T14:25:00","modified_gmt":"2024-12-19T05:25:00","slug":"googledrive-permissioncreate","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/bpmn-icons\/googledrive-permissioncreate\/","title":{"rendered":"Google Drive: Create Shared Link"},"content":{"rendered":"\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"58\" data-attachment-id=\"113160\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/how-to-use-timer-start-event\/attachment\/advanced-banner-new-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?fit=1200%2C68&amp;ssl=1\" data-orig-size=\"1200,68\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"advanced-banner-new-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?fit=1024%2C58&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en-1024x58.png?resize=1024%2C58&#038;ssl=1\" alt=\"\" class=\"wp-image-113160\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=1024%2C58&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=600%2C34&amp;ssl=1 600w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=768%2C44&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-background\" style=\"background-color:#ccffcc;margin-top:var(--wp--preset--spacing--30);margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)\"><strong>Google Drive: Create Shared Link<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-right has-background has-small-font-size mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#ccffcc;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--30);padding-bottom:0;padding-left:var(--wp--preset--spacing--30)\"><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/googledrive-permissioncreate\/\">Google \u30c9\u30e9\u30a4\u30d6: \u5171\u6709\u30ea\u30f3\u30af\u4f5c\u6210<\/a><\/p>\n\n\n\n<p class=\"has-background mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#f0fff0;margin-top:0;margin-right:0;margin-bottom:var(--wp--preset--spacing--60);margin-left:0;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--40)\">This item creates a shared link for the specified file or folder on Google Drive. An error occurs when the file\/folder is already shared with anyone or within the domain.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright has-custom-border is-style-default\"><img decoding=\"async\" src=\"data:image;base64,\n        iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA71JREFUWEfF\n        V11oFFcU\/s7M7K6TRs1vK1VUSGmbCK2SB6VFgpLWlYC2omIDLaUlCBGfimwWgw9Fu9mW0ocSoUhE\n        aKmlgUgUyShiEUWSh4AW7L9CS5PGZhuTJmTi7swcmUn3d+ZOdtGy87Ts3HvOd77zfefeIZT5oVLy\n        h2MP3wTMViJqZqABQM1\/+6cIuMvMo4B8RYuGzhUbd0kArT1TK2VWj5CEg2DUFRWYkGALX5ikf3Kl\n        q2bGb48vgJ0x\/T2WEC86cWEmQoIsRIai6mkRCCGAcHy+F0ydRVW81CLik1qk4pDXMk8A4bj+NRhv\n        LRW3pPeEs1pEbXeTVPDPE63clc3NRB4DTs8JfX6V7d2soKVRgizlk5cyGBdvmbj8velLDDHez9VE\n        JoqtdoXU3\/wE19Io452tCtQgUP2Uu3u\/TliInE1CT\/pgICQM1p9LuyMTZUdMP06Eo37wYweC2LhO\n        wsQ0o245QZHzVxsm8O2IgS+vG74sMOPEpajabS\/KAAjH9Um\/6vdvUdD+qoKQAiykgFmdUb\/CzcLE\n        DCN+PoWfxi0xCEJCi6j1GQDOhCNrQLRjdQ2h+40g1tdnE\/4zy6gIkdOO3Mdi4OodE59eTPmbhKU9\n        9sR0IoZj870gsec7tivY1axAkbIxDQuY\/JexaiWBCoiYnmd8fsnAzV98BMl8UotWHHK27uzRhxnY\n        7AX55XUSjrQFULvcTbdNs92G2kr3u1u\/W4h+I1YjASNDXeqWRQZ69EnAe85Hdwew9QXZVeXsAqP3\n        soENayS0bZJR4EpHJ2eupTA4KmQhoXWpi00N9+j2qhyCF7l4\/SUZHdsUVC7Lr9Du87UfTXx8IYW1\n        dYRje4JYXe1m4d7fjI8GkxibYi9yLa1LlYUAbHEd3xdE0xoXLhQqPdchuZlsnZwfNXDqqqct8wC4\n        WlBK0FLA5gDMtsBLhJ+9HcSLz7qrH3\/AmFtgBJR8ym0uQwG4tGJawNBtE\/3D+Szki9DDhrubZbzb\n        EsCyQBaz3wASmX7sAePDgST+SBToINeGokF0Yn8Qm9ZLTlXMwF\/TjKdXuEewKHnSAPpHDHx1w0MD\n        uYPIcYLHKH7leRmHdyioqiCHdltU9u9inx\/+tNDd73E4FY5iO6DoMPqgLYBtTTLuzzBWVZHL7yIw\n        cw8Zfd8Z0G6754DnYSQ6jm2fd74WQMMzhMpQcdXb7br+s4nYoMd5IDqOnZFcxIWkWPpF64QXkvSG\n        sl7JsiDKeCn9X5go9VqeBlHWD5M0iLJ+mhUquSwfp49ru6X2PwLQFL0wM02BagAAAABJRU5ErkJg\n        gg==\n    \" alt=\"Auto Step icon\" class=\"has-border-color has-ast-global-color-4-border-color\" style=\"border-width:0.5em\"\/><\/figure>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Basic Configs<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\"><\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">Step Name<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\"><\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">Note<\/dd>\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Configs for this Auto Step<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_UserID<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C1: User connects to Google Drive (must be App Administrator)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_FileIdsItem<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C2: File \/ Folder ID to share<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_SharedRange<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C3: Shared range<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Role<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C4: Role (Editable or not)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Domain<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C5: Domain to share (required if the shared range is domain)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_AllowFileDiscovery<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6: Enable discovery through search within the domain<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_SharedUrlItem<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C7: Data Item that will save URL of shared File \/ Folder<\/dd>\n\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-lightbulb-exclamation\"><\/i> Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Users in C1 need to have a configured connection with Google Drive in [Account Settings] &gt; [Google Connectivity]\n<ul class=\"wp-block-list\">\n<li>Google Workspace Connectivity ([System Settings] &gt; [Google Connectivity]) must be enabled on the workflow platform ([System Administrator Authorization] required )<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You can create shared links of files and folders created by [Google Drive: File Upload], [Google Drive: Create Folder], and [Google Sheets: Create File].\n<ul class=\"wp-block-list\">\n<li>You cannot create shared links of existing files or files created by other software.<\/li>\n\n\n\n<li>This is because the authorization scope is <a href=\"https:\/\/www.googleapis.com\/auth\/drive.file\" rel=\"nofollow\">https:\/\/www.googleapis.com\/auth\/drive.file<\/a>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-images\"><\/i> Capture<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"84005\" data-permalink=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/onedrive-file-upload\/attachment\/setting-service-task-pdf-generation-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/01\/setting-service-task-pdf-generation-en.png?fit=959%2C833&amp;ssl=1\" data-orig-size=\"959,833\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"setting-service-task-pdf-generation-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/01\/setting-service-task-pdf-generation-en.png?fit=725%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/04\/Google-%E3%83%89%E3%83%A9%E3%82%A4%E3%83%96_%E5%85%B1%E6%9C%89%E3%83%AA%E3%83%B3%E3%82%AF%E4%BD%9C%E6%88%90_%E8%8B%B1%E8%AA%9E_15_0.png?ssl=1\" alt=\"\" class=\"wp-image-84005\" style=\"border:10px solid #aaaaaa; padding:5px; margin:5px;\"><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/intermediate-error-catch-event-boundary-type\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Intermediate Error Catch Event (Boundary Type)\n(opens in a new tab)\">Intermediate Error Catch Event (Boundary Type)<\/a><\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Script (click to open)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<ul class=\"wp-block-list\">\n<li>An XML file that contains the code below is available to download\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/raw.githubusercontent.com\/Questetra\/Addon-XML\/release-2024-11-21\/google-drive-permission-create.xml\" target=\"_blank\" rel=\"noreferrer noopener\">google-drive-permission-create.xml<\/a> (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>If you are using Professional, you can modify the contents of this file and use it as your own add-on auto step<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\n\nfunction main() {\n    const quser = getQuser();\n    const fileId = getFileId();\n    const sharedRange = configs.get(&quot;conf_SharedRange&quot;);\n    const role = configs.get(&quot;conf_Role&quot;);\n    const domain = configs.get(&quot;conf_Domain&quot;);\n    if (sharedRange === &quot;domain&quot; && domain === &quot;&quot;) {\n        throw &quot;Domain to share isn&#39;t set.&quot;;\n    }\n    const allowFileDiscovery = configs.getObject(&quot;conf_AllowFileDiscovery&quot;);\n    const urlDataDef = configs.getObject(&quot;conf_SharedUrlItem&quot;);\n\n    checkIfAlreadyShared(quser, fileId);\n    createPermission(quser, fileId, sharedRange, role, domain, allowFileDiscovery);\n\n    if (urlDataDef !== null) {\n        const sharedUrl = getWebViewLink(quser, fileId);\n        engine.setData(urlDataDef, sharedUrl);\n    }\n}\n\n\/**\n * \u5b9f\u884c\u30e6\u30fc\u30b6\u3092\u53d6\u5f97\u3059\u308b\n * @return {QuserView} \u5b9f\u884c\u30e6\u30fc\u30b6\n *\/\nfunction getQuser() {\n    const quser = configs.getObject(&quot;conf_UserID&quot;);\n    if (quser === null) {\n        throw &quot;User not found&quot;;\n    }\n    engine.log(`User Name: ${quser.getName()}`);\n    return quser;\n}\n\n\/**\n * \u30c7\u30fc\u30bf\u9805\u76ee\u304b\u3089\u30d5\u30a1\u30a4\u30eb \/ \u30d5\u30a9\u30eb\u30c0\u306e ID \u3092\u53d6\u5f97\u3059\u308b\n * @return {String}  \u30d5\u30a1\u30a4\u30eb \/ \u30d5\u30a9\u30eb\u30c0\u306e ID\n *\/\nfunction getFileId() {\n    const fileId = engine.findData(configs.getObject(&quot;conf_FileIdsItem&quot;));\n    if (fileId === null || fileId === &quot;&quot;) {\n        throw &quot;File \/ Folder ID isn&#39;t set.&quot;;\n    }\n    return fileId;\n}\n\n\/**\n  * Google Drive API \u3067\u5171\u6709\u8a2d\u5b9a\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\n  * anyone \/ domain \u306e\u5171\u6709\u8a2d\u5b9a\u304c\u3059\u3067\u306b\u3042\u308b\u5834\u5408\u306f\u30a8\u30e9\u30fc\n  * @param {QuserView} quser  Google Drive \u306b\u63a5\u7d9a\u3059\u308b\u30e6\u30fc\u30b6\n  * @param {String} fileId  \u30d5\u30a1\u30a4\u30eb \/ \u30d5\u30a9\u30eb\u30c0\u306e ID\n  *\/\nfunction checkIfAlreadyShared(quser, fileId) {\n    const url = `https:\/\/www.googleapis.com\/drive\/v3\/files\/${encodeURIComponent(fileId)}\/permissions`;\n    const response = httpClient.begin()\n        .googleOAuth2(quser, &quot;Drive&quot;)\n        .queryParam(&quot;fields&quot;, &quot;permissions\/type&quot;)\n        .queryParam(&quot;supportsAllDrives&quot;, &quot;true&quot;)\n        .get(url);\n    const status = response.getStatusCode();\n    const responseStr = response.getResponseAsString();\n    if (status &gt;= 300) {\n        engine.log(responseStr)\n        throw `Failed to get permission list. File:${fileId}, Status:${status}`;\n    }\n    const { permissions } = JSON.parse(responseStr);\n\n    const alreadyShared = permissions\n        .some(permission =&gt; permission.type === &quot;anyone&quot; || permission.type === &quot;domain&quot;);\n    if (alreadyShared) {\n        throw `The item (ID: ${fileId}) is already shared.`;\n    }\n}\n\n\/**\n  * Google Drive API \u3067\u5171\u6709\u8a2d\u5b9a\u3092\u3059\u308b\n  * create permission on Google Drive\n  * @param {QuserView} quser  Google Drive \u306b\u63a5\u7d9a\u3059\u308b\u30e6\u30fc\u30b6\n  * @param {String} fileId  \u30d5\u30a1\u30a4\u30eb \/ \u30d5\u30a9\u30eb\u30c0\u306e ID\n  * @param {String} type \u5171\u6709\u7bc4\u56f2\n  * @param {String} role \u30ed\u30fc\u30eb\n  * @param {String} domain  \u5171\u6709\u5148\u30c9\u30e1\u30a4\u30f3\n  * @param {String} allowFileDiscovery  \u691c\u7d22\u53ef\u80fd\u306b\u3059\u308b\u304b\u3069\u3046\u304b\n  * @return {String} \u5171\u6709\u30ea\u30f3\u30af\n  *\/\nfunction createPermission(quser, fileId, type, role, domain, allowFileDiscovery) {\n    const json = { role, type };\n    if (type === &quot;domain&quot;) {\n        json[&quot;domain&quot;] = domain;\n        json[&quot;allowFileDiscovery&quot;] = allowFileDiscovery;\n    }\n    const url = `https:\/\/www.googleapis.com\/drive\/v3\/files\/${encodeURIComponent(fileId)}\/permissions`;\n    const responsePermission = httpClient.begin()\n        .googleOAuth2(quser, &quot;Drive&quot;)\n        .queryParam(&quot;supportsAllDrives&quot;, &quot;true&quot;)\n        .body(JSON.stringify(json), &quot;application\/json; charset=UTF-8&quot;)\n        .post(url);\n    const status = responsePermission.getStatusCode();\n    if (status &gt;= 300) {\n        engine.log(responsePermission.getResponseAsString())\n        throw `Failed to create permission. File:${fileId}, Status:${status}`;\n    }\n}\n\n\/**\n  * Google Drive API \u3067\u30d5\u30a1\u30a4\u30eb \/ \u30d5\u30a9\u30eb\u30c0\u306e\u8868\u793a URL \u3092\u53d6\u5f97\u3059\u308b\n  * @param {QuserView} quser  Google Drive \u306b\u63a5\u7d9a\u3059\u308b\u30e6\u30fc\u30b6\n  * @param {String} fileId  \u30d5\u30a1\u30a4\u30eb \/ \u30d5\u30a9\u30eb\u30c0\u306e ID\n  * @return {String} \u8868\u793a URL\n  *\/\nfunction getWebViewLink(quser, fileId) {\n    const url = `https:\/\/www.googleapis.com\/drive\/v3\/files\/${encodeURIComponent(fileId)}`;\n    const responseGet = httpClient.begin()\n        .googleOAuth2(quser, &quot;Drive&quot;)\n        .queryParam(&quot;fields&quot;, &quot;webViewLink&quot;)\n        .queryParam(&quot;supportsAllDrives&quot;, &quot;true&quot;)\n        .get(url);\n    const getStatus = responseGet.getStatusCode();\n    if (getStatus &gt;= 300) {\n        engine.log(responseGet.getResponseAsString())\n        throw `Failed to get item info. File:${fileId}, Status:${getStatus}`;\n    }\n    const resJson = JSON.parse(responseGet.getResponseAsString());\n    return resJson.webViewLink;\n}\n\n<\/code><\/pre><\/div>\n<\/div><\/details><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This item creates a shared link for the specified file or folder on Google Drive. An error occurs when the file\/folder is already shared with anyone or within the domain.<\/p>\n","protected":false},"author":17,"featured_media":168834,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[551],"tags":[398,3162],"class_list":["post-71830","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bpmn-icons","tag-google-drive-api-v3","tag-google-workspace"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"Shiho Tatsumi","author_link":"https:\/\/support.questetra.com\/en\/author\/tatsumi48c607ec82\/"},"uagb_comment_info":2,"uagb_excerpt":"This item creates a shared link for the specified file or folder on Google Drive. An error occurs when the file\/folder is already shared with anyone or within the domain.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-iGy","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":74763,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/google-drive-items\/","url_meta":{"origin":71830,"position":0},"title":"Utilizing Google Drive from Workflow &#8211; Sending files to people outside the company","author":"Hirotaka NISHI","date":"2020-10-30","format":false,"excerpt":"Google Drive is a cloud storage service offered by Google. I will explain automatic Step for utilizing Google Drive in a Workflow App.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67279,"url":"https:\/\/support.questetra.com\/en\/addons\/googledrive-filescopy\/","url_meta":{"origin":71830,"position":1},"title":"Google Drive Files Copy","author":"Hirotaka NISHI","date":"2017-11-26","format":false,"excerpt":"Copies a file on Google Drive and save it to the specified directory. Preparing a file to be a template and it will be a copy automatically at the Start of a new Issue. *Note You need to register Project at Google API Manager beforehand If there is no specified\u2026","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/11\/google-drive-file-copy-header.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/11\/google-drive-file-copy-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/11\/google-drive-file-copy-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/11\/google-drive-file-copy-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/11\/google-drive-file-copy-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":156157,"url":"https:\/\/support.questetra.com\/en\/templates\/meeting-documents-sharing-flow\/","url_meta":{"origin":71830,"position":2},"title":"Meeting Documents Sharing Flow","author":"Hajime Yahagi","date":"2024-01-04","format":false,"excerpt":"This flow allows documents used in management meetings and other meetings to be shared with meeting participants. Attached meeting material files are automatically uploaded to a shared folder on Google Drive. When the sharing deadline is reached, the file is deleted from the shared folder.","rel":"","context":"In &quot;Workflow Apps&quot;","block_context":{"text":"Workflow Apps","link":"https:\/\/support.questetra.com\/en\/category\/templates\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/01\/featured-meeting-document-sharing-flow-20220719-en.png?fit=960%2C540&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/01\/featured-meeting-document-sharing-flow-20220719-en.png?fit=960%2C540&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/01\/featured-meeting-document-sharing-flow-20220719-en.png?fit=960%2C540&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/01\/featured-meeting-document-sharing-flow-20220719-en.png?fit=960%2C540&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":121865,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-google-drive-permission-delete\/","url_meta":{"origin":71830,"position":3},"title":"Google Drive: Delete Shared Link","author":"Shiho Tatsumi","date":"2024-12-13","format":false,"excerpt":"This item deletes the shared link accessible by anyone with the link or within the domain from the specified file or folder on Google Drive. Permissions for users or groups remain undeleted.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":71599,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/googledrive-folderdelete\/","url_meta":{"origin":71830,"position":4},"title":"Google Drive: Delete File \/ Folder","author":"Hirotaka NISHI","date":"2024-12-12","format":false,"excerpt":"This item deletes files or folders on Google Drive.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67286,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/googledrive-foldercreate\/","url_meta":{"origin":71830,"position":5},"title":"Google Drive: Create Folder","author":"HatanakaAkihiro","date":"2024-12-06","format":false,"excerpt":"This item creates a new folder in the specified folder on Google Drive.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/71830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=71830"}],"version-history":[{"count":29,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/71830\/revisions"}],"predecessor-version":[{"id":168870,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/71830\/revisions\/168870"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/168834"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=71830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=71830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=71830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}