Search the Community
Showing results for tags 'integromat'.
-
Is it possible to have a script in Google sheets to read all the data of Loyverse POS with the API?
Doppellecker posted a topic in Loyverse API's Loyverse API
Hello. Is it possible to have a script in Google sheets to read all the data (sale-date, price, items, etc.) of Loyverse Point of Sale with the API? Thanks -
こんにちは! このページではLoyverseの売上データを自動で会計freeeに送信する方法をご紹介します。 ※本内容は動作保証対象外です。ご利用は自己責任でお願い致します。 Loyverse Appマーケットプレイスには会計freeeと直接連動するためのアプリはありませんが、「Integromat」と「Google Sheets」を利用することでLoyverse上のレシートを会計freeeに直接送信することができます。 手順 1:freeeとGoogle Sheetsの連携 取引データ連携用シートを取得し、自分のGoogle Driveにコピーを作成します。 「使い方」シートの指示にしたがって、連携用シートをfreeeアカウントに接続してください。 手順 2:Integromatのアカウントを作成し、Loyverseと接続する。 https://www.integromat.com/にアクセスし、アカウントを作成します。 その後、ログインした状態で「Create a new Senario」をクリックします。 「Loyverse」をシナリオに追加したら、「Watch Receipts」を選択します。 次にIntegromatとLoyverseを接続するために、「Connection」→「Add」→「Loyverse OAuth2」を選択してください。 これによって、IntegromatがLoyverseのデータにアクセスする許可を求める画面が表示されますので、許可をしてください。 LoyverseとIntegromatの接続が完了したら、Event Type「Create」を選択し、店舗名を選択してください。 販売量が多い店舗では、Limitに大きな数を入力してください。 次にIntegromatにGoogle Sheets [Add a row]を追加して、下図のように設定してください。 Values欄に、必須項目の収支区分、発生日、売上高、金額を図のように設定します。 自動更新のインターバルを入力して、保存ボタンを押すとIntegromatの設定は完了です。 手順 3:Google Apps Script で連携用シート→freeeの書き込みを自動化する。 取引連携用シートから「スクリプトエディタ」を開きます。 「トリガー」をクリックし、「freeeMenuDealsPost」をスプレッドシート「変更時」にトリガーが発動するようセットしてください。(時間ごとのトリガーでもかまいません。) 次に「スクリプト」へ移動し、function freeeMenuDealsPost()の内容を変更します。 この変更は、スプレッドシート上のデータをfreeeに書込んだあと、取引データを削除することを意味しています。 (取引データの重複を避けるため。) 元の部分 function freeeMenuDealsPost(){ dealsTranscription(); postDeals(); } 変更後 function freeeMenuDealsPost(){ dealsTranscription(); postDeals(); var bk = SpreadsheetApp.getActiveSpreadsheet(); var ss = bk.getSheetByName("Data"); ss.getRange('A2:Q1000').clear(); } 以上で、Loyverseとfreeeを連携させる手順は終了です。 実際にLoyverse POSで取引を行い、freeeに記録されることを確認してください。 今回の方法では、各レシートごとの取引がfreeeに記録されていきますが、一日の売上合計のみの記録が良い場合は、Google Sheetsの取引連携用シートを任意に編集してください。 また、Google Sheetsからfreeeへデータ連携をする際、 このコンテキストから SpreadsheetApp.getUi() を呼び出せません(行 181、ファイル「POSTリクエスト」) というエラーが発生する場合がございます。 その場合は、スクリプトエディタから当該行を削除またはコメントアウトしてください。 ※コメントアウトの例 /*SpreadsheetApp.getUi().alert( countPostedDeals + "件の取引を送信しました" );*/ なお、税率が2種類ある場合は、Integromatの編集が必要になります。 これについては、余裕があれば更新します。 以上です。 筆者:磯部 宇彰 参考サイト: 新卒ビジネス職の人間が、IFTTTを使ってGoogle Homeとfreeeを連携した話 【freee API】GASを用いてGoogleスプレッドシートと連携する
-
How to use Integromat to export all data to Google sheet exactly the way we export it manually?
Starup posted a topic in Reports
Hi guys, I have a question about exporting data to Google Sheet using Integromat. Is there a way that I can export data (such each receipts adding and exporting out immediately) to Google Sheet using Integromat, and put all data in the way that I export it manually? For example, once a receipt entered into the POS, Integromat catches only the new receipt right away without catching other old receipts and export into GSheet in the setting as I export it manually? I am new to this and hope to get screen shot the model as well. Thanks in advance. Edit: or anyway to export all data automatically to GSheet. Thanks