NEW YORK (AP) — New York’s highest court rejected former President Donald Trump’s last-ditch effort to avoid testifying in the state attorney general’s civil investigation into his business practices on Tuesday, clearing the way for his deposition next month.

The state’s Court of Appeals said there was no "substantial constitutional question" that would warrant its intervention in the matter following an intermediate appellate court’s ruling last month enforcing a subpoena for Trump’s testimony.

The court also dismissed a motion by Trump’s lawyers to stay the subpoenas, saying that doing so would be "academic," since it wasn’t taking up the former president’s appeal in the first place.

TRUMP RELEASES 12-PAGE REBUTTAL TO JAN. 6 HEARING : ‘OUR COUNTRY IS IN A NOSEDIVE’

Trump and his two eldest children, Ivanka and Donald Trump Jr., agreed last week to answer questions under oath starting July 15 unless the Court of Appeals decided to step in.

A message seeking comment on Tuesday’s ruling was sent to Trump’s lawyer. Alan Futerfas, a lawyer for Ivanka and Donald Trump Jr., declined comment. A message was also left with a spokesperson for Attorney General Letitia James.

Trump NRA Rally

Former President Donald Trump speaks at NRA rally (Associated Press/Michael Wyke)

The appellate division of the state’s trial court ruled May 26 that the Trumps had to undergo a deposition, upholding a lower court’s ruling that James’ office had "the clear right" to question Trump and certain other figures in his company, the Trump Organization.

TRUMP CALLS JAN. 6 HEARING ‘TOTALLY PARTISAN,’ SAYS IVANKA HAD ‘CHECKED OUT’

James has said her three-year investigation has uncovered evidence that the Trump Organization exaggerated the value of assets including skyscrapers, golf courses and even his Manhattan penthouse to get loans, insurance and tax breaks for land donations.

CLICK HERE TO GET THE FOX NEWS APP

A lawyer for her office told a judge last month that evidence could support legal action against the former president, his company or both, though the attorney said no decision had been made.

Trump has decried the investigation as part of a politically motivated "witch hunt" against him.