Pre-populate Smart Capture Fields with Salesforce Data
- Create a subscriber attribute called Contact_Owner_ID and map it to Owner ID for both Leads and Contacts in the Attributes properties.
- Create your Smart Capture form.
- To reference the Owner Name and Owner Email, place the following AMP script directly in the Smart Capture fields: Owner Name: %%=v(Field(Row(RetrieveSalesforceObjects("User","Name","ID","=",[Contact_Owner_ID]),1),"Name"))=%%Owner Email: %%=v(Field(Row(RetrieveSalesforceObjects("User","Email","ID","=",[Contact_Owner_ID]),1),"Email"))=%%
- Owner Name: %%=v(Field(Row(RetrieveSalesforceObjects("User","Name","ID","=",[Contact_Owner_ID]),1),"Name"))=%%
- Owner Email: %%=v(Field(Row(RetrieveSalesforceObjects("User","Email","ID","=",[Contact_Owner_ID]),1),"Email"))=%%