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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Employee
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
Employee
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_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.