zohoprojects.init().then(function(){});
zohoprojects.init().then(function () {
zohoprojects.get('portal.name').then(function (response)
});
zohoprojects.metadata().then(function(response)
{
/* output
{
'data': {
'configs': [
{
'name': 'Name',
'type': 'text',
'is_mandatory': true,
'is_secure': false,
'description': 'Enter your name',
'value': 'Helen Collins'
},
{
'name': 'Employee ID',
'type': 'text',
'is_mandatory': true,
'is_secure': false,
'description': 'Enter your Emp. ID',
'value': 'EMP08'
}
],
'payments_info': {
'edition': 'trial'
},
'status': 'success'
}
}
*/
});
zohoprojects.context().then(function(response)
{
/* output
{
'module_name': 'tasks',
'entity_id': '27092000000031079'
}
*/
});
ウィジェットの配置場所が「app_settings」「attachment_picker」「blueprint_during」「top_band」の場合、項目 ID は提供されません。
zohoprojects.get('task.id
').then(function(response)
{
/* output
{
'data': 27092000000031080,
'status': 'success'
}
*/
});
zohoprojects.get('deployment_type').then(function() {
/* output
com
*/
});
zohoprojects.get('current_theme').then(function() {
/* output
{mode: 'default', zpPrimary: '255, 100, 0', zpPrimaryHover: '255, 247, 243'}
*/
});
zohoprojects.get('blueprint_during').then(function(res) {
/* output
[ {field_id: 'UDF_CHAR1', is_visible: true, is_pii: false, is_encrypted: false}
{field_id: 'UDF_CHAR2', is_visible: true, is_pii: false, is_encrypted: false}]
*/
});
var nameObj={name:'Create a new checklist'};
zohoprojects.set('task',nameObj).then(function(response)
{
/* output
{
'data': {
'tasks': [
{
'milestone_id': '2*******************2',
'link': {
'timesheet': {
'url': 'https://p*************e.********.com/restapi/portal/5******7/projects/2****************9/tasks/2****************9/logs/'
},
'self': {
'url': 'https://p*************e.********.com/restapi/portal/5******7/projects/2****************9/tasks/2****************9/'
}
},
'description': '',
'duration': '0',
'last_updated_time_long': 1542193097398,
'details': {
'owners': [
{
'name': 'JOHN MARSH',
'id': '5************3'
}
]
},
'id': 2************0,
'key': 'WEUT-T1',
'created_person': 'Steve Banks',
'created_time_long': 1525668983347,
'created_time': '05-07-2018',
'is_reminder_set': false,
'is_recurrence_set': false,
'created_time_format': '05-07-2018 10:26:23 AM',
'subtasks': false,
'work': '0:00',
'custom_fields': [
{
'column_name': 'UDF_LONG1',
'label_name': 'Expense Amount',
'value': '24573'
},
{
'column_name': 'UDF_LONG3',
'label_name': 'sample',
'value': '0'
},
{
'column_name': 'UDF_LONG2',
'label_name': 'test',
'value': '200'
}
],
'isparent': false,
'work_type': 'work_hrs_per_day',
'completed': false,
'priority': 'None',
'created_by': '5******3',
'percent_complete': '0',
'last_updated_time': '11-14-2018',
'name': 'Create a new checklist',
'id_string': '2************9',
='last_updated_time_format': '11-14-2018 04:28:17 PM',
'tasklist': {
'name': 'General',
'id': '2************7'
},
'order_sequence': 1,
'status': {
'name': 'Open',
'id': '2************1',
'type': 'open',
'color_code': ''
}
}
]
},
'status': 'success'
}
*/
});
linkfiles=[{
'created_time': 1561028014712,
'id': '1LavBS5sauJ-AAFJZWp8Ch9Cp2ehydahk',
'type': 'image/jpeg',
'created_by': 'Patricia Boyle',
'permanent_url': 'https://***************',
'size': 7409,
'preview_url': 'https://******************',
'name': 'sample-image.jpeg',
'download_url': 'https://drive.google.com/a/web-mailhosting.com/uc?id=1LavBS5sauJ-AAFJZWp8Ch9Cp2ehydahk&export=download',
}]
zohoprojects.set('linkfiles', linkFiles).then(function (response) {
zohoprojects.invoke('attachment_picker.close');
});
var sample = [ {field_id: 'UDF_CHAR1', is_visible: true, is_pii: false, is_encrypted: false} {field_id: 'UDF_CHAR2', is_visible: true, is_pii: false, is_encrypted: false}]; zohoprojects.set('blueprint_during', sample).then(function(res) { /* output [ {field_id: 'UDF_CHAR1', is_visible: true, is_pii: false, is_encrypted: false} {field_id: 'UDF_CHAR2', is_visible: true, is_pii: false, is_encrypted: false}] */ });
let paramObj = {
'custom_data': {
'path': 'G/pics',
'portal_id': '89031033',
'project_id': '185977000000199005'
},
'display_data' : [
{
'名前': 'Path',
'値': 'G's Drive',
'リンク': 'https://drive.google.com/drive/folders/1e1xWqREV'
}, {
'名前': 'アプリ名',
'値': 'G- Drive'
}
]
zohoprojects。set('実行する', paramObj);
var file = document.getElementById('inputbox').files[0];
var file_detail = {
type: 'GET',
files: [{
uploaddoc : file
type : 'binary' //If the file is uploaded as binary
}],
parameters: {
fields: 'id,name, thumbnailLink, webViewLink, webContentLink'
}
};
var url = 'https://www.googleapis.com/drive/v3/files/1-QabBt69U8myXYRDVU-1YiCo2k-JWRfu';
zohoprojects.request(url, file_detail, 'google_drive').then(function (response)
/* Output
{
'result': {
'webContentLink': 'https://drive.google.com/uc?id=1-QabBt69U8myXYRDVU-1YiCo2k-JWRfu&export=download',
'name': 'Eiffel_Tower_01.jpg',
'webViewLink': 'https://drive.google.com/file/d/1-QabBt69U8myXYRDVU-1YiCo2k-JWRfu/view?usp=drivesdk',
'id': '1-QabBt69U8myXYRDVU-1YiCo2k-JWRfu',
'thumbnailLink': 'https://lh3.googleusercontent.com/nhyq9mHrGDOZfNdQUHRj_xVlOoNAP5PEYkW4X2svGXKjVt53MvMGfjhQ2PlTv4cmv5-PgbjrR-c=s220'
},
'status': 'success'
}
*/});
| Argument 名前 | データの種類 | 説明 | ||
| URL | string | 拡張機能から呼び出すサードパーティのURL。 | ||
| object | JSONObject | キー | データの種類 | 値 |
| 種類 | string | 'GET' / 'POST' / 'PUT' / 'DELETE' / 'PATCH' | ||
| パラメーター | JSONObject | APIのリクエストパラメーター。 | ||
| ヘッダー | JSONObject | APIのヘッダー。 | ||
| 本文 | JSONObject |
APIの本文。
|
||
| files | JSONArray |
ファイルをアップロードするためのパラメーター。 値: 実際のファイル。 *実際のファイルがアップロードされる場合、本文は無視されます。 *種類をbinaryと指定した場合、ファイルはバイナリとして送信されます。この場合、ファイルの本文も考慮されます。 |
||
| replace_secure_config | Boolean |
plugin-manifest.json ファイルの is_secure パラメーターが true の場合、このパラメーターの値を true に設定します。
URL と object パラメーターの値は、次の形式で渡すことができます: {{名前}} (設定名)
Zoho Projects は設定値を置き換えます。 |
||
| connection_link_name | string | 外部連携のリンク名。zapps Web サイトで作成済みのものを指定します。外部連携のリンク名は、plugin-manifest から取得できます。 | ||
let customData = {'名前':'新しいチェックリストを作成'};
zohoprojects。function。実行する('c8a9e660-95e2-11ef-9d3c-2d653cc724d7', '1。0', customData).then(function(response){
/* 出力
{ 'result':{'output':'{}','タスク':[],'outputType':'無効','メッセージ':{}},
'unique_id':'c8a9e660-95e2-11ef-9d3c-2d653cc724d7',
'コード':3009,
'function_id':1234567890,
'メッセージ':'Function Executed Successfully',
'ステータス':'完了'
}
*/
});
「導入したばかりで基本操作や設定に不安がある」、「短期間で集中的に運用開始できる状態にしたい」、「運用を開始しているが再度学び直したい」 といった課題を抱えられているユーザーさまに向けた少人数制のオンライントレーニングです。
日々の営業活動を効率的に管理し、導入効果を高めるための方法を学びましょう。