I believe I am having an issue with the JSON format. In the body I have tested this out in postman and it works. But in the resource query I am using raw body because the JSON option is key values. Inside my post body I have nested objects and do not know how to input that as a key value.
This error leads me to believe it is using xml as the type.
{"rawXml":"\r\n The request entity's media type 'text/plain' is not supported for this resource.\r\n","parsedXml":{"Error":{"Message":["The request entity's media type 'text/plain' is not supported for this resource."]}}}
Hey @tbommer, uhmm, wow. Confirming, is there only 2 properties for ServicePackageHeader: Title and Description?
Can't you use a transformer prior to this code block to format your Description field? I tried checking this but doing my head in. For cumbersome string/raw json format, I would suggest you work on this on a code block and specify how that body value should be.
Also, why are you not using a JSON Body instead of raw? Just a tip as well, try building the workflow as an app so you can easily understand the data you are passing before writing in workflows.
@jocen JSON turns to Key Value entry. And I have nested objects in the body. I am not sure how to do key value with the requirements of my JSON.
I would prefer to do this using JSON Body. Can you tell me what the key and value would be for ID below?
"ServicePackages": {
"ItemCollection": [
{
"ID": "00000000-0000-0000-0000-000000000000",
"Chapter": "Service",
"Code": "ESR-FN",
"Rank": 1,