How to add custom field values to contact

On the RecurringOrder table the AutoCharge field is an integer that can be set to 0 for no and 1 for yes

Is this related to JOb ID ?

You can’t autocharge a job. Only a payment. Also job’s aren’t chargeable. Only invoices are.

Understood. I have seen there contactId field so i will fire an update query. Thanks

hi @John_Borelli,
Is there any way to check values using custom fields. I have tried this earlier but that not worked. Can you suggest more on this.

@Vinod_Rath I would recommend using the REST API to work with custom fields for Contacts.

Use GET /contactCustomFields to view the custom fields that you have configured.
Use PATCH /contacts/{contactId} to update a Contact with values for the custom fields you want.

The body of the PATCH /contacts/{contactId} request might be something like:

"custom_fields": [
  "id": 2,
  "content": "B0018ZW7CA"
  "id": 0,
  "content": "2017-04-28T14:33:00-0700"
1 Like

@mike.christianson is using the REST approach which is perfectly fine. But that’s not your only option. Using both the current api and previous (legacy) isdk, you can include custom fields in your return fields on a query. Two things to remember:

One, they must follow the database naming not necessarily what you name them. This means that if you name a field thisField and then delete it and recreate it then you will need to use thisField0 instead. You can find this out by going to admin->settings and then click go for your custom fields on contacts…then click view database names. Second, precede the fields in your return fields array with an underscore. That is how IS knows to look in the DataFormField table (which is where your custom fields are stored).

Hope that helps to clarify.

ji @John_Borelli,
I am try to check duplicated records by checking custom fields that already stored on Infiusionsoft. Please suggest more on this. see below
$infusionsoft->data->findByField using custom fields.

Ok, so you’re using the current api with findByField. As mentioned above, you’ll want to be certain that you are looking for the database name of the custom field. So, as an example, lets say that name is CustField0. In addition to your standard return fields, you would want to add CustField0 to your return field list. So if you are getting first and last name, email and phone along with the custom field, your return field array might look something like this:


And your call would pass them in as follows:

$data=$infusionsoft->data()->findByField(‘Contact’, 1000, 0, ‘CustField0’, '’, $rFields);

ok i have tried that using _custfield earlier so thats not working. I will check without underscore and let you know.

You need the underscore. If it’s not working then you probably don’t have the database name for the field.

$data=$infusionsoft->data()->findByField(‘Contact’, 1000, 0, ‘CustField0’, ‘’, $rFields); this works?

$data=$infusionsoft->data()->findByField(‘Contact’, 1000, 0, ‘_CustField0’, ‘’, $rFields); this not right ?

Are you saying without the underscore works or are you asking a question?

with underscore worked. Thanks

hi @John_Borelli,
How can i set AutoCharge to no. I have create blank order and add manual payment and autoChanrge is automatic set to yes. Can you help me on that. This field is found in RecurringOrder table but i do not process any RecurringOrder when i import contacts. please suggest more on this.


AutoCharge is an integer boolean value. So to set it to ‘no’ you must assign it the value 0. However if you are not setting up subscriptions (RecurringOrder) then this value would have no meaning (which would be why it’s only settable on the recurring order table). So the question is, if it’s just a one time, non recurring payment, is there a compelling reason to be concerned about it being set to no?

How can i achive this ?

  1. create blank order
  2. add manual payment
  3. need to set AutoCharge to No

Can suggest more on above point?

@John_Borelli I think need to use find field by table and update autoCharge to no. Can you let me know how can i found that autoCharge record in which table? so i can update that field to zero.

The only tables you will find that field accessible in will be JobRecurringInstance (orders) and RecurringOrder (which is the order definition for creating recurring invoices). AutoCharge cannot be changed on any other tables and does not exist on the standard Job and Invoice tables.

Again, is this actually resulting in recurring charges or are you just “not liking” that it’s set to yes?

Yes i need to change this to No, Not like that very much.