You can add a lead to a static list. If the source contains the lead IDs and the list ID, choose AddLeadToList as the target object in a task. When you configure a task to add a lead to a list, you can use only the insert operation. The Secure Agent inserts the leads with those IDs to the list you specify.
Before you add leads to a list, ensure that the lead that you want to add and the list exist in Marketo. To get the list ID from Marketo, select the list you require in Marketo. The list ID appears in the URL for that static List.
For example, when you select a list in Marketo, the URL for the page displays as
https://app-<XXX>.marketo.com/#ST1001A1
. In this URL, 1001 is the list ID.
The following source file is a sample .csv file that you can use to add leads to a list:
Listid, id
1001, 2
The Marketo API adds the lead with ID 2 to the list with ID 1001.