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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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