Skip to main content
Announcements
Happy New Year! Cheers to another year of collaboration, connections and success.
cancel
Showing results for 
Search instead for 
Did you mean: 
Chris_Miller147
Contributor
Contributor

Calling GetScript with params

Hi,

Looking for some guidance please on the GetScript method. On the dev hub I can execute this without error, it returns the script of the QVF  - where the script is not too large.

The trouble is I have a QVF which has 20+ script tabs, often 100's of lines long... this results in a message "// response too big to display"

Can this method be run with params to extract only one tab or a few selected tabs?

Ultimately I just want to export the script and begin exploring options for storing code in Git.

Thanks

Chris

Labels (1)
  • API

4 Replies
alex_colombo
Employee
Employee

Hi @Chris_Miller147 , seems GetScript method has no params. I suggest to open a support case and see if we can improve this method.

Øystein_Kolsrud
Employee
Employee

Where do you see that message "response too big"? The "Operations Monitor" app has a script more than 2000 lines long, and I can at least get that script just fine. I'm not aware of any such size limitation API-wise, so I'm kind of suspecting you are running into some limitation in the client you are using.

Chris_Miller147
Contributor
Contributor
Author

It appears when calling the method within the dev hub. So using the drop downs to first select the app then the method which generates the sample script and then hitting execute.

My app is much longer than 2000 lines. I will try running this from within our mashup, it may be the result window in the dev hub is limited for space.

I'll update when I've tried this properly from a mashup app.

Alex, sounds like a good idea I'll look into raising this as an idea/support case.

Thanks for the replies so far.

Øystein_Kolsrud
Employee
Employee

It looks like the dev hub has a limit on the size of responses it can display. Looks to be just below 500k characters from what I can see. But the API it self has no such limit. I can easily download a script with a million characters through the API.