Hello, I've been struggling with API Integrat...

Hello, Iโ€™ve been struggling with API Integration for these few days. I am trying to make a copy of data I add to a table automatically, means when I add a new row on โ€œA Tableโ€ I also want that data to be copied automatically to on โ€œB Tableโ€. I follow the Documentation and try to figure it out BUT I still canโ€™t get any result. Could Appsheet Team or anyone please help me to solve it? Thank so much.

0 7 635
7 REPLIES 7

Hi, could you describe how you are doing this? Are you using a workflow rule with a webhook? @Philip_Garrett_Appsh

@Account_Team

I can investigate if you provide: 1. Your account id 2. Your app name 3. The table names of the source and destination tables. 4. A description of what you are currently trying. 5. A description of the error or problem you are seeing.

Thank Praveen and Philip. I actually used workflow rule with a webhook. I read the documentation on how to integrate API with workflow rule and I also followed the example there by enabling IN integration and use the App ID and also access key to put in webhook setting. And I also try to configure a JSON body template too but after a few days trying I still canโ€™t get any result.

  1. Account ID: 745033 2. App name: SocheaShop (In Khmer แžŸแžปแž‡แžถแž›แž€แŸ‹แž—แŸแžŸแž‡แŸ’แž‡แŸ‡) 3. Table source: (In Khmer แž‘แŸ†แž“แžทแž‰แž›แž€แŸ‹แž…แŸแž‰) Table destination: (In Khmer แžœแžทแž€แŸแž™แž”แžแŸ’แžš) 4. Iโ€™m trying to: every time I add a new record in the table source, I also want that data to be copied automatically into the table destination (If I make any changes to a table, it wonโ€™t effect another). 5. For the error of problem, I couldnโ€™t see any. After I configured everything in already, it looks just fine but I canโ€™t get the result.

@Account_Team

The best way to diagnose problems with webhooks and the API is to use the Audit History. The Audit history will show you exactly what is going wrong.

See these two articles:

help.appsheet.com - Troubleshooting Webhooks

https://help.appsheet.com/integrations/api/troubleshooting-api-calls

In your case the problem is the webhook JSON body. You should do two things:

  1. Clear everything in the โ€œJSON Bodyโ€ property. You should only specify the JSON body in either the โ€œJSON Bodyโ€ property or the โ€œJSON Body Templateโ€ property. You should never specify both. It is easier to use the โ€œJSON Body Templateโ€, so clear the "โ€œJSON Bodyโ€ completely. 2. Your โ€œJSON Body Templateโ€ is not specified in the correct format. Current the โ€œJSON Body Templateโ€ is specified as an HTML document. It must be specified as a .txt file. The easiest way to create a valid JSON Body Template is to click the โ€œCreateโ€ button. It will generate a properly formatted JSON Body Template. 3. After fixing the JSON Body Template, try the workflow rule again, and look at the Audit History to verify that the webhook is being triggered and the API is being invoked with no error. Troubleshooting Webhooks help.appsheet.com

Thank, but I still wonder if โ€œlocalโ€, โ€œlocationโ€, โ€œtimezoneโ€ cause any problems that make the API doesnโ€™t work.?

If possible, could you make a video explain how to configure it, that will be wonderful. Thank.

@Account_Team

The Audit History indicates that you most recent API call at 11/13/2018 8:48:02 AM is failing with the error โ€œRow having key โ€˜LWKYvMiAโ€™ not foundโ€. Does table โ€œแžœแžทแž€แŸแž™แž”แžแŸ’แžšโ€ have a record with that key value?

Top Labels in this Space