Hi @Saurav Panda [C]
It looks like you are getting a 401 Unauthorized error when invoking the endpoint in your Web API destination. This error occurs when the client request lacks valid authentication credentials for the requested endpoint URL.
To resolve this issue, you need to provide the correct authentication credentials in your Web API destination settings. Here are the steps to follow:
- In the Web API destination settings, go to the Authentication tabSelect OAuth 2.0 as the authentication type.
- In the Client ID field, enter the client ID of the Azure AD application that has the necessary permissions to access your Dataverse instance.
- In the Client Secret field, enter the client secret of the Azure AD application.. In the Tenant ID field, enter the ID of your Azure AD tenant.
- In the Resource field, enter the following value: https://<organization>.crm.dynamics.com, replacing <organization> with your organization name.
After providing the correct authentication credentials, save your Web API destination settings and run your pipeline again. This should resolve the 401 Unauthorized error and allow you to truncate the table in Dataverse before loading data from multiple sources.
Let me know if you have any other questions.