自動で商談名を「取引先名+様+作成日付+商品・サービス」にするコード

自動で商談名を「取引先名+様+作成日付+商品・サービス」にするコード

自動で商談名を「取引先名+様+作成日付+商品・サービス」にするコード です。
需要あるか分かりませんが、必要な方お使いください。

例:「****様 20200213 ワッペン

関連タブ 商談
SHODAN_ID 商談.商談のID

以下はDelugeコード
  1. dealDetails = zoho.crm.getRecordById("Deals",SHODAN_ID.toLong());
  2. newdealname = ifnull(dealDetails.get("field19"),"");
  3. mp = Map();
  4. mp.put("Deal_Name",newdealname);
  5. update = zoho.crm.updateRecord("Deals",SHODAN_ID.toLong(),mp);
  6. info mp;
  7. info update;

「 field19 」は カスタマイズ > タブ&項目 > 商談 > 項目 > 商談名自動生成;数式(文字列)

「 field19 」の数式は「Concat(${商談.取引先名},'様',' ',Substring(Tostring(${商談.作成日時}),1,4),Substring(Tostring(${商談.作成日時}),6,7),Substring(Tostring(${商談.作成日時}),9,10),' ',${商談.商品・サービス})

「 field19 」は 商談の「商談名自動生成」フィールドのAPI名(API名は下記参照)


    Access your files securely from anywhere








                            Zoho Developer Community




                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                  • Ask the Experts





                                                            Manage your brands on social media



                                                                  Zoho TeamInbox Resources



                                                                      Zoho CRM Plus Resources

                                                                        Zoho Books Resources


                                                                          Zoho Subscriptions Resources

                                                                            Zoho Projects Resources


                                                                              Zoho Sprints Resources


                                                                                Qntrl Resources


                                                                                  Zoho Creator Resources



                                                                                      Zoho CRM Resources

                                                                                      • CRM Community Learning Series

                                                                                        CRM Community Learning Series


                                                                                      • Kaizen

                                                                                        Kaizen

                                                                                      • Functions

                                                                                        Functions

                                                                                      • Meetups

                                                                                        Meetups

                                                                                      • Kbase

                                                                                        Kbase

                                                                                      • Resources

                                                                                        Resources

                                                                                      • Digest

                                                                                        Digest

                                                                                      • CRM Marketplace

                                                                                        CRM Marketplace

                                                                                      • MVP Corner

                                                                                        MVP Corner







                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now


                                                                                            Zoho Show Resources

                                                                                              Zoho Writer

                                                                                              Get Started. Write Away!

                                                                                              Writer is a powerful online word processor, designed for collaborative work.

                                                                                                Zoho CRM コンテンツ




                                                                                                  Nederlandse Hulpbronnen


                                                                                                      ご検討中の方