Apps
OneDrive
29 min
learn how to connect engini to onedrive with the onedrive activities in engini you can create, update, delete, and get one or more files create, update, delete, and get one or more folders to get started with the onedrive app, create an account for free at https //www microsoft com getting started with onedrive prerequisites a microsoft account add a connection to onedrive in engini enter to your engini account at https //app engini io navigate to connections page by clicking on the connections on the left sidebar or by clicking https //app engini io/connections click on the add connection option located at the top bar choose the onedrive option from the available applications enter the following details in the “edit connection” for connection name enter a unique and descriptive name for this connection this name will help you easily identify and manage your onedrive refresh token a token used to obtain a new access token when the current one expires sign in with microsotf click on the “microsoft signin” button sign into your microsoft account save settings click on the save button to save the connection triggers the triggers monitor the folder, listening for files and folders created or updated in the connected onedrive folder, based on the defined scheduled intervals check for file/folder created/updated files or folders select from the dropdown list the type of content you want the trigger to monitor you can choose between “files and folders”, “files only”, or “folders only” onedrive location select the location of the content you want the trigger to monitor you can choose between “groups’ drive”, “my drive”, “shared with me”, or “site’s drive” group/site id enter the group/site id where you want to monitor for new/updated files or folders drive id enter the drive id where you want to monitor for new/updated files or folders folder id enter the folder id you want to monitor for new/updated files or folders query – search by file or folder name (not required) starting (utc) select the start date and time for the scheduled trigger recur every choose the time interval for triggering and checking emails the minimum time interval is 15 minutes add time frame click on the “add time frames” button select the specific time frame during which you want your workflow to be executed simply select the start time and end time that best align with your scheduling preferences press the “add time frame” button for adding more time frames actions add permission to file/folder (send invitation) this activity permits recipients to write, read, or both files or folders by invitation location select the location of the file or folder you can choose between “groups’ drive”, “my drive”, or “site’s drive” group / site id enter the group/site where you want to give permission drive id enter the drive where you want to give permissions for the file or folder file/folder id enter the file/folder id you give permissions on recipients select the recipients to whom permissions will be given to the file or folder role select the roles you want to promote to the recipients require signin – determines whether the recipient must sign in to their account in order to access the file or folder send invitation – controls whether a sharing invitation (email with a link) is sent to the recipient when the permission is added append to recipients array in this activity, you can add other recipients to the list of recipients appending to an array variable allows you to dynamically add new values to the end of the array without changing the size or structure of the array variable select the variable from the dropdown list you want to append to the recipients array add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate append to roles array in this activity you can add other roles to the list of roles appending to an array variable allows you to dynamically add new values to the end of the array without changing the size or structure of the array variable select the variable from the dropdown list you want to append to the recipients array add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate copy file/folder in this activity you can copy a file or folder and place them into another folder drive id enter the drive where you want to copy the file or folder file/folder id enter the file/folder you want to copy targe t location select the location where the file/folder will be copied you can choose between “groups’ drive”, “my drive”, or “site’s drive” to drive id select the drive where the file/folder will be copied to folder id enter the folder where the file/folder will be copied add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate create folder this activity creates a new folder in onedrive location select the location of the new folder you can choose between “groups’ drive”, “my drive”, or “site’s drive” folder name enter the name of the new folder create share link this activity creates a new shared link in onedrive location select the location of the new share link you can choose between “groups’ drive”, “my drive”, or “site’s drive” type select the type of the new share link you can choose between “edit”, “embed”, or “view” edit – anyone with this link can edit this file/folder embed – url that allows access to the file/folder stored in onedrive, which can be incorporated into other platforms or documents view – anyone with this link can view this file/folder add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate delete file/folder this activity deletes files or folders from onedrive location select the location of the file/folder you want to delete you can choose between “groups’ drive”, “my drive”, or “site’s drive” group / site id select the group/site where the file/folder you want to delete drive id select the drive where the file/folder will be deleted file/folder id select the file/folder you want to delete delete file/folder permission this activity deletes permission from the file/folder from onedrive location select the location of the file/folder you want you can choose between “groups’ drive”, “my drive”, or “site’s drive” group / site id select the group/site where the file/folder you want drive id select the drive where the file/folder file/folder id select the file/folder you want permission id select the permission you want to delete download file this activity allows you to download a file from onedrive location select the location of the file you want to download you can choose between “groups’ drive”, “my drive”, or “site’s drive” group id select the group/site where the file you want drive id select the drive where is the file file id select the file/folder you want add fields select if you want to add a certain field (not required) add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate get drives this activity allows you to get drives from onedrive onedrive location select the location of the file you want to download you can choose between “groups’ drive”, “my drive”, or “site’s drive” group id select the group/site where the file you want get file/folder info this activity allows you to get information on files/folders from onedrive location select the location of the file/folder you want you can choose between “groups’ drive”, “my drive”, or “site’s drive” group id select the group/site where the file/folder you want drive id select the drive where the file/folder is file/folder id select the file/folder you want get files/folders this activity allows you to get files/folders from onedrive files or folders select the type of content you want to get you can choose between “files and folders”, “files only”, or “folders only” onedrive location select the location of the content you want to get you can choose between “groups’ drive”, “my drive”, “shared with me”, or “site’s drive” group id enter the group/site id you want the content from them drive id enter the drive id you want the content from them folder id enter the folder id you want the content from them query – search by file or folder name (not required) get permissions this activity allows you to get permissions of files/folders from onedrive location select the location of the file/folder you want the permissions of you can choose between “groups’ drive”, “my drive”, or “site’s drive” group id select the group/site where the file/folder you want the permissions of drive id select the drive where the file/folder the permissions of file/folder id select the file/folder you want the permissions of get user drive this activity allows you to get the user of onedrive initialize recipients array this activity allows you to initialize the recipients array variable name enter the name of the variable that will hold the initialized object array this name will be used throughout the workflow whenever you refer to this object array add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate initialize roles array this activity allows you to initialize the roles array variable name enter the name of the variable that will hold the initialized object array this name will be used throughout the workflow whenever you refer to this object array add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate move file/folder this activity allows you to move files/folders in onedrive drive id enter the drive from where you want to move the file or folder file/folder id enter the file/ folder id you want to move the file or folder targe t location select from the dropdown list the location where the file/folder will be moved you can choose between “groups’ drive”, “my drive”, or “site’s drive” to group id – select the microsoft 365 group that owns the destination drive to drive id select the drive where the file/folder will be moved to folder id enter the folder where the file/folder will be moved add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate rename file/folder this activity allows you to rename files/folders in onedrive files or folders select the type of content you want to get you can choose between “file” or “folder” location select the location of the content you want to rename you can choose between “groups’ drive”, “my drive”, “shared with me”, or “site’s drive” group id enter the group/site id where the content you want to rename is drive id enter the drive id where the content you want to rename is file / folder id enter the file/folder id you want to rename new name enter the new name of the file/folder update file/folder permission location select the location where you to upload the file you can choose between “groups’ drive”, “my drive”, “shared with me”, or “site’s drive” permission id – the unique id of the existing permission that you want to update (for example, a specific user’s or group’s access to the file or folder) add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate upload file this activity allows you to upload files/folders in onedrive location select the location where you to upload the file you can choose between “groups’ drive”, “my drive”, “shared with me”, or “site’s drive” group id enter the group/site id where you want to upload the file drive id enter the drive id where you want to upload the file folder id enter the folder where you want to upload the file file name enter the name of the file you want to upload content enter the file you want to upload in base64 string add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields in the board choose from the drop down the field you want to fill click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat the steps from step 3 for all the fields you wish to populate