CreatorからWriterへの画像フィールドの差し込み設定方法

CreatorからWriterへの画像フィールドの差し込み設定方法

お知らせ:当社は、お客様により充実したサポート情報を迅速に提供するため、本ページのコンテンツは機械翻訳を用いて日本語に翻訳しています。正確かつ最新のサポート情報をご覧いただくには、本内容の英語版を参照してください。

Zoho Writer では、マージ処理に使用できるのは公開画像 URL のみです。これを実現するには、Creator アプリと Writer のマージテンプレートの両方に画像項目を追加し、次の 2 つの方法のいずれかを使用します。 

受注データを[パッケージ]データに変換するだけで、Creator 内の画像をダウンロード可能なリンクに変換する:

  1. Creator のフォームレポートを公開し、手順に従って公開キーを取得します。公開キーは次の形式になります。 

 https://creatorapp.zohopublic.com/<AppOwnerName>/<AppName>/report-perma/<ReportLinkName>/qvGRXuEHg9AQT5CguhV27krp***** 

ハイライトされているキーは、Deluge スクリプト内で 'PublishedLinkKey' として使用します。

  1. Deluge で画像の公開リンクを作成します。以下は、Creator フォーム内の画像に対してダウンロード可能なリンクを作成するサンプルコードです。

employeerecord = Employee_Timesheet_Form[ID==input。ID];

info employeerecord。Timer_Screenshot;

imageLink = employeerecord。Timer_Screenshot。getsuffix('画像/');

imageLink = employeerecord。getPrefix('\'');

imageURL = 'https://creatorexport.zoho.com/file/<AppOwnerName>/<AppName>/<ReportLinkName>/'+ input。ID + '/<ImageFieldName>/image-download/<PublishedLinkKey>?filepath=/' + imageLink;

info imageURL;

 

Creator の imageURL のサンプルは次のとおりです。

 

https://creatorexport.zoho.com/file/go*****/employee_****/Employee_*****/1309016000000318035/Timer_Screenshot/image-download/qvGRXuEHg9AQT5CguhV27krp*****?filepath=/1656509699030.png

  1. この imageURL を使用して、Creator の画像を Writer にマージできます。

画像を Zoho WorkDrive にアップロードし、外部ダウンロードリンクを作成する。

  1. 画像をアップロードし、Zoho WorkDrive で外部ダウンロードリンクを作成します。手順はこちら。以下は WorkDrive URL のサンプルです。

https://workdrive.zohoexternal.com/external/b24042070f8fb42d******/download?directDownload=True

  1. この URL を Deluge スクリプト内で imageURL として渡し、Zoho Writer の Deluge タスクまたは Zoho Writer の API を使用して出力処理を実行します。 

以下は、Zoho Writer の API を使用してドキュメントをマージし、メールとして送信するための Deluge コードのサンプルです。

data= map();

data。put('employee_name',employeerecord。Employee_Name);

data。put (“employee_email”, employeerecord。Employee_email);

data。put('project_name', employeerecord。Project_Name);

data。put('日付',employeerecord。Date_field);

data。put('total_hours_worked', employeerecord。Total_Hours_Worked);

data。put('timer_screenshot', imageURL);

data。put('task_details', employeerecord。Task_Details);

data。put('日付', employeerecord。Subform_Date);

data。put('hours_worked', employeerecord。Hours_worked);

data。put('task_description', employeerecord。Task_Description);

param = Map();

param。put('メッセージ', '過去 1 週間の作業内容をご確認ください');

param。put('件名', '作業内容');

param。put('merge_data', {'data':data});

param。put('output_format', 'inline');

param。put('recipient_email',employeerecord。Employee_email);

param。put('from_email', 'paxyz@zylker.com');

invokeurl

[

url: 'https://zohoapis.com/writer/api/v1/documents/eb4kob******/merge/email'

種類: post

パラメーター: param

connection: ''

];

    Zoho CRM 管理者向けトレーニング

    「導入したばかりで基本操作や設定に不安がある」、「短期間で集中的に運用開始できる状態にしたい」、「運用を開始しているが再度学び直したい」 といった課題を抱えられているユーザーさまに向けた少人数制のオンライントレーニングです。

    日々の営業活動を効率的に管理し、導入効果を高めるための方法を学びましょう。

    Zoho CRM Training



              Zoho Campaigns Resources

                Zoho WorkDrive Resources




                  • Desk Community Learning Series


                  • Digest


                  • Functions


                  • Meetups


                  • Kbase


                  • Resources


                  • Glossary


                  • Desk Marketplace


                  • MVP Corner


                  • Word of the Day


                  • Ask the Experts









                                  Resources

                                  Videos

                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                  eBooks

                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                  Webinars

                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                  CRM Tips

                                  Make the most of Zoho CRM with these useful tips.