Expand my Community achievements bar.

Wondering how Workfront Proof works? Join our AMA on May 8th and ask our Community experts!

Has anyone been able to get an HTML message to work for a Custom API Note message?

Avatar

Level 2

Has anyone been able to get an HTML message to work for a Custom API Note message?

 

The following POST to a NOTE object, with the following body:
{
"html": "This is a <b>test</b>!",
"tags": [
{
"objID": "64517252002657c6b1a2558ea0b67dfd",
"objObjCode": "USER"
}
],
"objID": "65a9634f00058c33276cbf0a1c06dacc",
"subject": "test",
"noteText": "1",
"json": "1",
"noteObjCode": "OPTASK"
}

 

...gives me the following error:
The operation failed with an error. [422] Cannot deserialize instance of `java.util.LinkedHashMap<java.lang.Object,java.lang.Object>` out of VALUE_NUMBER_INT token at [Source: (String)"1"; line: 1, column: 1]

 

The API seems to no like:
"json": "1"

Any ideas?

 

1 Reply

Avatar

Level 6

Screen Shot 2024-01-19 at 4.28.58 PM.pngScreen Shot 2024-01-19 at 4.29.03 PM.png

 

We use the Create Record approach.  You may want to start there to verify.