Jess
Jess

Reputation: 3715

How to use datasets and linkedServices in Web Activity?

Can someone give me a complete example about using this two properties?

enter image description here

And there is something weird in the official example.

{
    "body": {
        "myMessage": "Sample",
        "datasets": [{
            "name": "MyDataset1",
            "properties": {
                ...
            }
        }],
        "linkedServices": [{
            "name": "MyStorageLinkedService1",
            "properties": {
                ...
            }
        }]
    }
}

Why pass strings, and it seems not working?

Upvotes: 0

Views: 3132

Answers (1)

KarthikBhyresh-MT
KarthikBhyresh-MT

Reputation: 5034

Suppose you would want to pass the Dataset's or the LinkedService's Json code to your API, you have a provision through WebActivity under settings fields Datasets and Linked services.

Practically I haven't come across such a scenario, but below is one such possibility.

If you want to create ADF pipelines, datasets, linked services using REST as explained here Create linked services & Create datasets Also, these can be passed into the call as an array for the receiving service.

Check out the below example, where you can create new sql linked service and dataset with scaled Azure SQL Database refering and existing one. Similarly, you can also use Blob storage linked service to pass file name received from trigger as parameter to rest API.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

Upvotes: 1

Related Questions