Как добавить существующее customProperty в существующее приложение в qliksense через API qrs? - PullRequest
0 голосов
/ 17 декабря 2018

Я пытался добавить существующее пользовательское свойство в существующее приложение с помощью qrs.Я пробовал много разных форматов для массива customProperties.В третий день я пытаюсь добавить пользовательское свойство в приложение.

Я получаю сообщение об ошибке: Получен код ошибки: 400 :: Операция «GetAllByMany» не выполнена.

Мой код:

function setTheProps(appId, lastModifiedDate){

var jsonArr = [];
jsonArr.push({
            modifiedDate: lastModifiedDate, //this is the modifiedDate retrieved from the app
            modifiedByUserName: "my\\un",
            value: "Node C"
        });


console.log(props);
console.log(jsonArr);

 trt.Put('/app/' + appId,
        {
            "modifiedDate": lastModifiedDate, // this is key, and is what's causing the 409 CONFLICT if missing
            "customProperties": 
                jsonArr

        },
        'json'
    ).then(function(result)
    {
        console.log(result.body);
    })
    .catch(function(error)
    {
        console.log('node customProps error: ' +error);
        process.exit(0);
    });
}
...