Skip to main content
Question

Building QB Code Pages in Python

  • November 13, 2018
  • 0 replies
  • 81 views

Hi, 

For building advanced API & custom codes in QB the options of code pages seems to be a great way to accomplish this. 

 In my case Python I am looking to make calls from inside QB to external systems using python as the main language. The platforms I wish to integrate with already have pre-built libraries ready, which will make the integration a lot easier.  

 -- (Oauth2 & Google API client libraries) --
 

But I am unable to find any use cases or help files that will help me learn more about the QB compatibility with Python.

So here is my questions: 

- Is it possible to create  and run a code page written in python that is using imported libraries ? 
- Can quickbase handle pip install and import commands ?


This topic has been closed for replies.

  • Registered
  • November 13, 2018
There is no ability to run any server-side code such as Python from a code page. If you want to capitalize on your Python skills you have to run your code from your own server or perhaps through one of the FaaS services (AWS Lambda, Google Cloud functions, Azure functions).

  • Author
  • Registered
  • November 14, 2018
Thanks for your response.. 

Python aside as I should be able to work with JSON requests through the webhook feature..
However I still have a problem with my Oauth credential. 

I have set up Oath to run in javascript in a code page, which will be executed on a formula button.
this does prompt the user with the consent screen, but when I try to run a webhook afterwards using the JSON method, I get error messages that I am not authorized / logged in.

seems that either QB dropping the token extremely fast or not able to store it at all.

Any advise on this issue ?


Thanks