Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Simon911
Regular Visitor

Handling multiple sendgrid accounts

I have been importing data from 5 different sendgrid accounts but as the import url is same "https://api.sendgrid.com/v3/stats" i am having problems refreshing the data. I have save data for one account at a time by editing the data source setting and changing the credentials. So in turn it creates a problem when it auto refreshes once i publish to powerbi web, beacause when it auto refreshes it recognizes the credentials of one sendgrid account and hence the data for all sendgrid account tend to be similar.

 

Is there a way to handle multiple sendgrid accounts? Its time consuming to manually change the permissions for individual accounts everytime i want to update the data.

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Simon911

 

In Power BI, we can use query parameter to configure a dynamic data source, but it can't be used on Power BI Services. It can't be resolved by gateway either.

 

In this scenario, you should refresh all 5 accounts data. If you have a super account which can view all 5 account data, you should use this account credential in gateway, and set Row Level Security to limit data access for different account. Otherwise, you have to create 5 dataset, and configure 5 individual gateways with different accounts for each dataset.

 

Regards,

View solution in original post

4 REPLIES 4
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Simon911

 

In Power BI, we can use query parameter to configure a dynamic data source, but it can't be used on Power BI Services. It can't be resolved by gateway either.

 

In this scenario, you should refresh all 5 accounts data. If you have a super account which can view all 5 account data, you should use this account credential in gateway, and set Row Level Security to limit data access for different account. Otherwise, you have to create 5 dataset, and configure 5 individual gateways with different accounts for each dataset.

 

Regards,

ankitpatira
Community Champion
Community Champion

@Simon911 ONe way to do that is use query parameters. Check out this post on how to make your data source dynamic. You can do similar for passing username and password details for your query. So each time you choose paramter values your query gets updated and data is returned for the username you've choosen via parameter.

@ankitpatira Can you give me an example or can you tell me how can i configure query parameter for sendgrid accounts? I tried but could not get through it. It eventually considers the data source settings for the account and anyway i have to change it again when i have to import for other sendgrid account.

 

Hi, I want to access the sendgrid data without any aggregate , is it possible to achieve this?

thanks .

@v-sihou-msft    ,@ankitpatira 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.