Hi @Nalini Bhavaraju, Thank you for your response. I have tried a work around for your question.
In the Copy Data activity, the supported format for APIs is JSON only. However, if the API returns data in a different format (like XML), you can use a Web activity in combination with Copy Data to handle the response as shown below.
1: Using Web Activity to Call an XML API
I used a sample API that responds with data in XML format. This API was called using a Web activity, and the debug output looked like the following:
The entire XML response is returned as a plain string.
2: Creating a Dummy Source
Next, I created a Copy Data activity. As the source, I used a CSV file (the actual content of the file is not important—just ensure it has at least one row, similar to the sample below):
3: Configuring the Sink
For the destination (sink), choose the Delimited Text option. Name the file as op.xml.
Make sure you uncheck the "First row as header" option and set quote character to "No quote character."
Here is how the sink dataset is configured:
4: Mapping Configuration
In the mapping section, import the schema, and retain only the additional column you added manually for the XML content.
Final Output
This configuration generates an output file called op.xml in your destination storage location.
Post-Processing
If needed, you can use Data Flow to further transform this file and convert it into your desired format.
You can refer this QnA for transformation.
I hope this information helps you. Happy to help you always.
Kindly consider upvoting the answer if the information provided is helpful. This can assist other community members in resolving similar issues.