What are Zapier Actions?
Zapier actions are operations that your automation workflows perform in your Opigno Enterprise LIP. They execute specific tasks like creating users, updating assignments, or managing learning content based on triggers from other applications.Actions are the “do” part of your automation - they take data from triggers and use it to perform specific operations in your Opigno instance.
Available Actions
The Opigno Enterprise Zapier integration provides 2 actions that allow you to register users for training and live sessions in your learning management system. All actions use GraphQL mutations to create registrations and provide structured results for automation workflows.Registration Actions
Register User to Training
Action Key:register_user_to_training_create
Description: Registers a user for a specific training/learning path in your Opigno Enterprise instance.
GraphQL Mutation
GraphQL Mutation
This action uses the
createLpIndividualMembership
mutation which:- Creates Individual Membership: Establishes a user’s enrollment in a learning path
- Returns Membership Data: Provides membership ID and type information
- Handles Errors: Returns detailed error messages for failed registrations
Required Input Parameters
Required Input Parameters
- user_id (string, required): The ID of the user to register for the training
- training_id (string, required): The ID of the training/learning path to register the user for
Returned Data
Returned Data
- id (string): The membership ID created for the user’s enrollment
- type (string): The type of membership created (typically ‘INDIVIDUAL_MEMBERSHIP’)
Use Cases
Use Cases
- Automated Training Assignment: Register users for training based on job roles or departments
- Compliance Training: Automatically register users for required compliance courses
- Onboarding Automation: Register new employees for onboarding paths
- Skill Development: Register users for learning paths based on performance reviews
Register User to Live Session
Action Key:register_user_to_live_session_create
Description: Registers a user for a specific live session in your Opigno Enterprise instance.
GraphQL Mutation
GraphQL Mutation
This action uses the
registerToLiveSession
mutation which:- Creates Live Session Registration: Establishes a user’s enrollment in a live session
- Returns Registration Data: Provides registration ID, related learning path, and attendance status
- Handles Errors: Returns detailed error messages for failed registrations
Required Input Parameters
Required Input Parameters
- user_id (string, required): The ID of the user to register for the live session
- live_session_id (string, required): The ID of the live session to register the user for
Returned Data
Returned Data
- id (string): The registration ID created for the user’s enrollment
- relatedLpId (string): The ID of the related learning path (if applicable)
- isAttended (boolean): Whether the user has attended the live session
Use Cases
Use Cases
- Live Session Management: Register users for scheduled live training sessions
- Event Registration: Automatically register users for training events
- Calendar Integration: Register users and sync with calendar systems
- Attendance Tracking: Track and manage live session attendance
Setting Up Actions
All Opigno Enterprise actions use GraphQL mutations to create user registrations for training and live sessions. Each action requires specific input parameters and returns structured data for automation workflows.1
Choose Your Action
- In Zapier, select Opigno Enterprise as your action app
- Choose from the 2 available actions based on your automation needs:
- Register User to Training: Register users for learning paths/training
- Register User to Live Session: Register users for live training sessions
- Review the action description and required parameters
2
Configure Authentication
- Connect your Opigno Enterprise account using your API credentials
- Ensure your API user has appropriate permissions to create registrations
- Test the connection to verify authentication works correctly
3
Set Up Action Parameters
Both actions require specific input parameters:Register User to Training:
- user_id (string): The ID of the user to register
- training_id (string): The ID of the training/learning path
- user_id (string): The ID of the user to register
- live_session_id (string): The ID of the live session
- Map data from previous Zap steps to these required parameters
- Ensure the user_id corresponds to a valid user in your Opigno instance
- Verify the training_id or live_session_id exists and is accessible
4
Handle Action Results
- Both actions return structured data with registration information
- Set up conditional logic based on the returned values:
- Training Registration: Use membership ID and type for tracking
- Live Session Registration: Use registration ID and attendance status
- Configure error handling for failed registrations
- Map action results to subsequent Zap steps
5
Test Your Action
- Use Zapier’s test feature with valid user IDs and training/session IDs
- Verify that registrations are created successfully in your Opigno instance
- Test with different users and trainings/sessions to ensure reliability
- Check error handling for invalid parameters
Data Mapping and Transformation
Field Mapping
When setting up registration actions, you’ll need to map data from triggers to action parameters:Data Transformation
Use Zapier’s formatter to transform data before sending to actions:ID Validation: Ensure user_id, training_id, and live_session_id are valid before making registration requests to prevent GraphQL errors.
Duplicate Registrations: Actions will fail if trying to register a user who is already registered for the same training or live session.
Error Handling
Common Action Errors
Authentication Errors
Authentication Errors
Symptoms:
- “Unauthorized” or “Forbidden” errors
- Actions fail to execute
- Verify API credentials are correct
- Check user permissions for creating registrations
- Ensure API user has access to the specified training/session
- Regenerate API tokens if expired
GraphQL Mutation Errors
GraphQL Mutation Errors
Symptoms:
- “Registration failed” error messages
- Actions fail with GraphQL error details
- Invalid user_id or training_id/live_session_id parameters
- Validate all input parameters before making requests
- Ensure user_id corresponds to a valid user in Opigno
- Verify training_id or live_session_id exists and is accessible
- Check for duplicate registrations (user already registered)
- Review GraphQL mutation error messages for specific issues
Duplicate Registration Errors
Duplicate Registration Errors
Symptoms:
- “User already registered” or similar error messages
- Actions fail when trying to register existing users
- Use search actions to check for existing registrations first
- Implement conditional logic to handle duplicate registrations
- Use different actions for updating existing registrations
- Set up proper error handling workflows for duplicate scenarios
Best Practices
Action Optimization
- Parameter Validation: Always validate user_id, training_id, and live_session_id before making requests
- Error Handling: Implement proper error handling for GraphQL mutation failures
- Duplicate Prevention: Check for existing registrations before creating new ones
- Testing: Always test actions with real data before going live
Data Management
- ID Validation: Ensure all IDs correspond to valid entities in your Opigno instance
- Registration Tracking: Use returned registration IDs for tracking and follow-up actions
- Error Logging: Log registration failures for debugging and monitoring
- Audit Trails: Monitor action execution for compliance and debugging
Security Considerations
- Access Control: Ensure API user has appropriate permissions for creating registrations
- Data Privacy: Be mindful of sensitive user information in registration data
- API Limits: Monitor API usage to avoid rate limiting
- Permissions: Regularly review and update user permissions for registration actions
Advanced Action Patterns
Conditional Registration Actions
Set up registration actions that only execute under specific conditions:Conditional Registration Logic
Multi-Step Registration Workflows
Chain multiple registration actions together for complex workflows:1
Check Existing Registration
Use search actions to check if user is already registered
2
Register for Training
Register user for the main training program
3
Register for Live Session
Register user for associated live session (if applicable)
4
Send Confirmation
Send confirmation email with registration details
5
Update External System
Update CRM or HR system with registration status