In this screencast, we address a common question in the Infusionsoft API forums (and shortcoming of Infusionsoft) – that is the ability to add a date to a custom field. It shows you how to construct a PHP script that will write today’s date to the custom field of your choosing.
We then take it a step further and, in response to a question in the Infusionsoft Certified Consultant Facebook group, add code that increments the date by one year every time the script is executed. The typical way to execute a script like this is with an http post from the Infusionsoft Campaign Builder.
An example of the use case for this code would be to write today’s date to a field when a customer first purchases and then increment the date each time their subscription is renewed. Another would be to increment the date every time someone watches a video.