Skip to content

Conversation

@beiyen
Copy link

@beiyen beiyen commented Aug 19, 2025

Summary

This merge request introduces the fetchAll function to the AppSheetApp integration, enabling the ability to perform multiple AppSheet API requests in parallel. This enhancement improves efficiency for batch operations and aligns with best practices for scalable API consumption.


Changes Introduced

  • Added fetchAll function
    • Allows users to pass multiple request objects and executes them concurrently using UrlFetchApp.fetchAll.
    • Returns an array of parsed responses, maintaining the order of requests.
    • Includes error handling for batch operations.
  • isAsync Parameter:
    • All API methods (Add, Delete, Edit, Find, Action) now has the isAsync parameter to determine whether to execute the API call immediately or return the request object. Default value false; executes the method.
  • Documentation Updates
    • Added JSDoc for the new function.
    • Provided usage examples and parameter descriptions.

Comparison with Fork

  • The fork did not include a method for parallel/batch API requests.
  • The new fetchAll function is now available both as a standalone function and as a method on the AppSheetApp class.
  • No breaking changes; all existing API methods remain unchanged.

Benefits

  • Performance: Reduces total execution time for multiple API calls.
  • Developer Experience: Simplifies batch operations with a single function call.

P.S. Feel free to update the AppScript Library ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants