How to pass query parameters to rest api for sharepoint from copy activity

Praveena Uppalapati [ELB] 51 Reputation points
2021-09-30T06:53:31.643+00:00

How to pass query parameters to rest api for share point (authorization through access token) from copy activity.

https://someurl.com/filename?QueryParameter=somevalue

This kind of passing the query parameters with the relative url is not working.

Could you please suggest on how to pass the query parameter.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
Microsoft Security Active Directory Federation Services
0 comments No comments
{count} votes

Accepted answer
  1. svijay-MSFT 5,256 Reputation points Microsoft Employee Moderator
    2021-09-30T16:24:40.88+00:00

    Hello @Praveena Uppalapati [ELB]

    Welcome to Microsoft Q & A.

    I had tried the below way and it had worked for me.

    Step 1 :

    I had created a Parameter 'Relative URL'

    136677-image.png

    Step 2 :

    I am adding the above parameter to the RelativeURL property of the dataset.

    136771-relativeurl.gif

    Step 3:

    Now in the RelativeURL parameter (Dataset Properties) of the Source setting of the Copy Activity.

    I have configured the parameter with the value : ?$filter= Title eq Test

    This is to filter items with the Title 'Test'
    136764-image.png

    Output :

    Sharepoint List Source :

    136765-image.png

    Output at the end of the Copy Activity

    136791-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Praveena Uppalapati [ELB] 51 Reputation points
    2021-10-01T06:58:04.377+00:00

    Thank you for the answer. It worked

    0 comments No comments

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.