- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2021 04:41 AM
I'm trying to use an existing REST API in UI Builder via UX REST Data Broker (sys_ux_data_broker_rest).
When I add this into UI Builder I can see result data - meaning (I think) it made a request
But no option is provided to pass a parameter to this - how do I define/pass the parameter?
I have tried adding JSX definitions to properties and parameters - but not sure how to tell UI Builder about the parameter that needs to be provided.
### UPDATE
I have got an inch closer.
I found that the "Properties" is an Array
Now the ID field appears in UI Builder.
However even with a specific sys_id in that field (one that does return a user on an HTTP request via Postman) returns empty array.
So the question is now (I think) : How to define the "API" parameter in the 'sys_ux_data_broker_rest'?
If I have tried
- hard coding the id in the API URL - I get data.
- however other forms all fail
- "{id}" - the standard REST API definition form
- "%id"
- "$id"
Solved! Go to Solution.
- Labels:
-
Now Experience UI Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2021 07:47 PM
All is good except your url parameters should contain double curly braces paramters. See the example below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2021 07:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2021 02:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2021 02:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2021 03:41 AM
Hi
I have a follow on question - relating to calling a REST POST endpoint - "How to define pass POST Data via a UX REST Data Broker?". Any chance you could take a look?
Thanks