Search code examples
arraysapifilemaker

filemaker api pass array object


I have in Filemaker pro 18, a text reptition field defined like below:

enter image description here

I want to pass an array of value into this field.

I tried doing below in the raw data but it's saying parameter value is invalid

{
    "fieldData": {        
        "Temp_Foodbank_Employement_Type": ["test","test2"]
    }
}

Solution

  • Took me a while, but the correct syntax is actually just use the regular bracket, and the array starts at 1 instead of 0. So a typical data field would be:

    {
        "fieldData": {
            "family_member(1)":"John",
            "family_member(2)":"Steve"
        }
    }