Update lookup table values through Rest api

%3CLINGO-SUB%20id%3D%22lingo-sub-2301604%22%20slang%3D%22en-US%22%3EUpdate%20lookup%20table%20values%20through%20Rest%20api%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2301604%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20create%20new%20entry%20in%20lookup%20table%20using%20Rest%20but%20getting%20an%20error.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3EERROR%20%3A%26nbsp%3B%3C%2FSTRONG%3E%3CEM%3EAn%20unexpected%20'PrimitiveValue'%20node%20was%20found%20when%20reading%20from%20the%20JSON%20reader.%20A%20'StartObject'%20node%20was%20expected.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EclientRequestId%3A%20af31b745-2214-4635-9a45-0fa1311e7d2c%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EserviceRequestId%3A%20aea3c29f-30ba-b000-fc46-67eccb973d3b%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EUsing%20Post%20message%20%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EURI%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CP%3E_api%2FProjectServer%2FLookupTables('00008e67-65a3-4898-baaa-d82d995bbb02')%2FEntries%2FAdd%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EBody%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%7B'parameters'%3A%7B%3C%2FP%3E%3CP%3E'Value'%3A'110'%2C%3CBR%20%2F%3E'Description'%3A'Added%20from%20Flow'%2C%3CBR%20%2F%3E'SortIndex'%3A'7'%2C%3CBR%20%2F%3E'ParentId'%3A'dd67bf95-85a3-eb11-bfa0-00155dc0a600'%3CBR%20%2F%3E%7D%7D%3CBR%20%2F%3EUsing%20following%20References%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Foffice%2Fproject-javascript-api%2Fjj668218(v%3Doffice.15)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Foffice%2Fproject-javascript-api%2Fjj668218(v%3Doffice.15)%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Foffice%2Fproject-javascript-api%2Fjj668483(v%3Doffice.15)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Foffice%2Fproject-javascript-api%2Fjj668483(v%3Doffice.15)%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I am trying to create new entry in lookup table using Rest but getting an error.


ERROR : An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected.
clientRequestId: af31b745-2214-4635-9a45-0fa1311e7d2c
serviceRequestId: aea3c29f-30ba-b000-fc46-67eccb973d3b


Using Post message : 

URI:

_api/ProjectServer/LookupTables('00008e67-65a3-4898-baaa-d82d995bbb02')/Entries/Add

 

Body 

{'parameters':{

'Value':'110',
'Description':'Added from Flow',
'SortIndex':'7',
'ParentId':'dd67bf95-85a3-eb11-bfa0-00155dc0a600'
}}
Using following References https://docs.microsoft.com/en-us/previous-versions/office/project-javascript-api/jj668218(v=office.1...

https://docs.microsoft.com/en-us/previous-versions/office/project-javascript-api/jj668483(v=office.1... 
 

0 Replies