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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
arifulice
Helper I
Helper I

Power Query Rest API and implement a logic when data pulling from eCommerce store

I have a excel sheet with power query connetions to a rest api of my ecommerce store. Now i want to use this as a template in the future and therefore i want to lock the excel via another power query that checks a server for a license code. i already have the rest api and everything.
The only thing that needs to be done is the following:

There is a cell where you can enter the license code. if the license code go entered, the power query should check with this code against the rest api, if the code is valid. if the response is "ok", the excel should load all other power queries. If the response is anything else, the excel should stop and trow and error.

Do you knwo what i mean?
Here is a example url. Only if "Success"="True", the excel should work...

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @arifulice,

 

Whether Excel supports such a feature that users can enter a license which is passed to Power Query to check of it is valid, you should post thread on Excel forum. And how to achieve this requirement that create a M function to check the license, you'd better post thread on Power Query forum to get more professional suggestion.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.