FDI (Foreign Direct Investment) is different from FPI (Foreign Portfolio Investment) which means holding of shares and other financial assets by foreign investors without any controlling, management or ownership rights over the company, FPI is a indirect investment whereas FDI is direct.
There are 2 primary ways to invest in FDI:
Cross border M&A (Mergers & Acquisitions) which means buying controlling stake in a foreign company (Brownfield Investment)
Extending company’s operations to foreign and begin building new factories & offices from scratch (Greenfield investment)