An AE was any untoward medical occurrence in a clinical trial participant administered or used a medicinal product, whether or not considered related to the medicinal product or usage. Serious AE is an AE that resulted in death, life threatening, persistent or significant incapacity or substantial disruption of ability to conduct normal life functions, hospitalization or prolongation of existing hospitalization, congenital anomaly or birth defect, important medical events that may not result in death, be life threatening, or require hospitalization. All SAEs reported in the below table are TESAEs. The endpoint was evaluated based on the data from on-treatment period which started from the date of first trial product administration to date of last trial product administration excluding potential off-treatment time intervals triggered by at least 6 consecutive missed doses for cagrilintide or 6 consecutive weeks of missed dosing with liraglutide.