Find Project Associated to a Deal with Deluge?

Find Project Associated to a Deal with Deluge?

Hi

What's the simplest way of finding the project ID for a project already associated with a deal using Deluge?

Basically, I need a custom button on the Deal that when clicked gets the associated Project for the deal.  The project has already been created using the 'New Project' option in the Project Related List on the Deal.

Thanks