Veröffentlicht Thu, 25 Feb 2021 15:42:48 GMT von Aren Slootweg Developer

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
 

Veröffentlicht Sun, 28 Feb 2021 19:00:57 GMT von Aren Slootweg Developer
Added some more info and screen shots related to the problem.

Any help is welcome!!

Sie müssen angemeldet sein um Beiträge in den Foren zu erstellen.