Hello ,
How can I create a entry with the REST API for keyword fields.
I'm using PHP and have a class FIELDS to add fields
I define my keywords list like this:
$keywords = array ("Keyword" => array("Docuware", "Keyword", "test"));
and add it to the other fields with:
$dwFields->AddField(new Field('TREFWOORD' , $keywords , 'Keywords'));
But I always ending up with one keyword field where this is listed: { "Keyword": [ "Docuware", "Keyword", "test" ] }
So it will not seperate the items to different lines.
This is the JSON result for the post to the rest api
{"FieldName":"TREFWOORD","Item":{"Keyword":["Docuware","Keyword","test"]},"ItemElementName":"Keywords"}
Any ideas how to fix this??
Regards,
Aren