The Scots - with Glasgow's Hugh Blake and Glenn Bryce in the squad - trailed 26-15 with 30 seconds left but former Edinburgh wing Dougie Fife scored twice - the second in added time - to clinch a thrilling 27-26 win.
Scotland saw off England 17-0 in the quarter-finals before beating USA 24-17 in the semis to reach a first final.