Forum Discussion

girishtharwani2's avatar
girishtharwani2
Helper III
1 year ago
Solved

Logic app in Fabric

Hi,   I am trying to execute the logic app which parses JSON and sends a mail in tabular format. The logic app works well when executed with synapse pipeline however same logic app with same param...
  • nilendraFabric's avatar
    nilendraFabric
    1 year ago

    Hi girishtharwani2 

     

    Thanks for getting back.

     

    I think from the first screenshot and this Fabric screenshot it is clear that Fabric is sending text and Logic app is expecting Json, and thats why failed.

     

    In Fabric Data Pipelines, you can override the “Content-Type” header by adding it in the Settings for your Web activity. First, add a Web activity to your pipeline. Then select the activity, go to the Settings tab, and configure headers. Create a header named `Content-Type` and set its value to `application/json` so that Logic Apps or similar endpoints recognize the request as JSON.


    Hope this is will resolve the issue. 

    Please accept this solution and give kudos if this is helpful 

    Thanks