How do I define a SFDC Task "Type" when created from a Mkto campaign? | Community
Skip to main content
September 21, 2017
Solved

How do I define a SFDC Task "Type" when created from a Mkto campaign?

  • September 21, 2017
  • 1 reply
  • 8468 views

We have a number of Marketo campaigns that create a task in our SFDC org. However, all of the tasks are being created without a task type within Salesforce.

How do I add the task type field into our Marketo org so that I can define it when a task is created in SFDC? I already verified the logged in sync user's profile has access to read and edit the "type" field on the task object in SFDC.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Justin_Norris1

Thanks, this is helpful, but seems way more complex than what I should need in this situation. Defining a value on a standard picklist field in a standard object should be pretty straightforward.

It's like I asked you how to change the oil in my car and you said the only option is to rebuild the engine. There has to be a simpler way.


Dan Dlugos

I've also done this with a workflow rule in SFDC keying off a value in the subject line to update task type.

Although the field is standard in Salesforce, Marketo's support for tasks is limited to just a subset of standard fields. That's why you're getting suggestions with work-arounds of various complexity.

If you leverage tasks heavily you can also manage task creation entirely in SFDC (where you have access to the full range of fields) and trigger it off a data value change controlled by Marketo. The latter is an approach I often prefer when you want to add a lot of rich information to the tasks and populate several custom fields.

1 reply

Josh_Hill13
Level 10
September 21, 2017

If you are using a Custom Task Type, you will be unable to modify this from Marketo. You may be able to enforce this with Apex code in SFDC somehow.

I did come across a crazy method to do this, possibly on this forum, but I can't find it now. I never tried it.

Can you show us a screenshot?

September 21, 2017

This is the standard "Type" picklist field on the task object within SFDC. It's a standard field, so I'm not sure why it isn't showing up in Marketo. We don't have any custom task types setup either.

When we create a task, it's not setting any value for this field, so it ends up being blank. I've been searching a good two-three solid days looking for a solution to this, and I'm absolutely stuck.

What's prompted this is we are now tracking activities on our opportunities, etc. and I need to be able to filter these Marketo automated tasks from my reports.

Jep_Castelein2
Level 10
September 21, 2017

Instead of using the standard "Create Task" Flow you could use a Webhook to create the Tasks. You actually need 2 webhooks, one to get an access token and store it in a custom field, the second webhook to create the Task. Below is an example using some attribute, but you can add any attribute you want (as supported by the SFDC REST API).