Skip to main content
Question

How to Require Course Code on Course Creation

  • May 22, 2025
  • 2 replies
  • 53 views

hailey.gebhart
Helper III

Hi there,

We use course codes extensively within our platform, and we are experiencing an issue in which some of our power users are creating courses and not including course codes. We cannot find any way in Docebo to natively require course code like we can with additional fields.

 

How can we accomplish requiring this field? We are considering setting up some sort of notification through Connect, either to us or to the power user. Are there any smoother ways we could accomplish having course code as a requirement?

 

Thanks!

 

2 replies

Forum|alt.badge.img+2
  • Helper I
  • May 23, 2025

As far as I know, you can't make this field mandatory. However, you can create an additional field and make it mandatory.

Since you mentioned Connect, you can probably build a recipe that will copy the value from this additional field and will paste it in the Course Code field.


francesca.vaccarino
Novice II
Forum|alt.badge.img+1

It’s actually a great idea to manage this via Connect: I believe it’s definitely possible. You first create a webhook for the event “Course Created” then you could build a recipe with the following steps:

  1. Create a recipe triggered by the webhook you created above.

  2. Add an action in app Scheduler using the Workato Scheduler app and use action: Wait for Time Duration. You could set a delay of about 30 minutes or 1 hour. To give Power Users time to finish setting up the course (and the benefit of the doubt maybe they were going to add the course code all along).

  3. Add an action in app Docebo using the action Custom Action and then use this API: GET /course/v1/courses/{id}. The course ID is an output of Step 1

  4. Add an IF condition step: If Course code from step 3 is empty

  5. Add an action in app Docebo using the action Get User by ID. The user ID of the user that created the course is an output of Step 3
  6. To send the email, you’ll need the connector for either Outlook or Gmail. The recipient email address is an output from Step 5. You should be able to customize the message how you want

I haven’t tested it so you might have to make adjustments but this 6 steps recipe should do the trick!