Is there a way to export Application Studio Layer "code"?🤔

Wondering if anyone knows of a way to export out a layer “code” to review it there. Working on my layer and trying to review that everything is set up correctly is extremely inefficient. If I could just review something in text, it would be so much easier.

Well, if you export out a layer it is pretty much just json. But it is not formatted and therefore hard to review. Anyone know something that will automagically format a blob of json into something more readable?

In the Developer Tools, look for the GetApp network call when the layer loads, look at the response, copy-pasta into your favorite code editor, which VS Code will format once you save it as a .json file.

7 Likes

Classic fine?

Awesome! Thanks

So, @Mark_Wonsil . Theoretically, it appears I could export my layer, open the file in Notepad++, make changes to it, save it, and upload it instead of using App Studio?

Thoughts?

Theoretically, like any other Business Object, just follow the trace that Application Studio uses and it should work.

5 Likes

If that looks helpful, I’ll package it up and share it.