Q:

Is there anyway to connect Lead Databse information to Program in Marketo by SOAP API

I have a Drupal site with Marketo. This site has payment function as well.
When people buy tickets, I am sending their information to Lead Database in Marketo by synclead (SOAP API). This function is working well.
I also want to make a relationship with user information in Lead Database with Program.
However I can't figure out how can I connect Lead Database and Program by SOAP API.
If someone know and done before please give me idea what method I can use.
Maybe I can use 'syncMObjects'....
Memo
Each ticket has difference Program ID from Marketo.

A:

You are on the right track with the syncMObject API. 
Each ticket purchase can be considered an Opportunity in Marketo. Opportunities are handled via MObject calls. You can use syncMObjects calls to create new Opportunities in Marketo.
There is a many-to-many relationship between Leads and Opportunities. Using an object called  OpportunityPersonRole, which contains an Opportunity ID and a Lead ID, you can link the Opportunity (the ticket sale) to the Lead (the person who purchased a ticket).
So first you would have to create an Opportunity for ticket. Then, you would make subsequent calls to associate Leads with this Opportunity. 

