This function extends your Infusionsoft system to enable you to do various math operations, and store the results in an Infusionsoft field for later use. These values can also be used in Campaign Builder’s decision diamonds to dynamically route your contacts through the workflow.
Math HTTP POSTs are compatible with Legacy HTTP POSTs, Actionsets, and Campaign Builder.
Math HTTP POSTs take the following parameters
value1: The name of a field to source the value from, or the value itself. Custom fields must start with an underscore.
function: One of the following functions: subtract, add, multiply, divide, max, min or random. If there is an additional function you need support for, please contact us at Support.
value2: The name of a field to source the value from, or the value itself. Custom fields must start with an underscore.
destination: The name of a field to store the resulting value to. Custom fields must start with an underscore. The destination field does not need to be a number. You can use a text field just as easily.
precision: The optional number of decimal digits to round to. Set to 0 for an integer.
format: As an optional advanced feature, You can format the resulting output before storing it in the destination field. This is especially useful if you need to format the result into currency, etc. You can use standard sprintf formatting codes documented here.
auth_key: Your Memberium HTTP POST authentication key. You can find a list of your valid i2SDK authentication keys in your i2SDK plugin.
Generating Random Numbers
You can generate a random number and store it into a field using the random function. The lower range of the random value is placed into value1, and the upper end of the range goes into value2. The random function only generates integers.