You are here:
Test and Activate All Course Management Flows
Test each flow in your course management system to ensure that it work correctly. Then activate it.
Testing and activating your flows is a critical step that ensures your automation works correctly before real users interact with it. This testing process simulates real-world scenarios—creating course deliveries, enrolling attendees, managing waitlists, and handling cancellations—to verify that all your flows work together as expected. By creating test data and walking through the complete registration workflow, you'll confirm that the before-save flow validates data correctly, the after-save flows send appropriate emails and update statuses, and the screen flow provides a smooth user experience. Once testing is complete and you've verified that everything works correctly, activating the flows makes them available for production use, allowing your organization to start benefiting from the automated course management system. This step-by-step testing approach helps you catch any issues early and ensures that your business processes run smoothly when they go live.
Before testing, ensure you have created all the flows in this course management project:
- Manage New Course Attendee Records (Before-Save Record-Triggered Flow)
- Set Course Delivery Status and Send Emails (After-Save Record-Triggered Flow)
- Manage Course Attendee Cancellations (After-Save Record-Triggered Flow)
- Register New Attendee for a Course (Screen Flow)
First, create test data so you're not using real data. Then, test and activate the flows.
-
Create two test accounts for your course management system.
- For the account associated with the instructor contact, create a test account named LTS Services.
- For the account associated with the course attendee, create a test account named Dove Advertising.
-
Create a test instructor contact for your course management system.
- For First Name, enter Amanda.
- For Last Name, enter Houston.
- For Account, selectLTS Services.
- For Email, enter your email .
-
Create a test attendee contact for your course management system.
- For First Name, enter Becky.
- For Last Name, enter Barnes.
- For Account, selectDove Advertising.
- For Email, enter your email .
-
Create a test course for your course management system.
- For course name, enter Using AI to Add Closed Captioning.
- For course status, select Ready to Schedule.
-
Create a test course delivery with a status of scheduled for your course management
system.
- For Course Delivery Name, enter Using AI to Add Closed Captioning (West/November).
- For Course, select Using AI to Add Closed Captioning.
- For Instructor, select Amanda Houston.
- For Region, select West.
- For Start Date, select a date in November.
- For Status, select Scheduled.
- For Maximum Students, enter 2.
-
Create another test course delivery with a status of scheduled for your course management
system.
- For Course Delivery Name, enter Using AI to Add Closed Captioning (West/December).
- For Course, select Using AI to Add Closed Captioning.
- For Instructor, select Amanda Houston.
- For Region, select West.
- For Start Date, select a date in December.
- For Status, select Scheduled.
- For Maximum Students, enter 2.
-
Create a test course attendee.
- For Course Attendee Name, enter Becky Barnes (West/December).
- For Attendee, select Becky Barnes.
- For Status, select Enrolled.
- For Confirmation Code, enter TestCode123.
- For Course Delivery, select the West/December delivery.
-
Test and activate the Manage New Course Attendee Records flow.
-
In the Flows list view, open the Manage New Course Attendee Records flow, and click
Debug.
The Debug panel opens.
- On the Debug panel, for Course_Attendee__c, select one of the test course deliveries you created, and then click Run.
- In the Debug panel, check that the flow went down the duplicate record path and ended after the custom error message element.
- Click Activate.
-
In the Flows list view, open the Manage New Course Attendee Records flow, and click
Debug.
-
Test and activate the Set Course Delivery Status and Send Emails flow.
-
In the Flows list view, open the Set Course Delivery Status and Send Emails flow, and
click Debug.
The Debug panel opens.
- On the Debug panel, for Course_Attendee__c, select Becky Barnes (West/December).
- Click Run.
- In the Debug Log, check that the flow finished without errors and check to see if you received an email.
- If everything looks good, click Activate.
-
In the Flows list view, open the Set Course Delivery Status and Send Emails flow, and
click Debug.
-
Test and activate the Manage Course Attendee Cancellations flow.
-
In the Flows list view, open the Manage Course Attendee Cancellations flow, and click
Debug.
The Debug panel opens.
- On the Debug panel, for Course_Attendee__c, select Becky Barnes (West/December).
- Open the Update Record section.
- For Attendee Status, select Canceled.
- Click Run.
- In the Debug Log, check that the flow finished without errors.
- If everything looks good, click Activate.
Now we'll test the screen flow and test how all the flows work together. -
In the Flows list view, open the Manage Course Attendee Cancellations flow, and click
Debug.
-
In the Flows list view, open the Register New Attendee for a Course screen flow, and click
Debug.
The Debug panel opens.
-
On the Debug panel, enter the account ID for the Dove Advertising test account, and then
click Run.
The first screen from the flow opens.
-
Enter information about a new attendee, using your email address, and then select the
November course delivery.
The flow tells you that the attendee is now registered for the course delivery.
- Check your email for the course confirmation.
-
Click Edit Flow, and then click Debug
again.
The Debug panel opens.
-
On the Debug panel, enter the account ID for the Dove Advertising test account, and then
click Run.
The first screen from the flow opens.
-
To check the logic for duplicate records, enter information about the same attendee, and
select the November course delivery again.
The flow tells you that the attendee is already signed up for this course delivery, and the after-save record-triggered flow sends no email to duplicate attendees. An error email might get sent to the flow creator and that's okay.
-
Click Edit Flow, and then click Debug
again.
The Debug panel opens.
-
On the Debug panel, enter the account ID for the Dove Advertising test account, and then
click Run.
The first screen from the flow opens.
-
To add a second person to the November course delivery, enter information about a new
attendee, using your email address. Then select the November course delivery.
The flow tells you that the attendee is now registered for the course delivery.
- Check your email for the course confirmation.
-
Click Edit Flow, and then click Debug
again.
The Debug panel opens.
-
On the Debug panel, enter the account ID for the Dove Advertising test account, and then
click Run.
The first screen from the flow opens.
-
To add a third person to the November course delivery, enter information about a new
attendee, using your email address. Then select the November course delivery.
The flow tells you that the course delivery is full and the attendee has been added to the waitlist.
- Check your email for the waitlist confirmation.
- Check your email for the full course notification to the instructor.
- To check if the flow handles cancellations correctly, open the Course Attendees list view.
-
Click the link for a course attendee who’s enrolled in the November course.
The record opens.
- For Status, select Canceled.
- Click Save.
- Check your email for the cancellation confirmation.
- Check your email to see if a previously waitlisted attendee received an enrollment notification.
-
In the Flows list view, open the Register New Attendee for a Course screen flow again, and
click Debug.
The Debug panel opens.
-
On the Debug panel, enter the account ID for the Dove Advertising test account, and then
click Run.
The first screen from the flow opens.
-
To check if the course delivery gets updated correctly after cancellations, add an attendee
to the December course delivery. Enter information about a new attendee, using your email
address. Then select the December course delivery.
The flow tells you that the attendee is now registered for the course delivery.
-
Click Edit Flow, and then click Debug
again.
The Debug panel opens.
-
On the Debug panel, enter the account ID for the Dove Advertising test account, and then
click Run.
The first screen from the flow opens.
-
To add another person to the December course delivery, enter information about a new
attendee, using your email address. Then select the December course delivery.
The flow tells you that the course delivery is full and the attendee has been added to the waitlist.
- Click Edit Flow and then click Activate.
- Open the Course Deliveries list view.
- Check that the December course delivery Status is set to Full.
- Open the Course Attendees list view.
- Set the status for both December attendees to Canceled.
- Open the Course Deliveries list view.
- Check that the December course delivery Status is now Scheduled.
- If everything worked as expected, you can move on to the next step.
Previous Step: Create a Screen Flow to Register Course Attendees
Next Step: Create a Button to Launch the Screen Flow
See Also
- Automate a Course Management Process Project
- Create Your Data Model
- Create a Custom Object to Store Course Information
- Create a Custom Object to Store Course Delivery Information
- Create a Custom Object to Store Course Attendee Information
- Create a Before-Save Flow for Better Data Quality
- Create After-Save Record-Triggered Flows
- Create an After-Save Record-Triggered Flow for Course Attendee
- Create an After-Save Record-Triggered Flow for Changed Course Attendees
- Create a Screen Flow to Register Course Attendees
- Create a Button to Launch the Screen Flow

