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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors