API V2 help creating or updating fields
I am evaluating Wild Apricot for a small non-profit. We are all volunteers who will be administering it, so I am investigating using the API to automate our workflow due to the fact that WA does not create a Contact for Guest registrations.
My question is related to the Create Contact or Update Contact operations. I can create a contact with the FirstName, LastName and Email fields and I can update those fields. However, I have been unsuccessful adding or creating additional fields, even the Phone built in field.
Can anyone help by sending me an example of the syntax for the submission? I started with the Google Sheets example on the WA website. It has been easy to use when I understand the correct syntax! That's what I need here.
This is a showstopper to us moving to Wild Apricot if we cannot automate this. It looks like it should be easy to do if I get the correct syntax.
BTW, for the most part, thew documentation is very good. I guess because the API is not supported is why there are limited examples. As read elsewhere in this forum, I agree that it may be shortsighted for WS to not support the API. It does help embed customers to their platform...
Any help is greatly appreciated.
Thanks! This works well. Rather than trying to determine what was not working, I will use this example to build on. It does give me confidence that we can build the necessary code to automate our organizations workflow.
Google script sample https://github.com/WildApricot/ApiSamples/blob/master/GoogleScript/ApiV2CodeSample.gs was updated. Please check out demo code in 'createNewContact' function.
I hope this will help you.
Maybe I should rephrase the question to: Has anyone successfully created a contact with fields other than FirstName, LastName and Email? Similarly with updating fields?