Course ID of active course

Is there a way in an App or DataField on e.g. an Edge device, to get the active course ID (9-digit number),, which is the same as used in connect.garmin.com?

Example course in connect.garmin.com: https://connect.garmin.com/modern/course/123456789