Generic GraphQL request action
This action is available in the Rewst actions section of the workflow builder's actions list, but is open-ended in its capabilities.

Description: A generic action for making authenticated requests against Rewst''s GraphQL API. The Generic GraphQL Request action is part of the Rewst action pack and enables:
Direct API access: Execute custom GraphQL queries and mutations against Rewst's backend
Advanced data retrieval: Access data structures not available through standard actions
Custom automation: Build sophisticated workflows with precise data control
Administrative operations: Perform bulk operations and administrative tasks programmatically
Before using the Generic GraphQL Request action, ensure that you have:
An understanding of GraphQL query structure and syntax
Familiarity with Rewst's data model and available schema
The necessary feature flag enabled for your organization
Parameters:
Operation Type: The type of GraphQL operation:
queryormutationGraph Operation: The name of the specific GraphQL operation to execute
Variable Values: Variables to pass to the GraphQL operation
Response Fields: Specify the fields to include in the GraphQL response. Only provide the inner content, as it will be wrapped in curly braces. For example,
id orgName email { name }.Raw Query: The complete raw GraphQL query string to execute - an alternative to operation-based approach
Generic GraphQL request action usage examples
Basic query example
Mutation example
Raw query example
Generic GraphQL request action: Allowed operations
Queries
Action and configuration queries
Action management queries
System and Debug Queries
Component management queries
Crate management queries
Feature preview queries
Foreign Object Reference Queries
Form management queries
Microsoft CSP Queries
Trigger instance queries
Organization variable queries
Organization management queries
Pack action option queries
Pack bundle queries
Pack configuration queries
Pack management queries
Page management queries
Permission queries
Sensor type queries
Site and app management queries
Tag management queries
Task and execution analytics queries
Template management queries
Trigger type queries
Trigger management queries
User invite queries
User management queries
Workflow analytics queries
Workflow patch queries
Workflow management queries
Mutations
Action option mutations
Clone operations
Component mutations
Foreign object reference mutations
Form mutations
Organization trigger instance mutations
Organization variable mutations
Organization management mutations
Pack configuration mutations
Pack mutations
Page mutations
Site mutations
Tag mutations
Template mutations
Security considerations
Always validate user inputs before including in queries
Use organization and permission filters to restrict data access
Track usage patterns for potential security issues
Common use cases for the Generic GraphQL request action
Bulk data operations
Action configuration:
Operation type:
mutationOperation:
updateOrgVariablesVariable values:
Complex reporting
Action configuration:
Operation type:
queryOperation:
workflowsVariable values:
Fields:
Data synchronization
Action configuration:
Operation type:
queryOperation:
organizationsVariable values:
Fields:
id, name, domain, createdAt, managedOrgs { id, name }
Troubleshoot the Generic GraphQL request action
Permission denied
Verify the feature flag is enabled for your organization
Query syntax errors
Validate GraphQL syntax using a GraphQL validator
Check field names against the schema
Ensure variable types match the expected schema types
Rate limiting
Implement exponential backoff for retries
Consider breaking large operations into smaller batches
Monitor API usage patterns
Debug tips
Begin with basic queries before building complex operations
For debugging, use the
raw_queryparameter to see exact queriesReview workflow execution logs for detailed error messages
Build queries incrementally, adding fields and filters gradually
Schema Reference
The Generic GraphQL Request action provides access to Rewst's complete GraphQL schema. Key entity types include:
Organization: Core organizational data and settings
Workflow: Automation workflow definitions and execution data
Action: Available actions and their configurations
Trigger: Event triggers and their configurations
Form: Dynamic forms and field definitions
Template: Reusable templates and scripts
User: User accounts and permissions
Pack: Integration packs and their components
Last updated
Was this helpful?

