Pipeline(Azure Synapse Analytics) - copy activity HTTP header setting

Kakehi Shunya (筧 隼弥) 201 Reputation points
2022-10-19T02:22:14.25+00:00

Hello.
I am downloading csv data using HTTP as the data source for copy activity.
I would like to add two headers "Authorization" and "Accept" to the "Additional Header", but I don't know how to write them.
I tried to write it like this in Jason code, but it returned an error.

"source": {  
                                    "type": "DelimitedTextSource",  
                                    "storeSettings": {  
                                        "type": "HttpReadSettings",  
                                        "requestMethod": "GET",  
                                        "additionalHeaders": {  
                                            "Authorization": {  
                                                "value": "@{concat('AnaplanAuthToken ',variables('access_token'))}",  
                                                "type": "Expression"  
                                            },  
                                            "Accept": "csv"  
                                        },  
                                        "requestTimeout": ""  
                                    },  
                                    "formatSettings": {  
                                        "type": "DelimitedTextReadSettings"  
                                    }  
                                },  

251690-image.png
251785-image.png

Please also refer to the attached documentation of Anaplan's API.
251784-image.png

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,133 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,118 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Subashri Vasudevan 11,206 Reputation points
    2022-10-19T06:27:09.417+00:00

    Hi,

    In the additional headers, why do we see [Object object] in your screenshot?

    Usually, we can use the Additional headers field in the data set and give expression like this

    @markus.bohland@hotmail.de ('Anaplan Auth token ',dataset().tokenparam)

    where tokenparam is the token passed to the data set parameter from the activity.

    In the copy activity when you use the data set, you can pass the token from the variable.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.