Google Drive Attachment
Use this component to upload multimedia content e.g. images, videos, pdf etc... to google drive folder.
You can access the uploaded file as service/acturl where 'acturl' is the recieved file url after the file uploaded.
You can use Trigger After Upload to get the uploaded file details in the props e.g.. #{props.acturl} to get the actual file URL,#{props.fileId} to get the ra file ID.
Prerequisites:
After creating the account you need to generate a p12 credentials file. After generating the file, upload this file in the custom handlers using the Manage Custom Handlers screen with the name subDomain-gdrive.p12.
Update profile value of GDRIVE_SERVICE_ACCOUNT_ID with your service account email.
Create a profile with profile code as the concatenation of string 'GDF_' and the datasource name.
e.g.. suppose datasource name is MyDatasource, then profile code will be GDF_MyDatasource.
The value of this profile will be the google drive folder ID where you wish to upload the attachment.
Allowed Parent Components:
Allowed Child Components:
Trigger After Upload Attachment
Trigger Before Upload Attachment
➤ View Attribute
Allowed Values: Attribute
For uploading images select this checkbox.
Allowed Values: Yes/No
For uploading multiple attachments select this checkbox.
Allowed Values: Yes/No
Provide type of content user needs to upload. e.g. .doc, .png, .jpeg, .docx, .xml
Allowed Values: Free text field
➤ Connection Code
Provide connection code to upload in drive
Allowed Values: Free text field
Provide the Google Folder ID where the file will be uploaded.
Allowed Values: Free text field
➤ Rejection Message
Provide a message to the user when a file is rejected.
Allowed Values: Free text field
A message which appears when a cursor is positioned over.
Allowed Values: An expression which should return string after evaluation
Select an option to change the placement of the tooltip when appears.
Allowed Values:
➤ Insert Allowed
Allowed Values: Yes/No
➤ Update Allowed
Allowed Values: Yes/No
➤ On After Upload
Allowed Values: Controller Function
➤ On Before Upload
Allowed Values: Controller Function