Discussions

Ask a Question
Back to All

Adding notes to a work order

I am using this test on-liner to add a note to a work order. I get a success result, but I am not able to see the note in the actual workorder.

Here is a payload to add a text note:
{
"Entity":{
"ActorTypeId":"WO",
"ActorId":771885,
"Text":"Additional information: Temperature readings show fluctuation between -3°F and -6°F. Recommend checking door seals and defrost cycle.",
"IsPublic":true
}
}

Here is the success result
{
"EntitySpecifier":{
"EntityType":"Note",
"Id":82
}
}

Here is the payload being sent to add an image.
{
"Entity":{
"ActorTypeId":"WO",
"ActorId":771885,
"Text":"temp issue",
"IsPublic":true,
"Documents":[
{
"Title":"chart.png",
"Description":"temp issue",
"IsShared":true,
"IsPublic":true,
"StorageTypeId":"Cloud",
"DocType":{
"DisplayAs":"Picture"
},
"Blob":{
"ActorTypeId":"WO",
"Body":"$(cat chart_base64.txt)"
}
}
]
}
}

Here is the success result

{
"EntitySpecifier":{
"EntityType":"Note",
"Id":81
}
}

But when I view the work order, there are no notes added to it.
https://stage-savemart.corrigo.com/corpnet/workorder/workorderdetails.aspx/771885