Roger,I think what you what is to set the WhatId to the Opportunity Id and the WhoId to the Lead or Contact.Thanks,Bill