Maecky
Maecky

Reputation: 2038

ADF - Web Activity - 'String' does not match the field: 'body'

I created a Web Activity in ADF and I am trying to send data with the POST method. According to the documentation, the body takes a String (or expression with resultType string). I want to use the @concat String Function as shown in the image below.

I get a warning that says: Expression of type: 'String' does not match the field: 'body'

I am confused, String does not match the body? The documentation says, the body takes a String? Can anyone help?

https://learn.microsoft.com/en-us/azure/data-factory/control-flow-web-activity

'String' does not match the field: 'body'

Upvotes: 7

Views: 8821

Answers (1)

Bo Xiao
Bo Xiao

Reputation: 816

It should be an object type. Please use @json('{"key": "value"}')

Upvotes: 11

Related Questions