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.
9,487 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,187 questions
0 comments No comments
{count} votes

Accepted answer
  1. svijay-MSFT 5,201 Reputation points Microsoft Employee
    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