In reply to: Daniel Krüger (Cosmo Consult)
Hi Nik,
welcome to WEBCON BPS and I'm sure that you are going to stay. :)
I will provide some information this I don't know what you already know.
My best bet is to use the Report API, to access the defined fields and workflows. If you need more, you could page through them with the page parameter:
https://developer.webcon.com/2021/resources/rest_api3.0/#operation/GetDefaultViewReportData
/api/data/v2.0/db/{dbId}/applications/{appid}/reports/{reportid}/views/{viewid}?page=
Other resources
- BPS REST in general: https://developer.webcon.com/docs/rest-api/
- Local swagger documentation/test: https://hostname/api/index.html?urls.primaryName=API%20v2.0
Personal opinion regarding using the BPS REST inside JS
You need to create an App and use its Id along with the secret to get an authentication token. So the client knows these therefore you should be careful with the permissions which are granted to this App. Maybe it's also an option to use impersonation.
In version 2020.1.3 there's a small issue. The returned view must not contain an indicator field this will throw an internal error. I haven't checke the new version.
Best regards,
Daniel
Hi Daniel!
Thanks for the fast and very useful answer. I will give it a try, when it comes to implementation.
And yes, I intend to stay, but I still have to learn a lot ;-)
I know the concept of ClientId and ClientSecret from SharePoint and I also took a look into Swagger UI, which is very useful.
Do you know by any chance, if there are already some existing typings for the returned JSON objects (C# interfaces or TypeScript).
Thanks a lot in advance and have a nice day,
Best regards, Nik