A Phase 1,Double-blinded,Placebo-controlled Study to Investigate the Safety, Tolerability, Pharmacokinetics, and Pharmacodynamics of Single Ascending Doses of NNC1679-0001 When Administered to Healthy Participants and Participants With T2DM
This study is testing a new medicine that might help treat people with type 2 diabetes. The purpose of the study is to see if the new study medicine is safe and how well is tolerated by the body. There will be two groups of participants in this study: healthy participants and participants with type 2 diabetes. Participant will either get study medicine (NNC1679-0001) or placebo (a treatment that has no active medicine in it). NNC1679-0001 is a new experimental medicine that doctors cannot prescribe yet. Which treatment the participant gets is decided by chance. Participant will get one dose which will be injected into the area around abdomen (belly) by the medical staff.
⁃ All participants
• Informed consent obtained before any study-related activities. Study-related activities are any procedures that are carried out as part of the study, including activities to determine eligibility for the study.
• Male or female (sex at birth) of nonchildbearing potential.
• Age 18-64 years (both inclusive) at the time of signing the informed consent.
⁃ Healthy participants
• Body mass index (BMI) 18.5-29.9 kilograms per square meter (kg/m\^2) (both inclusive) at screening.
• Glycated haemoglobin (HbA1c) lesser than or equal to (\<=) 6.4 percent (%) (47 \[millimoles per mole\] mmol/mol) at screening.
• Considered to be generally healthy based on the medical history, physical examination, and the results of vital signs, electrocardiograms (ECG), and clinical laboratory tests performed during the screening visit, as judged by the investigator.
⁃ Participants with Type 2 Diabetes Mellitus (T2DM)
• BMI 20.0-34.9 kg/m\^2 (both inclusive) at screening.
• HbA1c 6.3-8.5% (45.4-69.4 mmol/mol) at screening.
• Diagnosed with T2DM greater than or equal to (\>=)180 days before screening.
• Stable (as judged by the investigator) daily dose(s) of metformin or combination of metformin and dipeptidyl peptidase IV (DPP-4) inhibitors \>= 90 days before screening.