SEQ-case-create-organisation: Save a case: Organisation

when calling the API function on postman or C# I get an error


{

"error": "INVALID_CUSTOM_FIELD",

"cause": "Custom fields which are not defined for the group cannot be used. Available custom fields are provided in the group's case template."

}



{

"groupId": "{
{group-id}}",

"entityType": "ORGANISATION",

"providerTypes": [

"WATCHLIST"

],

"name": "Apple",

"customFields": [

{

"typeId": "{
{custom-field-1}}",

"value": "custom field 1 sample value"

},

{

"typeId": "{
{custom-field-2}}",

"value": "custom field 2 sample value"

},

{

"typeId": "{
{custom-field-3}}",

"value": "mandatory custom field sample value"

}

],

"secondaryFields": [

{

"typeId": "SFCT_6",

"value": "USA"

}

]

}




Best Answer

  • @fadi.alsayyed


    Can you remove the entire custom fields array and retry the request, copying the payload below for your reference:


    {

    "groupId": "{ {group-id}}",

    "entityType": "ORGANISATION",

    "providerTypes": [

    "WATCHLIST"

    ],

    "name": "Apple",

    "secondaryFields": [

    {

    "typeId": "SFCT_6",

    "value": "USA"

    }

    ]

    }