<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kintone on Medium]]></title>
        <description><![CDATA[Stories by Kintone on Medium]]></description>
        <link>https://medium.com/@kintone?source=rss-2cb0f938249a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xqjGuEnMaXMR5WOAGRn9Hw.jpeg</url>
            <title>Stories by Kintone on Medium</title>
            <link>https://medium.com/@kintone?source=rss-2cb0f938249a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:20:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kintone/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Upload Web Form Attachments to Kintone with Make/Integromat]]></title>
            <link>https://kintone.medium.com/upload-web-form-attachments-to-kintone-with-make-integromat-d0ef0693387d?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0ef0693387d</guid>
            <category><![CDATA[kintone]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[make]]></category>
            <category><![CDATA[web-forms]]></category>
            <category><![CDATA[forms]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Mon, 04 Nov 2024 18:27:32 GMT</pubDate>
            <atom:updated>2024-11-04T18:27:32.043Z</atom:updated>
            <content:encoded><![CDATA[<p>Most businesses need to take in <strong>web forms</strong> from their clients. Google Forms, Cognito Forms, JotForms and SurveyMonkey are all web form services that do pretty much the same thing; display a public-facing web page with fields/questions for a user to fill out. Web forms usually consist of dropdown fields, text fields, and sometimes attachment fields for <strong>uploading documents </strong>(for example, a drivers license or resume).</p><p><strong>This example scenario will create a customer’s profile record in Kintone when a Cognito Forms web form is submitted, with a Drivers License document attached. </strong>This tutorial will use Make (formerly known as Integromat).</p><p><strong>NOTE:</strong> Each different web form platform (Cognito Forms, JotForms, Wufoo) has different API endpoints that provide web form attachments as a <strong>URL or as Form data</strong>. <strong>Cognito Forms uses a URL</strong>, so the following scenario will include a <strong><em>Get File</em></strong> step.</p><p>This <strong><em>Get File</em></strong> step is not necessary for a platform like Wufoo, which provides the attachments as Form data. (In another article this topic will be covered using Wufoo and Zapier.)</p><p>The following article has already discussed a simpler scenario; <a href="https://kintone.medium.com/how-to-manage-google-form-submissions-with-kintone-and-make-f1dabe5a0b82">how to collect Google Form submissions with Make.</a></p><h3>Agenda</h3><ul><li>Creating the Web Form</li><li>Setting up the Kintone app</li><li>Configuring the Make scenario</li><li>Conclusion</li></ul><h3>Creating the Web Form</h3><p>The first step is to create a web form that has all the necessary fields. Navigate to Cognito Forms. The platform provides some example templates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dh4xsAQ5ojJwNFC4UNYglw.png" /></figure><p>Click “New Form” in Cognito Forms to create a new web form. Change the title, description, and add fields as desired. This article will use Text fields and one attachment field for documents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4TssiuDXUNW6Si7PIpMuEA.png" /></figure><p>After clicking the plus button on the page, click “Textbox” to add a new Text field for a first name, last name and social security number. Later, this number can be used as a customer ID, used for creating a new profile or updating an existing profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4df7UE7A0sqJ9HYPfheF8A.png" /></figure><p>Click the “Phone” and “Email” buttons to add those fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ZUjcalxYLkSUjp3ZEqY2g.png" /></figure><p>Click “File Upload” to add the attachment field for documents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B77bSo-u3oCEWcCaYHisYg.png" /></figure><p>The Cognito Form for this example is now complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DfAEpq-xFyAe_zRkIetB7g.png" /></figure><p>The created web form is now public.</p><h3>Setting Up the Kintone App</h3><p>All the fields present in the Cognito Form must also be present in the Kintone app.</p><p><strong>NOTE:</strong> If Dropdown fields are present, all the Dropdown options in Kintone must match the same spelling/casing exactly as the options in the Cognito Form Dropdown.</p><p>Create a new Kintone app, called “New Customer Form”. Add the necessary fields, and update the field codes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygBlzqTi1nryS5QRwrwnzQ.png" /></figure><p>Add Link fields for “Email” and “Phone”. Make sure to update the field codes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBqW5YfslHBqPvcfjNKTmw.png" /></figure><p>Finally, add an Attachment field which will take in the File Upload of the Drivers License.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBWPb5FGgwEIrBiWjV8K_w.png" /></figure><p>The Kintone app is now complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*IHKOXeeJN1pN6Zqo1rIMvw.png" /></figure><h3>Configuring the Make Scenario</h3><p>Navigate to Make.com, and click the button to create a new scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NMJhRBYZ2lqBjXcG7vPTyg.png" /></figure><p>The first module should be <strong>Cognito Forms</strong>, and the event is when a web form is submitted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PTaRSHwVXQiMBB5l2NoqQA.png" /></figure><p>Click “Create a Webhook”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdtthbFeI1GB2eReQ9xIoQ.png" /></figure><p>Click “Authorize Organization” to allow the connection to Cognito Forms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjvcJFmQnE42dNxgtngVMg.png" /><figcaption>The available web forms are listed as options.</figcaption></figure><p>Click “Run Once”.</p><p>Submit a test web form. Add a test drivers license to the Drivers License field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pq_IX1XhpWEVMtaexZgEkA.png" /></figure><p>Click Upload to add a drivers license and <strong>click submit</strong>.</p><p>In Make, <strong>click “Run once”</strong> and the Cognito Form record will be available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZY4JiT8eihbjNpinkNWm5w.png" /></figure><p>Click the plus button on the right side of Cognito Forms module, and add the “<strong>HTTP — Get a file</strong>” module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U9SzyQPVcJVQvuECp5TMMw.png" /><figcaption>Add the “<strong>HTTP — Get a file</strong>” module.</figcaption></figure><p>In the settings, add the Drivers License URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IlQG2eBlgfNy9m2Th-u3VA.png" /><figcaption>In the URL field, select the Drivers License URL from the menu.</figcaption></figure><p>This step will get the Drivers License data from the URL endpoint.</p><p>Click the plus button on the right side of <strong>HTTP &gt;</strong> <strong>Get a File</strong> module, and add the “<strong>Kintone — Upload a File</strong>” module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_nLV2bsLEJA--lYyIcrizw.png" /><figcaption>Add the “<strong>Kintone — Upload a File</strong>” module.</figcaption></figure><p>In the settings under <strong>File</strong>, set “<strong>HTTP— Get a file</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gxE21zhm16hjW3wMealuTQ.png" /><figcaption>Set <strong>HTTP — Get a file</strong> in the <strong>Upload a File</strong> menu.</figcaption></figure><p>Finally, Click the plus button on the right side of the <strong>Kintone &gt;</strong> <strong>Upload a File</strong> module, and add a “<strong>Kintone — Make an API Call</strong>” module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WfWTbQ6xOUJP3nrrQ6w0jw.png" /><figcaption>Add a “<strong>Kintone — Make an API Call</strong>” module.</figcaption></figure><p>Under URL, put “<strong>v1/record.json”.</strong></p><p>Under Method, put “<strong>POST”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZKP-IwaGoi9Ed8uBj3ZRIA.png" /></figure><p>Under Body, put the following JSON text. Replace the app ID, and the field codes for all your Kintone fields: first name, last name, SSN, email, phone and drivers license.</p><p><strong>Use the menu to replace the fields from the menu in between the double quotes (“”).</strong></p><pre>{app: [insert-app-id-here],<br>record: {<br>Drivers_License: {<br>value: [<br>{fileKey:&quot;{{10.fileKey}}&quot;<br>}]},<br>First_Name: {<br>    value: &quot;{{8.FirstName}}&quot;<br>},<br>Last_Name: {<br>    value: &quot;{{8.LastName}}&quot;<br>},<br>SSN: {<br>    value: &quot;{{8.SSN}}&quot;<br>},<br>Email: {<br>    value: &quot;{{8.Email}}&quot;<br>},<br>Phone: {<br>    value: &quot;{{8.Phone}}&quot;<br>}<br>}<br>}</pre><p>Paste the above text in the Body area, and replace the space within the double quotes with the Cognito Forms fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QtUDZcXblQv4jHewNAoxaw.png" /><figcaption>Map the File key and the customer fields in the body of the API call.</figcaption></figure><p>Click “Run Once” and <strong>submit another Cognito Form</strong> submission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LniSQfB8ddxjwM3er-7p-Q.png" /><figcaption>After clicking “Run Once”, the scenario is listening for a Cognito Form submission.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7arkSejD5_kmPTrJ4kG5_w.png" /></figure><p>Submit the form and navigate back to the Make scenario.</p><p>The scenario has run successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1kEEDVlWbUcup9BZU7UxSA.png" /><figcaption>A successful scenario run.</figcaption></figure><p>In Kintone, the customer’s profile record has been created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v05K3e45oJuLJCidEU-vUA.png" /></figure><h3>Conclusion:</h3><p>By using Make in this article, we’ve seen that it’s possible to integrate your web form with Kintone. But that is just the start of the possibilities. For example, this scenario could be expanded to update existing customer profiles if they exist, and create a new customer profile if they do not (by using Make to search for records by Social Security number).</p><p>The New Customer Form app can also be referenced by other apps in Kintone, to track records related to the customer’s profile (for example, Orders or Appointments). It’s possible to “lookup” any customer’s web form submission and attach them to records in another app. Other types of attachments can also be collected, such as resumes, documents and photos. This Make scenario can be expanded and molded to your specific business needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0ef0693387d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Email Automation in Kintone with Zapier]]></title>
            <link>https://kintone.medium.com/email-automation-in-kintone-3795ca159105?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3795ca159105</guid>
            <category><![CDATA[kintone]]></category>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[email-automation]]></category>
            <category><![CDATA[zapier]]></category>
            <category><![CDATA[crm]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Thu, 17 Oct 2024 13:50:13 GMT</pubDate>
            <atom:updated>2024-10-17T14:30:04.762Z</atom:updated>
            <content:encoded><![CDATA[<p>Often after an event in your CRM, it would be helpful to send an email automatically to a contact’s e-mail address. This article will explain how to send a Gmail or Outlook email to a customer’s email address when a <strong>record is created</strong>, or when the <a href="https://get.kintone.help/k/en/user/app_settings/process.html"><strong>Process Management status</strong></a> is updated.</p><p>For example, in an Orders app, when the Process Management is pushed to the “Invoice Sent” status, an email can be sent to an email address stored in the Kintone record.</p><p>Several articles have already been published about how to send an email template to a list of customers. <a href="https://kintone.medium.com/email-blast-a-list-of-customers-in-kintone-and-zapier-faed4cc31fb3">This article discusses how to email blast a list of customers via Webhooks by Zapier and a custom button</a>. <a href="https://kintone.medium.com/sending-emails-daily-to-closed-deals-via-zapier-and-kintone-09cb4b22ab5d">Another article here explains how to automatically schedule the sending of emails (for example, “Drip Campaigns”)</a>.</p><h3>Agenda:</h3><ul><li>App Overview</li><li>Record Creation as a Trigger</li><li>Process Management as a Trigger</li><li>Conclusion</li></ul><h3>App Overview:</h3><p>The app where the emails will be sent from must contain an email address. Any other information needed for the email body can be added to the app; then the record data can be used in Zapier. This simple example will use the email address, and the total. Further information could be used such as product data, and tracking numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_owqzjka_C4cq9yYstNqA.png" /></figure><p>It’s helpful to set the field codes in Kintone to something recognizable, since the field codes are used as labels in Zapier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3u5ys1zG0tcyxj3UJE8GQ.png" /><figcaption>Set the necessary field codes in Zapier.</figcaption></figure><p>Example below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*ITPyMFx16F9pCRxiTA3kFg.png" /><figcaption>The field codes are used to label Kintone fields in Zapier</figcaption></figure><p>Navigate to Zapier and create a new Zap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBqiKqmz4pAahJt_GBfgqw.png" /></figure><h3>Record Creation as a Trigger:</h3><p>Set the Trigger to Kintone, and the Event as “Record Created”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iTGmA2DjWSkpgiDxcIUH7A.png" /><figcaption>Select Kintone in the editor.</figcaption></figure><p>To send the email when the Kintone Invoice record is created, set “New Record” as the Event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7T0tSKzBk1DN819zj8NvPA.png" /></figure><p>After setting the Event, select the Kintone <strong>Account/app</strong> you want to connect to this Zap. NOTE: The label in the menu displays “Account”, but each account/connection <strong>has been set to a specific App Id</strong>. <strong>That means each account/connection in Zapier is set to a specific app</strong>. Make sure you create a new connection when you want to connect to a different app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hmvDG8n9tu0brkGG3G04g.png" /></figure><p>Select “New Account” to connect the new app called Invoices.</p><p>Get the API Token from the Invoices app, and input it into the settings. Make sure to set the correct Application (App) Id for the Invoices app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHOkfYUI9suKmF9uhW-N3A.png" /></figure><p>Generate the token, copy it, and update the app settings.</p><p>Enter the App ID, API Token, subdomain name into the Zapier Account settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*rCZAdff3sYmIu9rE2HI2Gg.png" /></figure><p>After successfully connecting to the Invoices app, click “Test” to pull recently created records in the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bX5Hg5f8EvneB0MuJ3qr8w.png" /></figure><p>Click the next Action to set the Email step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*_4GLppmGkkTwP0KKMeXImQ.png" /></figure><p>Set the Action to Gmail to send the email from your Gmail email address. Similarly, if it is desired to send the email from an Outlook address, or another emailing platform, it can be set in this step.</p><p>Like the last authentication step for Kintone, you may have to login and verify the credentials to your email account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQaouTDzUZuiv5wb2u0GFg.png" /></figure><p>The Action event will be set to “Send Email”.</p><p>Next, set the data that will be sent in the email. The recipient, the subject, and email body can be built in the “Send Email” menu. Click the plus icon to add Kintone data to the email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mk_WRPUQoESKQoxVT7YMlw.png" /></figure><p>For example, in the “To” field, the email address from the Kintone record can be set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJZY_LrXt6eanNItM-rBFQ.png" /></figure><p>Set the Subject of the email and the body, which are required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJYoEMuFUtth3WhC-PHD2g.png" /></figure><p>The Zapier tags can also be used in the Body field, to add Kintone data to the email. For example, the Total from the Invoice can be added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NJz0koaGozD9Weh0EQM_Eg.png" /></figure><p>Test the step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L0BW6aYlLKCop5uJ6zoIUw.png" /></figure><p>The email was successfully received with the proper data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mz-TYxrHKjNBP4wvECZriQ.png" /></figure><h3>Process Management as a Trigger:</h3><p>Kintone uses a feature called Process Management to track the workflow status of a record. For example, our Process Management settings include three steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*uqIetS0QgGBwkTtRRP6lDQ.png" /></figure><p>In order to have the event sent to Zapier when the status is changed, we need to enable Webhooks in the Kintone app.</p><p>Navigate to the App Settings of the Invoices app, and go to “Webhooks”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JW6f29ZnR_io9plSTah9FQ.png" /></figure><p>Set the Description and the Events that will trigger the Webhook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZaYLFGQFokLOVADTWXgy3g.png" /></figure><p>To get the Webhook Endpoint, go to Zapier and change the Trigger (the first step of the Zap) to “Webhooks by Zapier”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*RSi7YfPjIT3mlx9gQwd_PQ.png" /></figure><p>Set the Event to “Catch Hook”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TtwUmCeNkSYqps8VwN3sRQ.png" /></figure><p>Leave the Child Key blank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IOlbzdr0YRNUbwVXgIb4vw.png" /></figure><p>Under “Test”, copy the URL and paste it into the Webhook settings in Kintone. (Make sure to remove the extra “https:” from the URL.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mwmukGbfsXzPHoagHpLQpg.png" /></figure><p>Go to an Invoice record and proceed the status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*43ld3mFMqceoV_lz719Obw.png" /></figure><p>In Zapier, click “Test”, and the record should be retrieved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6xyrt_TT69T-HvSkkjwOFg.png" /></figure><p>Follow the same example from the previous section to set the send email step of the Zap.</p><h3>Conclusion:</h3><p>There are many ways to customize the automation of email sending in Kintone. We have discussed how to send a single email when a record is created, how to send an email blast to a list of customers and how to schedule regular emails to be sent.</p><p>The last subject to discuss is how to set up a Digital Marketing customization with MailChimp. It is possible to create Campaigns (email templates) via MailChimp API, as well as add a list of contacts to the Campaign. This means it is possible to use Zapier to create Campaigns and add contacts to Campaigns from Kintone. Insights such as opens and clicks can also be pulled into Kintone.</p><p>Kintone has an opportunity to enhance the Digital Marketing process, with its ability to filter contacts easily. Perhaps even graphing can be simplified with MailChimp metrics, by pulling in Campaign insights and generating reports in Kintone. This use case will be discussed further in a separate article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3795ca159105" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build an AI Assistant for Your CRM]]></title>
            <link>https://kintone.medium.com/build-a-ai-chatbot-for-your-crm-55693a5bdaea?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/55693a5bdaea</guid>
            <category><![CDATA[ai-assistant]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Tue, 13 Aug 2024 14:36:15 GMT</pubDate>
            <atom:updated>2024-08-13T14:39:52.255Z</atom:updated>
            <content:encoded><![CDATA[<p>Wouldn’t it be convenient to have an AI-powered chatbot that could answer questions about your app data in Kintone? For this use case, ChatGPT and other LLMs are promising, but not sufficient on their own. For consistently relevant results, retrieval of context is needed. This project explores <strong>Retrieval Augmented Generation (RAG)</strong>, which fetches <strong>contextual data</strong> related to a user’s question. This allows for the chatbot to provide a much more relevant answer to the user’s inquiry, with sources referenced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*TAZIP-ucmIV7_WQFMNSWIA.png" /><figcaption>A chatbox is used to answer an employee users’ question about HR documents stored in the datasource app.</figcaption></figure><h3>Agenda:</h3><ul><li>Introduction</li><li>Setting up the Data Source app</li><li>Cloning Repository</li><li>Configuring Settings</li><li>Running the Backend</li><li>Running the Frontend</li><li>Conclusion</li></ul><h3>Introduction:</h3><p>The project repository can be found <a href="https://github.com/yamaryu0508/kintone-rag-example">here at this GitHub link.</a></p><p>Retrieval Augmented Generation (RAG) architecture improves the relevance of an AI chatbot’s answers. This RAG-powered Chatbox allows a user to ask specific questions about data stored in a Kintone app. This example allows an employee user to ask about HR department documents stored in Kintone via a Chatbox frontend app.</p><p>More specifically, the <a href="https://www.langchain.com/">LangChain framework</a> uses an OpenAI model that answers the user’s questions based on context stored in a Chroma database, via a <a href="https://fastapi.tiangolo.com/">FastAPI</a> python server.</p><p>LangChain allows for many steps (from sentence transformation, to API calls) and integrations with LLMs (Large Language Model such as ChatGPT). Additionally, LangChain also uses vector databases like Chroma, which can store documents and contextual data. A chain of steps defined in LangChain help optimize the responses of the LLM Chatbot.</p><p><a href="https://docs.trychroma.com/">Chroma</a> is a vector database that converts natural language data (example, HR documents) into high-quality embeddings via sentence transformers. When the question is asked by the user, only the <strong>embeddings related to the question</strong> are retrieved from Chroma. These embeddings are used as context in the prompt that is provided to OpenAI model, which then formulates the response to the user.</p><p>This AI-powered chatbot app returns an answer related to the user’s question, by querying a Chroma database that stores data from the “<strong>Retail Store Internal FAQ</strong>” Kintone app.</p><p>An app in Kintone called “<strong>Retail Store Internal FAQ</strong>” stores PDFs, Excel files, and record data related to the store’s company policy. This app is referred to as the <strong>Data Source app</strong> (see diagram below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zn-JsyS8Osmx655pbiKF8g.png" /></figure><p>Note: Here is <a href="https://drive.google.com/file/d/1WLWaowGGvo2JL2Qf6tKdBJSG2WZ1fjji/view?usp=drive_link">an app template</a> of the “<strong>Retail Store Internal FAQ</strong>” apps, and <a href="https://drive.google.com/file/d/1vivTN9S1buyOqIYzmasp1B7VXs8uDckY/view?usp=drive_link">sample data</a>.</p><h3><strong>Setting up the Data Source app:</strong></h3><p>The data source app called “<strong>Retail Store Internal FAQ</strong>” contains question and answer data related to the company policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*MkhALJfSetbFan4RjkDrEw.png" /></figure><p>The API Token of this app, and the subdomain are needed for the Frugal RAG app. The python backend script from this project will pull data from this app, transform the sentences into embeddings, and store them in the Chroma database.</p><h3><strong>Cloning the Repository:</strong></h3><p>Create a new empty folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*5mTtGKhMy323slugImRn1w.png" /></figure><p>Open the project in VS Studio Code.</p><p>Clone the repository in the folder by running the following command in the terminal:</p><pre>git clone https://github.com/yamaryu0508/kintone-rag-example</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*0AC134DNf_dgf4_L_r6CVg.png" /></figure><p><strong>Backend folder </strong>contains the python server for generating responses.</p><p><strong>Frontend folder </strong>contains the TypeScript project for the Chatbox user interface.</p><p><strong>Images folder</strong> contains diagrams of the architecture, and a sample screenshot of the chatbox.</p><p>Next, install the python packages for the backend by running:</p><pre>cd kintone-rag-template<br>cd backend<br>cd app<br>pip install -r requirements.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*GL2jnN455k_XgbEGmunXxQ.png" /></figure><p>Next, <a href="https://www.geeksforgeeks.org/npm-dotenv/"><strong>dot env</strong></a> will be installed. Navigate to the <strong>backend folder </strong>in the console.</p><pre>cd ..<br>pip install python-dotenv</pre><h3><strong>Configuring Settings:</strong></h3><p>Click on the <strong>backend</strong> folder and create a file called<strong> “.env”.</strong></p><p>Add the following code and add the Kintone API Key to the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*IqTBVtN3bkqpMJSZJfgUZw.png" /></figure><p>To get the token, <a href="https://platform.openai.com/apps">go to OpenAI</a> and get an API Token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*KJvMNGiQl4laPR3UWqhj5g.png" /></figure><p>Navigate to Dashboard, then to API Keys. Generate a key and add it to the .env file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*kdsuv2SB8t0SpPUX1JzROQ.png" /><figcaption>Page for creating a new API Token in OpenAI.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*cjtyArp6U_UGIXVfKYhEzg.png" /></figure><p>Now that the API Keys have been added, the settings stored in <strong>development.yml </strong>must be updated. Navigate to <strong>app &gt; config </strong>and open the file.</p><p>In the file, update the subdomain in the <strong>base_url,</strong> and the app id under <strong>apps &gt; id</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*IfTdeseuf7OU6DYl_DL90g.png" /></figure><p>Now the configuration of the project is complete.</p><h3><strong>Running the Backend:</strong></h3><p><a href="https://docs.docker.com/desktop/install/mac-install/">Install Docker.</a> If your OS is too old to run the current version of Docker and upgrading is not desirable, use this <a href="https://gist.github.com/franklinyu/5e0bb9d6c0d873f33c78415dd2ea4138">unofficial list</a> to find an older version of Docker. This version was used for <a href="https://desktop.docker.com/mac/main/amd64/93002/Docker.dmg">Big Sur 11.6.</a> Docker takes 1.9 GB of disk space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*WSvDgcI7U2Q2jHIbhBTmgA.png" /></figure><p>Docker has been successfully installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*9oGi-mLp86cJ3-2UIjVS4A.png" /></figure><p>Now you can run the following command.</p><p>Navigate to the backend folder and run Docker Compose.</p><pre>cd backend<br>docker-compose up</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*6g6RPKArc38NYJpwlCA4eg.png" /></figure><p><strong>Allow the changes.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*Surwmldf2n6TtYwroUWu6g.png" /></figure><p>The build process will proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*42ZYVdwMM4aq4tOmXYFSIQ.png" /></figure><p>The backend app will now display in the Docker Desktop dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*aUqxMTXiT4qgVVnv4X5HSw.png" /></figure><p>Expanding the backend will expose the apps running from the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*eNs_LjUqgO4KvGls-yQWsg.png" /></figure><p>Use this <strong>cURL </strong>command in the terminal to test the newly running backend:</p><pre>curl -X POST http://localhost:8000/api/chromadb/rag/query -H \<br>&quot;Content-Type: application/json&quot; -d &#39;{&quot;query&quot;: &quot;What is the uniform policy?&quot;}&#39;</pre><p>The backend’s response will log in the Docker logs. (NOTE: A warning about deprecated packages may appear. This should not affect the functionality.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*iesM4zTKDp6TMcsSGxZb4w.png" /><figcaption>The Docker log mentions deprecated packages.</figcaption></figure><p>This is a sample response to the <strong>cURL </strong>command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*DzHQdT1UBeC6rx8hf6PP8w.png" /></figure><h3><strong>Running the Frontend:</strong></h3><p>Now that the backend is running, the frontend can be deployed.</p><p>Navigate back to the VSCode project and check <strong>src &gt; constants &gt; index.ts</strong> to make sure the API_ENDPOINT is <a href="http://localhost:8000.">http://localhost:8000.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*VQWoAm-jj_kIEOtiPq99-Q.png" /></figure><p>Open a second terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*ap3j0qJ87oRlbp9ki2-LIw.png" /></figure><p>Run the following commands in the new terminal:</p><pre>cd kintone-rag-template<br>cd frontend<br>brew install yarn<br>yarn install yarn build</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*dWXWfPl6E0ftfeywZHtZzg.png" /><figcaption>Build was successful.</figcaption></figure><p>For the next step, make sure <a href="https://www.geeksforgeeks.org/how-to-enable-live-server-on-visual-studio-code/">LiveServer extension is installed in VSCode</a>. This extension will locally serve the bundled frontend project, which will be used in Kintone to display the Chatbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*5pXYDPrw9zuDsALETYMWVg.png" /><figcaption>After installation, LiveServer should appear in the bottom right of VSCode editor.</figcaption></figure><p>Next, run the LiveServer extension in VSCode.</p><p>This will open the locally hosted project file. Navigate to the <strong>desktop.js</strong> bundle file, and copy the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*ivvsteE4jWDCnwUyITdPKA.png" /></figure><p>Copy the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*q1uU1QDg2N5f0ATO6aojgA.png" /></figure><p>Navigate back to the Kintone app, go to the app settings and select “JavaScript and CSS Customization.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*x36eXTYUhdZET-2HKwehxA.png" /></figure><p>Paste the URL under <strong>JavaScript Files</strong> and update the app settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*ghdC9iozDm1qno4Ivk5N6w.png" /></figure><p>The chat icon has been added to the bottom right corner of the list view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*3T3oQ3-GGAOhj18aqFlHeQ.png" /></figure><p>The user can now input a question and receive an answer in the Chatbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*TAZIP-ucmIV7_WQFMNSWIA.png" /></figure><h3><strong>Conclusion:</strong></h3><p>This project demonstrated how business data can be converted into context for an LLM model like ChatGPT. The Kintone app used as the data source provided records and documents to Chroma, which converted natural language to embeddings format.</p><p>There are strong implications for Frugal RAG Architecture because engineers have been researching how users can efficiently ask AI about their data stored in a CRM database. Fine-tuning capabilities of OpenAI alone are not powerful enough to provide contextual answers, and it is not sufficient for this use case. Therefore, the <strong>retrieval</strong> of contextual information is necessary for LLMs to return accurate responses. This is how <strong>retrieval augmented generation (RAG)</strong> improves the relevance of the model’s answers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55693a5bdaea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Backing up and Restoring Data in Kintone]]></title>
            <link>https://kintone.medium.com/backing-up-and-restoring-data-in-kintone-e6be8adf5dea?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6be8adf5dea</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[kintone]]></category>
            <category><![CDATA[backup]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Thu, 27 Jun 2024 17:32:22 GMT</pubDate>
            <atom:updated>2024-06-28T16:32:13.471Z</atom:updated>
            <content:encoded><![CDATA[<p>Although permissions capabilities in Kintone are strong, accidentally deleting data in Kintone is still possible. When deleting records, spaces and apps, users feel stressed by the loss of important information. Once records are deleted, they cannot be restored without a backup. That is why it is important to schedule the creation of backup stores of Kintone records.</p><p>This article covers restoration of deleted records, fields and attachments. Refer to these guides if an <a href="https://jp.cybozu.help/k/en/admin/app_admin/restore_app.html">app</a> or a <a href="https://jp.cybozu.help/k/en/admin/space_admin/restore_space.html">space</a> has been deleted.</p><p>The tool used by this tutorial is <a href="https://github.com/kintone/cli-kintone">cli-kintone</a> for <strong>macos</strong>. <strong>cli-kintone</strong> is a program used in the Mac’s Linux shell Terminal.</p><p><strong>NOTE:</strong> When records are deleted, the <a href="https://get.kintone.help/k/en/user/app_collectdata/history/whatshistory.html#:~:text=To%20check%20the%20change%20history,the%20record%20content%20was%20edited.">record edit history</a> and other record metadata <strong>cannot be restored</strong>. When restoring an app or space, the metadata <strong><em>is</em></strong> restored.</p><h3>Agenda</h3><ul><li>Installing <strong>cli-kintone</strong></li><li>Exporting Data with <strong>cli-kintone</strong></li><li>Exporting Data on a Schedule with <strong>crontab</strong></li><li>Exporting Attachment field Backup Data with <strong>cli-kintone</strong></li><li>Restoring All Records</li><li>Restoring Some Records (Manual Restore)</li><li>Restoring a Deleted Field</li><li>Restoring a Deleted Attachment Field</li></ul><h3>Installing cli-kintone</h3><p>Download the <strong>cli-kintone package</strong> from <a href="https://github.com/kintone/cli-kintone">cli-kintone GitHub page</a>.</p><p>Double click the downloaded file to extract the folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*SSA95vRrCQy-weVBH7iP1g.png" /><figcaption>Extracting the downloaded cli-package will create the folder where backups are generated.</figcaption></figure><p>Open the folder, and right click the <strong>cli-kintone </strong>exe file. Click “Copy” to copy the exe file’s <strong>location</strong> (also known as the “<strong>path”)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*9pP-245C66rDbiOsCZge0Q.png" /></figure><p>In the Terminal, type the following command, and paste the file’s location between the single quotes (replacing the <strong>&lt;exe-file-location&gt;</strong> tag).</p><pre>alias cli-kintone=&#39;&lt;exe-file-location&#39;</pre><p>Now, <strong>cli-kintone</strong> can be called by typing the following command into the console.</p><pre>cli-kintone</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*fZZwohquJZLDQa-2qUVSDA.png" /><figcaption>cli-kintone has been installed.</figcaption></figure><h3>Exporting Data with cli-kintone</h3><p>To export data, use the <strong>cli-kintone record export </strong>command. Provide the App ID, API Token of the app, the link to the subdomain (example, “https://mysubdomain.kintone.com”), and the folder path/location to save the data.</p><p>To save the backup data in a folder, “Copy” the folder in Finder. This will get the path/location of the folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*FVtMGNOjsC0esDDnr5tx0g.png" /></figure><p>Paste this to <strong>replace the &lt;backup-folder-path&gt;</strong> tag below.</p><p>The folder location contains the name to give the backup file (example, “<strong>backuplog.csv</strong>”).</p><p>For the following command, replace the tags (&lt;&gt;) with the subdomain, API Token, the App Id, and the backup folder path/location to save the file.</p><pre>cli-kintone record export \ <br>--base-url https://&lt;mysubdomain&gt;.kintone.com \ <br>--api-token &lt;api-token&gt; \<br>--app &lt;id&gt; \<br>&gt; &lt;backup-folder-path&gt;/mybackup.csv</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CBSW4nQnGr6odmpsqoEWPg.png" /><figcaption>Example of running the command in the terminal.</figcaption></figure><p>The folder location provided in the command will store the newly saved file of Kintone data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*j-v8TzI_xEVcdUq5Ad9_rA.png" /><figcaption>The backup file of Kintone records was saved to the folder.</figcaption></figure><p>Similarly, csv data can be imported into the Kintone app by using <strong>cli-kintone record import</strong>. This will be explained in more detail later when discussing restoring Attachment field files.</p><h3>Exporting Data on a Schedule with Crontab</h3><p>To execute the <strong>cli-kintone</strong> <strong>export command</strong> automatically every week, crontab in the Terminal will be used.</p><p>In the terminal, run the following command to add nano as the editor for crontab.</p><pre>export EDITOR=nano</pre><p>Run the following commands to create a shell script to store the<strong> cli-kintone export</strong> function.</p><pre>touch backuplogscript.sh</pre><p>Edit the backup log script with the following command.</p><pre>nano backuplogscript.sh</pre><p>In Finder, “Copy” the folder that the backup data will be saved in. This will be the <strong>path/</strong>location for both the <strong>backup csv</strong> and the attachments backup, called <strong>&lt;backup-folder-path&gt;</strong> in the example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*WNSF5NOt3egoJHP9EyWgzQ.png" /><figcaption>In this example, the backup data will be saved in <strong>“cli-kintone-macos”</strong></figcaption></figure><p>In the editor, paste the <strong>cli-kintone export</strong> command. Add the <strong>attachments-dir flag</strong> to export attachments and record data. Replace the <strong>&lt;backup-folder-path&gt;</strong> with the <strong>path</strong>/location.</p><p>Each log will be named with the date created.</p><pre>current_date=$(date +&quot;%Y-%m-%d&quot;)<br>cli-kintone record export \ <br>--base-url https://&lt;subdomain&gt;.kintone.com \ <br>--api-token &lt;api-token&gt; \<br>--app &lt;id&gt; \<br>&gt; &lt;backup-folder-path&gt;/backuplog_$current_date.csv \<br>--attachments-dir &lt;backup-folder-path&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KzlvFnMq06p4j_wKP_2GpA.png" /><figcaption>The schedule script is created with nano text editor.</figcaption></figure><p>Save by pressing <strong>CTRL+O</strong>, exit the nano text editor by pressing <strong>CTRL+X</strong>.</p><p>Get the backup script’s <strong>location</strong>/path, by clicking “Copy” on the backup script in the Finder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Ac5nAgQIbONklm0TF3MGw.png" /></figure><p>Paste the backup script’s location/path into the command below. This enhances permissions for the script.</p><pre>chmod +x &lt;backup-script-path&gt;</pre><p>It should look something like this example:</p><pre>chmod +x /Users/pathtoscript/backupscript.sh</pre><p>Now run the command to edit <strong>crontabs </strong>jobs.</p><pre>crontab -e</pre><p>In the editor, add the following line to the file. For example, this runs the command every Sunday at 2 AM.</p><p>0 2 * * 0 specifies the time schedule:</p><ul><li>0: minute (0th minute)</li><li>2: hour (2 AM)</li><li>*: day of the month (any day)</li><li>*: month (any month)</li><li>0: day of the week (0 represents Sunday)</li></ul><pre>0 2 * * 0 &lt;backup-script-path&gt;</pre><p>It should look something like this example:</p><pre>0 2 * * 0 /path/to/your/script.sh </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1EK6mlTqNzdogHtc4CkcNQ.png" /><figcaption>The line was added to the crontab file.</figcaption></figure><p>Save by pressing <strong>CTRL+O</strong>, exit the nano text editor by pressing <strong>CTRL+X.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*XFeLVkYYRht3ptg8CdnwHw.png" /><figcaption>The job is added to the scheduler.</figcaption></figure><p>To verify the cron job has been set up correctly, list your current cron jobs by running this command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*9lHIXPpktXTG4AygNbPMeA.png" /><figcaption>Accept the permissions alert.</figcaption></figure><p>Run the command to verify the script has been scheduled.</p><pre>crontab -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*qjz37ktt99h_OsSnfjPADg.png" /><figcaption>The shell script is listed in the scheduled jobs.</figcaption></figure><p>The dated backup data has been created successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*3vn1kqcMMC53IF_jLN-mgg.png" /></figure><p>As time passes, your data backup will contain weekly logs of Kintone data from the app.</p><h3>Exporting Attachment field backup data with cli-kintone</h3><p>Records can store documents and files by using the Attachment fields. This data can also be backed up and restored if accidentally deleted.</p><p>Use the same <strong>record export</strong> command, but with the <strong>— — attachments-dir</strong> flag. Provide the folder location for where to store the files from Kintone Attachment fields.</p><pre>cli-kintone record export \ <br>--base-url https://&lt;subdomain&gt;.kintone.com \ <br>--api-token &lt;api-token&gt; \<br>--app &lt;id&gt; \<br>&gt; &lt;backup-folder-path&gt;/mybackup.csv \<br>--attachments-dir &lt;backup-folder-path&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*atNMcixeUMNPPEzRV2oTTg.png" /><figcaption>The command will export the Kintone record data to the existing folder with the name provided (example, “log10.csv”).</figcaption></figure><p>The files in the Attachment fields will be saved to separate folders for each record (example, “Attachment-<strong>13011</strong>” are the files from Kintone record number <strong>13011</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*JuubPkUyXdLgw9fKlP0oFw.png" /></figure><p>Now that the Kintone data is backed up, it can be used to restore deleted record data.</p><h3><strong>Restoring All Records</strong></h3><p>This section will cover restoring all records and attachments when <strong>all records are deleted</strong>. The backup data created by<strong> cli-kintone record export command</strong> will be used.</p><p>Get the location/path of the backup csv by “copying” the file in Finder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*CrFOcktTD3tVlDBEaEDc3g.png" /><figcaption>Right clicking the backup csv and clicking “Copy” get’s the file’s location/path</figcaption></figure><p>Use the following<strong> cli-kintone record import</strong> command. <strong>Replace</strong> the tags (&lt;&gt;) with the subdomain, the API Token, the App Id, and the file location/path of the backup csv. Replace the <strong>&lt;backup-csv-path&gt;</strong> tag by “Pasting” the backup csv’s path/location.</p><pre>cli-kintone record import --base-url https://&lt;subdomain&gt;.kintone.com \<br>--api-token &lt;api-token&gt; \<br>--app &lt;id&gt; --file-path &lt;backup-csv-path&gt; \<br>--update-key Record_number</pre><p>If the Attachment data must also be restored, add the <strong>attachment-dir flag</strong>. Replace the path/location of the Attachment backup.</p><p>In the Finder, right-click and “Copy” the <strong>folder that contains</strong> the Attachment backup data (in this example, “<strong>cli-kintone-macos” folder </strong>contains all the Attachment backup data).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*YumewinDVCRfXOfAKXvvqg.png" /><figcaption>Get the path/location of the Attachment backup folder.</figcaption></figure><p>Paste the path/location to replace the <strong>&lt;attachments-backup-path&gt;</strong> tag.</p><pre>cli-kintone record import --base-url https://&lt;subdomain&gt;.kintone.com \<br>--api-token &lt;api-token&gt; \<br>--app &lt;id&gt; --file-path &lt;backup-csv-path&gt; \<br>--attachments-dir &lt;attachments-backup-path&gt; \<br>--update-key Record_number</pre><p>It should look something like this example:</p><pre>cli-kintone record import --base-url https://mysubdomain.kintone.com \<br>--api-token XUYgiuyXIUBiubXoiniyb \<br>--app 16 --file-path /Users/MyUser/Downloads/cli-kintone-macos/backuplog.csv \<br>--attachments-dir /Users/MyUser/Downloads/cli-kintone-macos/ \<br>--update-key Record_number</pre><h3><strong>Restoring Some Records (Manual Restore)</strong></h3><p>In the case that <strong><em>some </em></strong>records are deleted, the records to restore <strong>must be identified</strong> in the backup data file. The records to restore must be imported back into Kintone via manual import or cli-kintone import.</p><p>Identify the deleted records by <strong>exporting all </strong>of<strong> </strong>the remaining data from the Kintone app. Make sure to export the Record number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1S_140QlpJKIcxJUo4MXmQ.png" /></figure><p>Open the <strong>backup file</strong> of records. Paste the backup record data beside the exported Kintone data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UJGICqll8GveyfjeI30Tkg.png" /></figure><p>Paste the backup record data beside the exported Kintone data.</p><p>To identify which records were deleted, highlight the Record number column from the exported data, and the Record Number column from the backup data.</p><p>Use <strong>Highlight Cell Rules &gt; Duplicate Values</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C925tSoR_yfB7Ymy76Eisw.png" /></figure><p><strong>The</strong> <strong>unhighlighted Record numbers are the</strong> <strong>records that were deleted.</strong></p><p>Copy and paste these records into a new Excel sheet and import the file into Kintone.</p><h3><strong>Restoring Attachments Manually</strong></h3><p>There are cases where some records and not all records have been deleted, and need to be restored. In this case, the deleted records need to be identified and restored manually. First, the record data should be restored with the <strong>cli-kintone import </strong>function. Then, each record must have the file added back to the Attachment field.</p><p><strong>When restoring attachments manually,</strong> it is helpful to rename the Record number column, and upload it into a new field called “Old Record Number.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vhqv-79cPPxaQ68uATAzeQ.png" /></figure><p>This way, the old record number can help with <strong>identifying and manually restoring attachments</strong>, which are named after the original Record number.</p><p>Create a field in the app in Kintone to store the original Record number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*um26FwCeeyV76yo21C9PGw.png" /></figure><p>Import the record data (with the old Record number) into the Kintone app.</p><p>Now to <strong>manually restore attachments</strong>, navigate to the backup folder of attachments.</p><p>Based on the <strong>folder name (the same as the old Record number)</strong>, the following attachment <strong>test.png </strong>will be attached to the new record with the original record number (example, <strong>18011)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*GxAA-Eoe2DFEjr7I8DdIjw.png" /></figure><p>In Kintone, filter for the “Old Record Number” (example, <strong>18011).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*Z0Y6_Ij4zjSWe96avNT5gQ.png" /></figure><p>Add the attachment to the record and save to restore.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*MyRLQoRERZIiLPDWKwBoHg.png" /></figure><p>The record data has been successfully restored.</p><h3>Restoring a Deleted Field</h3><p>If a field in Kintone is deleted, the field must be manually added back to the app. After the field is restored, the data in the field that was deleted can be restored using <strong>cli-kintone</strong>.</p><p>The data can also be restored by native import of the backup csv file into the app, with the <a href="https://jp.cybozu.help/k/en/user/using_app/import_records.html"><strong>key-to-bulk update</strong></a> field selected on the <strong>Record number</strong>.</p><p>The deleted field (example, “Last Name”) must be added back to the app, with the same field code. Refer to the backup csv and check the column names if the field code is not known, similar to the manual restore technique.</p><p>The cli-kintone record import command can be used.</p><pre>cli-kintone record import --base-url https://&lt;subdomain&gt;.kintone.com \<br>--api-token &lt;api-token&gt; \<br>--app &lt;id&gt; --file-path &lt;backup-csv-path&gt; \<br>--update-key Record_number</pre><p>The missing data will be restored to the existing records.</p><h3><strong>Restoring a Deleted Attachment Field</strong></h3><p>Like the previous step, if the Attachment field has been deleted, add back the Attachment field to the Kintone app. Make sure the new Attachment<strong> field code is the same</strong> as the original Attachment field.</p><p>Use the following <strong>cli-kintone</strong> command to restore the records with attachments. Provide the folders where the record data and attachment backup data are located.</p><pre>cli-kintone record import --base-url https://&lt;subdomain&gt;.kintone.com \<br>--api-token &lt;api-token&gt; \<br>--app &lt;id&gt; --file-path &lt;backup-csv-path&gt; \<br>--attachments-dir &lt;attachments-backup-path&gt; \<br>--update-key Record_number</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*7T0C-bR7O0re0iylw0Wj7Q.png" /></figure><p>Attachment data has been restored.</p><h3>Conclusion</h3><p>This concludes the article about backup and restoring data in Kintone. It’s important to have systems in place to prevent information loss. For example, take steps to restrict delete permissions for all users except the Administrator. Pre-emptive steps are necessary for proper protection of your data.</p><p>Subscribe to <a href="https://kintone.dev/en/">Kintone Developer Program</a> for more information on customization and enhancement of apps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6be8adf5dea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scheduling Tasks in Kintone with Zapier]]></title>
            <link>https://kintone.medium.com/scheduling-tasks-in-kintone-with-zapier-6e2f97b81fdd?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e2f97b81fdd</guid>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[zapier]]></category>
            <category><![CDATA[scheduling]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[kintone]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Thu, 06 Jun 2024 16:19:04 GMT</pubDate>
            <atom:updated>2024-06-06T16:19:04.573Z</atom:updated>
            <content:encoded><![CDATA[<p>Sometimes it is desirable to have Kintone records created automatically on a schedule. For example, your business may have recurring tasks, or repeated events that need to be created regularly. Normally a user would have to manually create these records in Kintone. However, it is possible to automate this process by using a combination of <strong>Schedule by Zapier</strong> and Kintone. <strong>Schedule by Zapier</strong> can be used to trigger a Zap on a daily, weekly, or monthly basis.</p><p>In this article, two recurring Tasks records will be created in a Kintone app called “Tasks”, by using Zapier.</p><h3>Scheduled Tasks in Kintone:</h3><p>Start by creating a new Zap called “Scheduled Tasks in Kintone”.</p><p>The first step of the Zap should be the “Schedule by Zapier” module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcLyDZH7sW3jcuZjjDZFDA.png" /></figure><p>The settings for Schedule by Zapier allow you to set the frequency of the trigger. Select “Every Week” to set the schedule to weekly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SqlPoW84AB8LDDK1Cl2kCA.png" /></figure><p>Select “Monday” to have the trigger start at the beginning of the week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Pr-VdrJRwR5rlD26HaPSQ.png" /></figure><p>Set the time under “Trigger” to 12:00am.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZxDSVAqrR1eNlSkGl7wAwg.png" /></figure><p>The first step is complete.</p><p>Click “Action” to add the next step for creating a record in Kintone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*637xP_3ns0Ul5Z-vTgEfwQ.png" /></figure><p>Add Kintone to the step, and select the “Create Record” event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WV_uDaylNvskzMkHWW5JA.png" /></figure><p>When connecting Kintone, you may need to authenticate the connection between Zapier and Kintone. The Application ID should be the ID of the app (for example the Tasks app) that the Zap will create Kintone records in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhsdyK2HUpCKf0ohD_gm4w.png" /></figure><p>The API Key can be retrieved from the App Settings of the app Zapier will update (<strong>App Settings &gt; API Token</strong>). The app settings must be <strong>saved and updated</strong> before the API Key can be used by Zapier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MM_An3EXsOjDbcVPHLBmhA.png" /></figure><p>It is also always helpful to update the field codes to a recognizable value (example, “Task Name”). The field codes are used as field labels in Zapier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PzfutcWWuSG8hfwSxMWDBw.png" /></figure><p>Now in Zapier the fields are easier to identify. Below, the Task Name field is named with the field code “<strong>Task_Name</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9h4VLDcwMuH0S0uvVvPfQ.png" /></figure><p>In each of the blank fields, input the default data that will be used to create the Kintone record. Below a weekly record is created for the user with login “erica@kintone.com”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4eCcKxW0mWTvMT_0Zi5uwg.png" /><figcaption>Under User Selection fields, <strong>put the Login Name of the user to assign them.</strong></figcaption></figure><p>Test the creation of the record by clicking “Retest step”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SpYn0CkWZw0etgzXdZB69w.png" /></figure><p>Upon success, Zapier returns a Revision ID. The newly created record can be seen in Kintone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vA2PteuzDQAv2qirXPUtpw.png" /><figcaption>The task record was created and assigned in Kintone.</figcaption></figure><p>The creation and assigning of this new record will occur every Monday.</p><p>The user wants to add another record to be created on a scheduled basis, simply add another “Create Kintone Record” step to this Zap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*TIS78AviQbAjG0nQqhydJA.png" /><figcaption><strong>Add a step</strong> to add another record to the schedule.</figcaption></figure><p>The steps for creating a record in Kintone are the same. Select Kintone in the step, and select “Create Record” as the Event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fh34kMZcCiWZsRUde88E-A.png" /></figure><p>Follow the same steps as before to create a second record. Below, a second Task record is created called “Follow up with Leads” and it is assigned to the Kintone user by login name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7h37Mvf4I-aHofHqws62Cw.png" /></figure><p>By clicking “Test Step”, the creation of the second record can be verified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9EsIDMeDld-RRN1nnshDcA.png" /></figure><p>The record will be created in Kintone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEuQYUMe1ilUQ4jB1g0ytQ.png" /><figcaption>The second record was created.</figcaption></figure><p>With the current Zap settings, these two records will be created every Monday. Click “<strong>Publish</strong>” and the records will now be automatically created on the weekly schedule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsNGALbnAy6_bHsK-joEug.png" /><figcaption>Click Publish to start the Zap.</figcaption></figure><h3>Conclusion:</h3><p>The ability to schedule actions in Kintone is very powerful. It empowers the user to add even more automation to the CRM. You may have already thought of actions your business does on a regular basis. Can Schedule by Zapier potentially improve your use case? For example perhaps it is useful to fetch a list of customer emails from Kintone and send emails to all of them on a schedule. These topics will be explored in further articles.</p><p>Navigate to <a href="https://kintone.dev/en/">Kintone Developer Program</a> and <a href="https://forum.kintone.dev/">Kintone Developer Forum</a> for more information related to building custom functionality in Kintone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e2f97b81fdd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a React app in Kintone]]></title>
            <link>https://kintone.medium.com/create-a-react-app-in-kintone-9f6d27ed47a5?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f6d27ed47a5</guid>
            <category><![CDATA[kintone]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[custom-crm-software]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Fri, 12 Apr 2024 14:22:32 GMT</pubDate>
            <atom:updated>2024-04-15T19:18:36.224Z</atom:updated>
            <content:encoded><![CDATA[<p>Sometimes it is desirable to make custom UI components in Kintone. React is a library that is used to create reusable components with flexible functionality. For example, Kintone records can be represented as drag-and-droppable cards by using React. In this tutorial, the process of creating a React project and attaching it to a Kintone app is demonstrated.</p><p>This tutorial will use <a href="https://code.visualstudio.com/">VS Code</a> with the <a href="https://www.geeksforgeeks.org/how-to-enable-live-server-on-visual-studio-code/">LiveServer</a> extension to create and attach the React project file in Kintone. <a href="https://nodejs.org/en/download">Node and NPM</a> will be used to install/manage our JavaScript code and libraries.</p><h3>Overview</h3><ul><li>Creating a Custom View in Kintone</li><li>Creating a React app and adding required packages</li><li>Update project code</li><li>Start the Project and Add to Kintone</li><li>Conclusion</li></ul><h3>Creating a Custom View in Kintone</h3><p>You can use or create any Kintone app for this example.</p><p>Navigate to the app settings and create a Custom View.</p><p>Click the app settings gear icon and navigate to Views:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2q-rtWhO8F6hFZT5XKV9SA.png" /></figure><p>Click the plus button to create a new View:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BiBCewVQThClz0Xtmvl4gA.png" /></figure><p>Check “Custom View” and rename the view to “Custom View”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SmBxYxa1YTxVLx29uABz-Q.png" /></figure><p>The Custom View section will appear. In the HTML Code section, add the text below. <strong>Save the View ID.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T8LBD3pdAkFII6f-3V2h7A.png" /></figure><p>Click Save and Update the app.</p><p>Create an empty folder on your computer, and name it “DragAndDropTaskReact”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*3xg9hIWz3Uf3kd1PPXO1Xg.png" /></figure><p>Open this empty folder in VS Code and open a new terminal window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q58grgpuojwGuEoh9cXYdg.png" /></figure><p>Run the following commands in the terminal.</p><p>This command will create an initial React project called “dragdropapp”. within that empty folder.</p><pre>npx create-react-app dragdropapp</pre><p>Install the following packages into the project to allow bundling of React, CSS and image files.</p><pre>cd dragdropapp<br><br>npm install babel-loader<br><br>npm install -save-dev @babel/core @babel/preset-env @babel/preset-react<br><br>npm install css-loader style-loader file-loader</pre><p>The following command will install necessary Webpack libraries. Webpack is used to bundle code files and libraries into one file.</p><pre>npm install webpack webpack-cli</pre><p>The following commands will install React and ReactDOM.</p><pre>npm install react react-dom</pre><p>The project is now ready to be edited to work with Kintone.</p><h3>Update Project Code</h3><p>Update the index.js file with the following code. The code will attach the React App.js component to Kintone’s root element that we created in the first step of the tutorial. NOTE: Make sure to replace the <strong>Custom View ID</strong> from the first step.</p><p>Also, make sure the App.js file has “import React from ‘react’ ” at the top to avoid errors.</p><pre>import React from &#39;react&#39;;<br>import ReactDOM from &#39;react-dom&#39;; <br>import &#39;./index.css&#39;;<br>import App from &#39;./App&#39;;<br>import reportWebVitals from &#39;./reportWebVitals&#39;;<br><br>(() =&gt; {<br>  kintone.events.on(&#39;app.record.index.show&#39;, (event) =&gt; {<br>    console.log(&#39;loaded&#39;);<br>// Replace the Custom View ID-----&gt;<br>    const customView = Number(&lt;Custom View ID&gt;);<br>    let rootElement = document.getElementById(&#39;root&#39;);<br>    if (!rootElement) {<br>      rootElement = document.createElement(&#39;div&#39;);<br>      rootElement.id = &#39;root&#39;;<br>      document.body.appendChild(rootElement);<br>    }<br>    ReactDOM.render(<br>      &lt;React.StrictMode&gt;<br>        &lt;App/&gt;<br>      &lt;/React.StrictMode&gt;,<br>      rootElement<br>    );<br>    return event;<br>  });<br>})();</pre><p>Update package.json. It will include a “scripts” section with commands like “build” that will create the bundled project file.</p><pre>{<br>  &quot;name&quot;: &quot;dragdropapp&quot;,<br>  &quot;version&quot;: &quot;0.1.0&quot;,<br>  &quot;private&quot;: true,<br>  &quot;dependencies&quot;: {<br>    &quot;@testing-library/jest-dom&quot;: &quot;^5.17.0&quot;,<br>    &quot;@testing-library/react&quot;: &quot;^13.4.0&quot;,<br>    &quot;@testing-library/user-event&quot;: &quot;^13.5.0&quot;,<br>    &quot;css-loader&quot;: &quot;^7.0.0&quot;,<br>    &quot;file-loader&quot;: &quot;^6.2.0&quot;,<br>    &quot;react&quot;: &quot;^18.2.0&quot;,<br>    &quot;react-dom&quot;: &quot;^18.2.0&quot;,<br>    &quot;react-scripts&quot;: &quot;^3.0.1&quot;,<br>    &quot;web-vitals&quot;: &quot;^2.1.4&quot;,<br>    &quot;webpack&quot;: &quot;^5.91.0&quot;,<br>    &quot;webpack-cli&quot;: &quot;^5.1.4&quot;<br>  },<br>  &quot;scripts&quot;: {<br>    &quot;start&quot;: &quot;react-scripts start&quot;,<br>    &quot;build&quot;: &quot;webpack --mode production --watch&quot;,<br>    &quot;test&quot;: &quot;react-scripts test&quot;,<br>    &quot;eject&quot;: &quot;react-scripts eject&quot;<br>  },<br>  &quot;eslintConfig&quot;: {<br>    &quot;extends&quot;: [<br>      &quot;react-app&quot;,<br>      &quot;react-app/jest&quot;<br>    ]<br>  },<br>  &quot;browserslist&quot;: {<br>    &quot;production&quot;: [<br>      &quot;&gt;0.2%&quot;,<br>      &quot;not dead&quot;,<br>      &quot;not op_mini all&quot;<br>    ],<br>    &quot;development&quot;: [<br>      &quot;last 1 chrome version&quot;,<br>      &quot;last 1 firefox version&quot;,<br>      &quot;last 1 safari version&quot;<br>    ]<br>  },<br>  &quot;devDependencies&quot;: {<br>    &quot;@babel/core&quot;: &quot;^7.24.4&quot;,<br>    &quot;@babel/preset-env&quot;: &quot;^7.24.4&quot;,<br>    &quot;@babel/preset-react&quot;: &quot;^7.24.1&quot;,<br>    &quot;babel-loader&quot;: &quot;^9.1.3&quot;<br>  }<br>}</pre><p>Create and update a file named webpack.config.js with the following code in the main “dragdropapp” folder. This will tell Webpack to bundle React files, image files and CSS files. Here is the code for the new webpack.config.js file:</p><pre><br>const path = require(&#39;path&#39;);<br><br>module.exports = {<br>  entry: &#39;./src/index.js&#39;,<br>  output: {<br>    path: __dirname + &#39;/&#39;,<br>    filename: &#39;dist/bundle.js&#39;<br>  },<br>  resolve: {<br>    alias: {<br>      modules: path.join(__dirname, &#39;node_modules&#39;),<br>      common: path.join(__dirname, &#39;common&#39;)<br>    },<br>    extensions: [&#39;.js&#39;, &#39;.jsx&#39;]<br>  },<br>  module: {<br>    rules: [<br>      {<br>        test: /\.css$/,<br>        use: [<br>          { loader: &#39;style-loader&#39; },<br>          { loader: &#39;css-loader&#39; }<br>        ]<br>      },<br>      {<br>        test: /\.svg$/,<br>        use: [<br>            &#39;file-loader&#39;<br>        ]<br>      },<br>      {<br>        test: /\.js$|jsx/,<br>        exclude: /node_modules/,<br>        use: {<br>          loader: &#39;babel-loader&#39;,<br>          options: {<br>            presets: [<br>              &#39;@babel/preset-react&#39;,<br>              [<br>                &#39;@babel/preset-env&#39;,<br>                {<br>                  targets: {<br>                    browsers: [<br>                      &#39;last 4 versions&#39;<br>                    ]<br>                  },<br>                  useBuiltIns: &#39;usage&#39;,<br>                  corejs: 3<br>                }<br>              ]<br>            ]<br>          }<br>        }<br>      },<br>    ],<br>  },<br>};</pre><p>Create and update the .babelrc file in the main “dragdropapp” folder. This will further configure webpack to work with React.</p><pre>{<br>    &quot;presets&quot;: [<br>      &quot;@babel/preset-env&quot;,<br>      &quot;@babel/preset-react&quot;<br>    ]<br>  }</pre><p>Finally, the project hierarchy should end up like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*n-2pJAQyUitttvszWAWcYQ.png" /></figure><p>Inside the src file is where our React components and the main file index.js is stored:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*7WXuiBc8YcNVCBdUvd7g2Q.png" /><figcaption>App.js is our first component. Index.js is the main file.</figcaption></figure><p>In the future, other components besides App.js can be created and stored in the src folder, for example “KintoneRecordCardComponent”.</p><h3><strong>Start the Project and Add to Kintone</strong></h3><p>Run <strong>npm run build in the terminal, then start LiveServer.</strong></p><p>(This creates the dist folder and bundle file).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*4wssecNpgFNdw7pItZ3XAg.png" /></figure><p><strong>LiveServer will locally serve the bundle file generated by Webpack (i</strong>n your browser, navigate to <a href="https://127.0.0.1:5500/">https://127.0.0.1:5500/</a>, go to dist &gt; bundle.js)<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eEAthO3cu5xGuy8xYbeUpQ.png" /><figcaption>Dist folder contains the bundled project.</figcaption></figure><p>Click on the folder to copy the link to the bundled project file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RUBW0oGmBNqrr7pbsmAqpA.png" /></figure><p>Copy the link to bundle.js.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hOh0CgcljV7_BXzVJtr5hA.png" /></figure><p>Navigate back to Kintone and input the link into the app. (App Settings &gt; JavaScript and CSS Customization).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CfXxTZ-zjA9j9NlxBM4MgQ.png" /></figure><p>Click Save, and Update App.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVM0zCXfCQNT8IFbH5oRSA.png" /></figure><p>Now in the Custom View, the user can see that React’s default project is displaying in Kintone. The React component from the App.js file is appended to the root element in Kintone.</p><p>The LiveServer link method is helpful for development, but once LiveServer is turned off, the connection between the project and Kintone will stop.</p><p>Once development is completed, simply upload the bundle.js file into Kintone.</p><h3><strong>Conclusion</strong></h3><p>This article can be referred back to whenever setting up the React environment in Kintone is needed. Using a module bundler is essential for this project, so Webpack and babel-loader was used. This example will be expanded in further tutorials to explain how Kintone records can be represented as React components.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f6d27ed47a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Email Blast a List of Customers with Kintone and Zapier]]></title>
            <link>https://kintone.medium.com/email-blast-a-list-of-customers-in-kintone-and-zapier-faed4cc31fb3?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/faed4cc31fb3</guid>
            <category><![CDATA[email-blast]]></category>
            <category><![CDATA[kintone]]></category>
            <category><![CDATA[zapier]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Fri, 05 Apr 2024 15:00:18 GMT</pubDate>
            <atom:updated>2024-04-05T17:43:04.629Z</atom:updated>
            <content:encoded><![CDATA[<p>Email blasting is a commonly desired feature when it comes to CRMs. Sending a single template email to a list of customers in Kintone can be done with the <a href="https://github.com/SendGridJP/kintone-sendgrid-plugin">SendGrid plugin</a>, or <a href="https://pluginmarketplace.kddia.com/products/infobip-1">KDDI Bulk Send plugin</a>. It can also be done via a Zapier integration. In this tutorial, a custom button will be created in the list view of a Kintone app with JavaScript. When clicked, a list of email addresses from the Kintone app will be sent to a Zapier workflow. In Zapier, that list of email addresses will be looped on; all email accounts will be sent the same template email.</p><p>Sending Kintone data to a Zapier Webhook increases flexibility and functionality more than using a plugin. Zapier steps allow for filtering logic, and the creation of complex workflows. However, this tutorial will remain simple, with no conditional logic.</p><p>First, go to Zapier and create a new Zap:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FWbpRDHha_dKsU_JZs6GJw.png" /><figcaption>Create a new Zap and call it “Send Emails to Customer List”</figcaption></figure><p>Select the “1. Trigger”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45wnhQghTdXEexmnbEJYfg.png" /><figcaption>Select a new trigger: “Catch Hook in Webhooks by Zapier”</figcaption></figure><p>Add “Webhooks by Zapier” as the trigger step. Under Event, select “Catch Hook”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IPs2XQulJ743aFVa1hAHRQ.png" /><figcaption>After setting the Event, select “Continue”</figcaption></figure><p>Catch Hook will be able to “catch” the data being sent from Kintone.</p><p>After selecting “Continue”, leave the value for “Pick off a Child Key” blank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OBYuKXPY_QmxEcztqTx52g.png" /><figcaption>Do not fill in the child key.</figcaption></figure><p>Finally, under Test, the URL to the Catch Webhook is provided. In Kintone, our JavaScript code will send a list of customer emails to the URL link. Save this URL to replace in the JavaScript later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mKIx4rRNoR-XdwVec_KbaA.png" /><figcaption>Copy the Webhook link, since it will be used by the button in Kintone.</figcaption></figure><p>In Kintone, navigate to your app with customer email data. In this tutorial, our <strong>Members</strong> app contains the email addresses of members. The following JavaScript code will be put into this Kintone app.</p><p><strong>NOTE:</strong> Be sure to rename the email address Kintone fieldcode to “Contact_Email”. This fieldcode is used in the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*moCGjwULgoMU5wKdsIDdZg.png" /><figcaption>Rename the fieldcode in the app that contains email addresses.</figcaption></figure><p>Here is the JavaScript. Replace <strong>&lt;Webhook URL&gt; </strong>with the URL Zapier provided in the Catch Hook step, and replace the App ID in the request body. Save the file as “emailButton.js”.</p><p>(<strong><em>Note</em></strong>: Kintone Proxy is used to send the data to Zapier, to avoid CORS errors).</p><pre>(() =&gt; {<br>    &#39;use strict&#39;<br>    const emailAddressFieldCode = &#39;Contact_Email&#39;;<br><br>    const sendEmailsToWebhook = async (emailAddresses) =&gt; {<br>                                  // REPLACE URL<br>        let resp = kintone.proxy(&#39;&lt;Webhook URL&gt;&#39;, &#39;PUT&#39;, {&#39;Content-Type&#39;: &#39;application/json&#39;},{records: emailAddresses});<br>        resp = await resp;<br>        return resp;<br>    }<br>    const getCustomerEmailAddresses = async () =&gt; {<br>        const body = {<br>            // REPLACE APP ID<br>            app: &lt;App ID&gt;<br>        };<br>        let resp = kintone.api(kintone.api.url(https://medium.com/&#39;/k/v1/records.json&#39;,%20true), &#39;GET&#39;, body);<br>        resp = await resp;<br>        const records = resp.records;<br>        const customerEmailAddresses = records.map((record) =&gt; {<br>            return record[emailAddressFieldCode].value;<br>        });<br>// Send the address list; Zapier Loop will use comma as a delimiter.<br>        const emailString = customerEmailAddresses.join(&quot;,&quot;);<br>        return emailString;<br>    }<br>    const createEmailButton = () =&gt; {<br>        const button = document.createElement(&#39;button&#39;);<br>        button.innerHTML = &quot;Send Emails&quot;;<br>        button.style.marginLeft = &#39;10px&#39;;<br>        button.style.marginBottom = &#39;10px&#39;;<br>        button.addEventListener(&#39;click&#39;, async (event) =&gt; {<br>            const emailAddresses = await getCustomerEmailAddresses();<br>            const response = await sendEmailsToWebhook(emailAddresses);<br>            console.log(response);<br>        });<br>        return button;<br>    }<br>    kintone.events.on(&#39;app.record.index.show&#39;, (event) =&gt; {<br>        const space = kintone.app.getHeaderSpaceElement();<br>        const emailButton = createEmailButton();<br>        space.append(emailButton);<br>        <br>    });<br><br>})();</pre><p>NOTE: <a href="https://kintone.dev/en/docs/kintone/rest-api/records/get-records/">Kintone’s Get Records API</a> has a limit of 500 records. If sending emails to more than 500 email addresses is needed, then please use <a href="https://github.com/kintone/js-sdk/blob/master/packages/rest-api-client/docs/record.md">Kintone REST API Client</a> (and npm), or a <a href="https://kintone.dev/en/tutorials/development-productivity/get-all-records-from-an-app-the-offset-method/">use the Offset method of fetching the data</a>.</p><p>Navigate to the App Settings, then to JavaScript and CSS Customization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-487pP2Bg3Y8iuRzTntnOg.png" /></figure><p>Upload the “emailButton.js” file, and select “Update App”.</p><p>The custom email button should now appear in the list view of the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j53VPpgTMUNUZOCSncToeQ.png" /><figcaption>Click the “Send Emails” button.</figcaption></figure><p>Click the send emails button; the list of emails will be sent to the URL of the Catch Hook. In the Developer Tools of Chrome, the response sent back from Zapier can be seen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FkqsiWstEKa0gXQirp6AxA.png" /><figcaption>On Mac, use Option+Command+J to open and close the developer tools.</figcaption></figure><p>The status from the response says “success.”</p><p>Navigate back to the Zapier scenario to see the data that has been sent over to the Catch Hook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NlYyBjzjNAZFEwoXBmwB4Q.png" /><figcaption>In Zapier, click “Test Trigger” to see the data that has been sent over.</figcaption></figure><p>In the Test tab, the list of customer email addresses can be seen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n84E7cjUSiE7py1Q8U87Vg.png" /></figure><p>Next, create another step called “Looping by Zapier”. In the Event section of the step, select “Create Loop From Text”. This will repeat the step of sending an email for every address in the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zMcX2aKJjIpmE0OI0A0EMg.png" /></figure><p>Under “Text Delimiter”, the comma is used to split and create the list of email addresses. Zapier will perform a loop on this created list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FiVI8uQERUcFsiTG2WH0yA.png" /><figcaption>For “Values to Loop”, on the left side input “email”. This variable will be used in the last step.</figcaption></figure><p>After setting the list of email addresses from the Catch Hook in the right section of “Values to Loop”, input a variable name in the left section (something like “Email’). <strong>“Email” will then be used in the Loop step of the Zap.</strong></p><p>Under the “Test” tab the loop is created. The “Email” variable is displayed, and will be used in the Gmail step. The Gmail step will be repeated for every value in “<strong>Email”</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*he7fzQvcL-i2Qpqbn_1PPQ.png" /></figure><p>Finally, for the last step, select Gmail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WrzFuAHH375cG-yue5vPUQ.png" /></figure><p>As for the Event, set it to “Send Email”. Send Email step will be performed on every customer in the customer list, as part of the looping functionality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v41L7Xc2QzTsXtERggWsYg.png" /></figure><p>Set the “To” value for the email to “Email” from the Loop step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVSDLTXqixCSXfW6G1J5yg.png" /></figure><p>Set the desired data for the Subject of the email, and for the body of the email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eKQFn-Q92xsn44EBHVEv-Q.png" /></figure><p>Select “Publish”. Navigate back to Kintone and click the “Send Emails” button. All of your test email addresses will receive the template email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VT6F9VUSpun55Za8M4AM2Q.png" /></figure><h3><strong>Conclusion</strong></h3><p>In this article, we were able to send an email blast to a list of emails that are stored in Kintone, by using Zapier and JavaScript. This example can be further expanded to include conditional logic. For example, sending a different email template to customers of a certain “type” is possible, by using filters and “paths” in Zapier. By using JavaScript, it’s simple to send Kintone data to Zapier Webhooks with a custom button trigger. Zapier can also fetch data from Kintone on a scheduled basis, which will be discussed in further tutorials.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faed4cc31fb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add Events to Google Calendar with Kintone and Zapier]]></title>
            <link>https://kintone.medium.com/how-to-add-events-to-google-calendar-with-kintone-0fb2271f9754?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fb2271f9754</guid>
            <category><![CDATA[automat]]></category>
            <category><![CDATA[appointment-scheduling]]></category>
            <category><![CDATA[google-calendar]]></category>
            <category><![CDATA[zapier]]></category>
            <category><![CDATA[crm]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 14:58:17 GMT</pubDate>
            <atom:updated>2024-04-02T17:19:46.818Z</atom:updated>
            <content:encoded><![CDATA[<p>Scheduling meetings with customers and prospects is an essential part of doing business. When using a CRM, users most likely want to track meetings and events related to their contacts. In this article, a method of creating Google Calendar meetings from Kintone via Zapier will be discussed.</p><h3>Agenda:</h3><ul><li>Overview</li><li>Connect the Events app in Kintone to Google Calendar</li><li>Conclusion</li></ul><h3>Overview:</h3><p>In Kintone, create an app to store events, or navigate to the existing app used to track events.</p><p><strong>NOTE: The app should at least have a Start Datetime field and End Datetime field, to create the event on Google Calendar.</strong></p><p>Here is a list view of the records in the Events app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AhQeFN0LGU0Gs1Kw3ghRMg.png" /><figcaption>The Events app tracks an event name, location, start and end time.</figcaption></figure><p>In the list view of the Events app in Kintone, the email address of an attendee, event details and the dates will be used in the Google Calendar event can be seen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t0iRpEg1kYoY0dhIZWy2oQ.png" /></figure><p>The app is now ready to be integrated with Google Calendar via Zapier.</p><h3>Connect the Events app in Kintone to Google Calendar:</h3><p>Navigate to Zapier and create a new Zap, called “Create Google Calendar events from new Kintone records”.</p><p>In Kintone, navigate to the Event’s app settings, then get the API Token for the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XFhxtmCX5n5ku5n90YpA6Q.png" /><figcaption>Get the API Key from the Events app App Settings, by clicking “Generate” and copy the API Key.</figcaption></figure><p>In Zapier, create a new Zap.</p><p>First, create the first step of the Zap: “New Record” in Kintone. This will be the trigger for adding the data to Google Calendar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gWgJJlBOKV9VOGrUybSuww.png" /><figcaption>Select “Reconnect” to select the Events app.</figcaption></figure><p>Select “Reconnect” to add the new Events app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqBfGYNJg1wyK3-m9Dc2Tg.png" /><figcaption>Input the App ID, the API key, and your subdomain to connect to Kintone.</figcaption></figure><p>By inputting the App ID and API Key from the Events app, Zapier will connect to Kintone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8HJderPnDyJUczYr_KBiiA.png" /><figcaption>Add Kintone, and “New Record in Kintone” as the trigger.</figcaption></figure><p>Create a new test record in the Events app. Click the plus button, add some data, and click save.</p><p>After saving, this new record can be used to test the connection. Click “Check for new Test Records” to get the newly created Events record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kLaKP0l9bP_4yzI7IwPTEQ.png" /></figure><p>In the second step, add Google Calendar. Add “Create Detailed Event” as the step. Select your Google Calendar email address to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ofht3wHiHAhTpGZzJdFD9g.png" /></figure><p>In the details of the Google Calendar step, insert the necessary data into the correct fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFc-tlJYbOrFkPavSbOdtQ.png" /><figcaption>Insert the Kintone fields into the details of the Google Calendar event.</figcaption></figure><p>Click “Proceed”, then “Test this Step”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hjsdRoFf9W14bBcWNGt33w.png" /></figure><p>Navigating back to the Google Calendar, you can see that the Event was created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jt6Fjlu2SCKimGv3joPhMw.png" /><figcaption>The Kintone record was converted to an event on the calendar.</figcaption></figure><p>In the details of the event, the email address from the Kintone record was added. The mail icon can be clicked to contact the invited email address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fty08-bD93_KPzqeLqfgVQ.png" /></figure><p>This concludes the steps for setting up the Zap.</p><p>Click “Publish Zap” to make the scenario go live.</p><h3>Conclusion:</h3><p>Finally, a connection between Kintone and Google Calendar has been created. Whenever someone creates a new Event in Kintone, the details of the record is added to the calendar, along with attendee information and event details. As a note, in order to transfer updates to an Event record in Kintone to Google Calendar, another Zap must be created that listens for updated Kintone records, finds the existing Google Calendar event and updates it.</p><p>This use case is typical for users performing account management and booking follow-up appointments. However, this Zap can be utilized for any kind of events needed to be synchronized between Kintone and Google Calendar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fb2271f9754" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Send Invoices from Kintone with Stripe]]></title>
            <link>https://kintone.medium.com/how-to-send-invoices-from-kintone-with-stripe-49db9c328cab?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/49db9c328cab</guid>
            <category><![CDATA[stripe]]></category>
            <category><![CDATA[payment-processing]]></category>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[kintone]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Fri, 15 Mar 2024 18:37:50 GMT</pubDate>
            <atom:updated>2024-03-15T18:38:57.582Z</atom:updated>
            <content:encoded><![CDATA[<p>For many, sending invoices and collecting payment is a crucial business need. Stripe is a popular platform for processing transactions. In this tutorial, <a href="https://docs.stripe.com/api/invoices/object">Stripe’s Invoice API</a> will be used in Kintone to create an invoice and send it to a customer. This use case can be expanded to add <a href="https://docs.stripe.com/api/invoices/line_item">invoice lines that contain items sold to the customer</a>.</p><p>In this article, a sample app called Invoices will have a button called “Create Invoice”. When the button is clicked, the customer ID in Kintone is used to find the customer in your Stripe dashboard. The email of that customer will be sent an invoice via email.</p><h3>Agenda:</h3><ul><li>Introduction</li><li>App Overview</li><li>Stripe invoices</li><li>Conclusion</li></ul><h3>Introduction:</h3><p>Stripe is a widely-used online payment processing platform that allows businesses to securely handle payment transactions. One of Stripe’s key features is its invoicing system, allowing businesses to seamlessly generate and send invoices to their customers. Using Stripe, users can customize invoices, add line items, and specify payment details.</p><p>Once an invoice is created, it will be emailed to a customer for payment. The customer can pay then pay the invoice online.</p><h3>App Overview:</h3><p>The Kintone app will have two Text fields; Customer ID and Invoice Status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zBTqHvpKUuWP8WpZ950xkQ.png" /><figcaption>The app in Kintone tracks Customer ID and Invoice Status.</figcaption></figure><p>After adding the Javascript code to this Invoices app, a button will appear at the top of the record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D-xsYnBTeM9Z2uiPIKIXNg.png" /><figcaption>The customization will create a button to trigger Invoice creation</figcaption></figure><p>Clicking this button will trigger the sending of the invoice. The customer email in Stripe will be sent an email with a link to insert their payment information.</p><p>Navigate to Stripe and create a new customer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4BEmidROaYfKAc6H8aWPQQ.png" /><figcaption>Click the Add customer button.</figcaption></figure><p>Go to the customer details and get the Customer ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OiGIAxMacoKAlqxkurAxA.png" /></figure><p>Add the Customer ID to the Kintone record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fka6v9xEcewY1_Z1U9QJvQ.png" /></figure><p>Go to API Keys and get your Secret key by clicking “Developers” and “API Keys”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3rEw2x-8CXStQHVKiWN4w.png" /><figcaption>Click “Reveal test key” and copy it.</figcaption></figure><p>Paste this value into the code in the following Stripe invoice code.</p><h3>Stripe invoices:</h3><p>Below is the code.</p><pre><br>(() =&gt; {<br>  &#39;use strict&#39;;<br>  kintone.events.on([&#39;app.record.detail.show&#39;], async (event) =&gt; {<br><br>    // get customer id from record<br>    const stripeCustomerID = event.record.stripeCustomerID.value<br><br>    // sends customer ID to stripe create invoice rest API.<br>    // If successful updates record invoice status<br>    const createStripeInvoice = async () =&gt; {<br>      let headers = {<br>        Accept: &quot;application/json&quot;,<br>        &quot;Content-Type&quot;: &quot;application/x-www-form-urlencoded&quot;,<br>        Authorization: &quot;Bearer &quot; + &quot;sk_test_51Oe9cqBqvK5pWyWRQ0r0GK77l76ssNBCNBE9Sp3ZRLliWQlBsoUqx2pVZ9lu6BJ5fVFdYL6nNn3uCqQ961bC2gMe00R6KAE6eA&quot;,<br>      }<br>      // Options for the invoice creation.<br>      let data = `customer=${stripeCustomerID}`<br><br>      await kintone.proxy(`https://api.stripe.com/v1/invoices`, &#39;POST&#39;, headers, data, (body, status, headers) =&gt; {<br>        // success<br>        console.log(JSON.parse(body))<br>        let invoiceStatus = JSON.parse(body).status<br>        console.log(invoiceStatus)<br>        console.log(&quot;updating record invoice status...&quot;)<br>        updateInvoiceStatus(invoiceStatus)<br>      }, (error) =&gt; {<br>        // error<br>        console.log(error);<br>      });<br>    }<br>    // Updated status field.<br>    const updateInvoiceStatus = async (status) =&gt; {<br>      const body = {<br>        app: kintone.app.getId(),<br>        id: kintone.app.record.getId(),<br>        record: {<br>          invoiceStatus: {<br>            value: status,<br>          },<br>        },<br>      };<br>      await kintone.api(<br>        kintone.api.url(https://medium.com/&quot;/k/v1/record.json&quot;,%20true), &quot;PUT&quot;, body, (resp) =&gt; {<br>          console.log(resp)<br>        }<br>      );<br>      location.reload()<br>    }<br>    // Create a button<br>    var stripeButton = document.createElement(&#39;button&#39;);<br>    stripeButton.id = &#39;stripeButton&#39;;<br>    stripeButton.innerHTML = &#39;Create Invoice&#39;;<br>    // Run code when the button is clicked<br>    stripeButton.onclick = async () =&gt; {<br>      createStripeInvoice()<br>    };<br>    // Display button on the blank space field<br>    kintone.app.record.getSpaceElement(&#39;stripeButton&#39;).appendChild(stripeButton);<br><br>    return event;<br>  });<br>})();</pre><h3>Conclusion:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l1oGuSYfCNE8U-LeHT1ZlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l1oGuSYfCNE8U-LeHT1ZlQ.png" /></figure><p>The Invoice Status has been updated upon success.</p><p><em>NOTE: While in “test mode” on Stripe, the email will not be sent.</em></p><p>This concludes a preliminary explanation of how Stripe API can be used in Kintone. The Stripe API is a powerful tool that enables developers to integrate secure payment processing functionality into their applications. In addition to accepting payments online, Stripe can also handle subscription billing. Other features such as fraud prevention, recurring billing, and customizable checkout pages.</p><p>Kintone, with Stripe, can be used to build custom applications that leverage payment data for tasks such as order management, customer relationship management, and financial reporting, to centralize business operations and enhancing overall user experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49db9c328cab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sync Customer Data between Quickbooks and Kintone with Zapier]]></title>
            <link>https://kintone.medium.com/sync-customer-data-between-quickbooks-and-kintone-with-zapier-b2335fe5ffc4?source=rss-2cb0f938249a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2335fe5ffc4</guid>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[quickbooks]]></category>
            <category><![CDATA[zapier]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Kintone]]></dc:creator>
            <pubDate>Mon, 12 Feb 2024 19:22:50 GMT</pubDate>
            <atom:updated>2024-02-12T19:22:50.285Z</atom:updated>
            <content:encoded><![CDATA[<p>Inputting customer information into two separate platforms is cumbersome. For example, if you used Quickbooks to store customer data, and also wanted that same data to be entered into Kintone, you’d find yourself performing double-entry. Let’s go over how we can use Zapier to create Kintone records from new Quickbooks entries, and how we can update Kintone every time a change is made in Quickbooks.</p><p><em>NOTE: Uploading attachment files to Kintone requires an extra action with Webhooks by Zapier, which will be covered in a separate article.</em></p><h3><strong>Agenda:</strong></h3><ul><li><strong>Overview</strong></li><li><strong>New customer Zap</strong></li><li><strong>Update customer Zap</strong></li><li><strong>Conclusion</strong></li></ul><h3><strong>Overview:</strong></h3><p>A “Zap” is a series of steps in Zapier, which is started by a trigger. To sync the data between Kintone and Quickbooks, we need to trigger the Zap, and send an object of customer data from one platform to the other. In this case, we will be sending an object of customer data from Quickbooks to Kintone.</p><p>The Quickbooks user creates a customer first before updating it, so that is the first Zap we will create. It will be triggered when a customer is created in Quickbooks. A Trigger action “New Customer in Quickbooks Online” will initiate the Zap.</p><p>We will need to make an entire separate Zap to handle the second part of the use case; update Kintone when a customer in Quickbooks is updated. That will be covered in the second part of this tutorial. A Trigger action “Update Customer in Quickbooks Online” will initiate the second Zap.</p><p>Let’s get started on the first Zap.</p><h3>New Customer Zap:</h3><p>Make sure your Kintone app has the necessary fields to capture the Quickbooks customer data. For this tutorial, we will be passing the following data from Quickbooks into Kintone:</p><ul><li>Company Name</li><li>Company Address</li><li>Company Phone</li></ul><p>This is how the List View would appear in Kintone, where we are capturing customer data into a “Companies” app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nu-QOuwpKcO4Jcr0RhzlBg.png" /><figcaption>The Companies app in Kintone has fields for company name, address and phone number.</figcaption></figure><p>In your apps, remember to rename the field codes in Kintone to something familiar. Zapier uses these field codes in the mapping menu, so renaming them will make it easier to identify where to place the record values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*521ZsxMioAR_0oz0w8A_Fw.png" /><figcaption>Rename the field codes in the Companies app to something recognizable. These will be displayed in Zapier for mapping fields.</figcaption></figure><p>In the main menu of Zapier, we will select “New Zap” and name it “New Customer”.</p><p>First we will create the trigger of the New Customer Zap. When a new customer is created, the Zap will be started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q2mIZ553Yj7t3Ox4ZLMTQA.png" /><figcaption>Create an action; New Customer is the trigger.</figcaption></figure><p>For the next step of the New Customer Zap, we will create a record in Kintone. Press the plus button under the trigger step to add the Kintone step called “Create Record”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZzse5ClV0-ckvVDwh4w7g.png" /><figcaption>Add data from the Quickbooks action to the new Kintone record.</figcaption></figure><p>The company_id will come from the Quickbooks record ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDrUb5Ol6mNO0tXdEEHZ3A.png" /><figcaption>Insert the ID from Quickbooks window into the Kintone action.</figcaption></figure><p>Now I will save and submit the Zap. It should be ready to listen for a new customer in Quickbooks. Let’s add a new customer to test the Zap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x5qKUNa3LhpkIN5nKuuhnQ.png" /><figcaption>Got to Quickbooks and create a new customer to trigger the Zap.</figcaption></figure><p>Once we have created a new customer record, Zapier should have captured the data. Go to the Zap, and click “Edit this Zap”. The first step, the trigger, should allow you to see the most recent customers created. Select the customer record, click “Continue with this record”, and move onto the next step. The “Create Record in Kintone” step will have a button to “Test This Step”.</p><p>Click “Test this Step”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1AoQ3G42cvMLj3vZgHYx-w.png" /><figcaption>When a record is successfully created, the ID and Revision is returned.</figcaption></figure><p>Click “Publish” and exit this Zap. In the main menu, select “New Zap” and name it “Update Customer”.</p><p>The first Zap was successful, so now we’ll move onto the next Zap.</p><h3>Update Customer Zap:</h3><p>The second Zap will be very similar, except for one extra action. To update a customer record in Kintone, we need to use the customer ID from Quickbooks to find the existing record. To do that, we will use a request called a “query”, via a Kintone API endpoint.</p><p>The Zap will be triggered when a customer in Quickbooks is updated. Set the trigger event by adding the action called “Updated Customer in Quickbooks Online”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kdjCH4dz4_qVHrVab_MoCQ.png" /><figcaption>Updated Customer in Quickbooks Online is the action needed for initiating the Zap.</figcaption></figure><p>As the following action, add Webhooks by Zapier. Set the event to “GET”. This will allow us to get the Kintone record with a request. Zapier will allow us to provide the Customer ID as a key, to get the Kintone record of the company we need to update.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0DtWXKwO0nPT9TlEWMhx_g.png" /><figcaption>A “GET” request is used to fetch a Kintone record.</figcaption></figure><p>Next, we need to add the endpoint. Replace your subdomain, your app id and the field code of the Kintone Company ID field in the following URL:</p><h4><em>https://{your-subdomain}.kintone.com/k/v1/records.json?app={your-app-id}&amp;query=company_id%20%3D%20&quot;{Quickbooks Customer ID Tag}”</em></h4><p>—<em> </em><a href="https://kintone.dev/en/docs/kintone/rest-api/records/get-record/"><em>Get Record — Kintone Developer Program</em></a></p><p>Add the URL to the Webhooks action with the Quickbooks Customer Id tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5vbHLZgzS5PS494KsAnDw.png" /><figcaption>In the URL, replace your subdomain, app ID with necessary values. Add the Customer ID Quickbooks tag.</figcaption></figure><p>At the bottom of the action, add the API key of the Kintone Companies app with the header “X-Cybozu-API-Token”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nfE1_MxsNGOvow-QJei-zg.png" /><figcaption>Replace the API Key in the headers section.</figcaption></figure><p>Click continue, to go to the Test section of this step. Click “Test this Step”, and the window should return information about the Kintone record that contains that company ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q2bQwNijy45dvHrHIqz0-g.png" /></figure><p>The third step in the Zap will be a Kintone step. Add the step called “Update Record by Record ID”. This will allow us to update the Kintone record by using the Kintone record number we retrieved with the last step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VSsLyrvPMoy9m2eN1pfyrw.png" /><figcaption>Use “Records Id Value” from the second step in the third step.</figcaption></figure><p>The Kintone record number will be used to update the record. Lower down on the same menu, we will input the customer data that we want to update, such as the phone number and address fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TqR3tT8yFqQEcJkKat11xg.png" /><figcaption>Insert the Quickbooks fields into the Update Record menu to update the Kintone record.</figcaption></figure><p>After setting all the fields to update in Kintone, we can select Publish and test the Zap. In Quickbooks, find the customer that was created in the first half of the tutorial. Edit their information, such as a phone number or address. The Zap should capture this submission.</p><p>Return to the Update Customer Zap and select the trigger. Select the Quickbooks customer record that was just edited. Select “Continue with this record”. Move onto the second step, test the “Get in Webhooks by Zapier” step as well, to find the existing Kintone record (created by the first Zap). Then proceed to the third and final step.</p><p>The Kintone customer record will update successfully, and return a Revision number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MxHvqOPnR9YBhcYt6SFs-w.png" /></figure><p>We have successfully completed two separate Zaps to handle syncing customer data between Quickbooks and Kintone.</p><h3>Conclusion:</h3><p>This tutorial covered how to use triggers and steps to send data between platforms using Zapier. The second Zap we covered also provided a small overview of queries, to get Kintone data. The same principle can be applied for creating or updating Kintone data with Webhooks in Zapier. More of these topics will be covered in future tutorials.</p><p>Visit <a href="https://kintone.dev/en/">Kintone Developer Program</a> for more tutorials and developer tips. Happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2335fe5ffc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>