App Studio, rest-kinetic, method parameter type of "object"

I have an event in which I am trying to use Ice.BO.AttachmentSvc service and method DocStarUploadFile to upload a file to DocStar.

I’ve used the “rest-kinetic” action in the past but not when one of the method parameters is of type “object”, wondering if anyone has experience with how that should be formatted.

I’m referring to this:
image

I can invoke the method in Postman and get a valid response, the “metadata” parameter is shown in the Body/Payload as this:

I feel like I should be able to send a json string constructed in the same way for the “object”, have tried with single and double quotes and keep getting an error (generic correlation error).

I’m trying to trace and get a server log to get more details, but wondering if someone has a similiar example they can provide

Thanks…

1 Like

I finally managed to get my browser trace log for the correlation id, the error is:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

My theory that I confirmed was that had to do with the “data” method parameter as I noticed the encoding when using postman.

So it’s a little further, now I got a more useful error:
[CDATA[Newtonsoft.Json.JsonSerializationException: Error converting value "{"_Category":"JOBPROOF","_TableName":"Erp.LaborDtl","_TableSysRowID":"370eaa5b-cc57-42f9-9b8c-5a5adfe5d174","Keywords":"592545 3415530","_Comments":"","_Status":"","_Author":"Scott Janisch","Company":"OFB","JobAssySeq":"","JobNum":"904489-7-1","JobOpSeq":40}" to type 'System.Collections.Generic.Dictionary`2[System.String,System.String]'. Path 'metadata'.

at least now I know I’m at the right spot now as this is what i set the “object” value to, assuming it wanted Json…so now will have to play with that, will post back if I find success

1 Like