Walgreens Boots Alliance Inc. said growth in prescription volumes helped lift pharmacy sales in its latest quarter, as the company’s integration of Rite Aid stores expanded its foothold in the U.S. prescription market.

Walgreens’s share of the U.S. retail prescription market this year has grown to a company record 21.7%, compared with 20.2% in 2017, Walgreens Chief Financial Officer James Kehoe said Thursday, citing data from health-care research firm Iqvia.

For...