I'm looking for best practices for using Custom Activities.
Any and all help is greatly appreciated! Happy Marketing!
Thanks for the tip on where to post my question.
Custom Activities are for timeseries data that generally conforms to a known key+enum schema, i.e. not key+freeform values like First/Last Name.
On the flipside, if all you want to do is log an event based on some basic characteristics of a form post and you absolutely cannot use the vastly more scalable Forms JS API, I would use the Push Lead API instead of a Custom Activity.
If you work for a company that's serious about reliability and risk, don't use any of REST API methods in response to individual end-user activities (no matter whether you have a server in-between, you're just forwarding an ungoverned number of activities to a tightly limited service).
Hey Sanford, would you be able to elaborate on why there is risk in using the REST API in response to individual end-user activities?
Because it's very easy for a popular web app or website to overwhelm daily API limits, even before you consider malicious users. Without a careful rate-limiting strategy, just hitting the REST API because someone hit your website is not gonna work.
Thanks so much Sanford!! What makes the Forms 2 API connection more secure? Could someone maliciously spam forms in mass that way or only through the REST API?
The Forms 2.0 API endpoint has a limit of 30 form posts per minute per source IP (43,200 per day per IP) so it's infinitely more scalable.
On point 3, I did not mean to replace the forms with Marketo forms, but to use the form 2.0 API to trigger a form fill out in the background when your custom forms are submitted.