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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.