Refresh Dropdown Control with a REST data source
Hello,
I have a drop down list that is using a REST API data call to populate its values. When the form loads, I have an API that performs a call to recieve the OAUTH token. I then need to pass that token to the drop down API call. However, the drop down performs the api call as soon as the form loads so it doesn't have the token and the call fails. Is there a way to call the API for the dropdown AFTER we get the token when the form is loading? Auto lookup / binds is not an option, as you cant bind an auto lookup from a REST API call.
-
Hi Christopher,
Your requirement seems to be cascading situation, You can follow the below steps,
- Bind OAUTH Token API Response to textbox and you can hide that control.
- Use this textbox control for the authorization in the dropdown API Configuration Lookup.
- Open up the Auto-Lookup Configuration window, you will find the dropdown “Execute This Lookup on“. Please select the option “Specific Field Value Change” When the value got assigned to textbox control, Lookup will get triggered. Please find the below screen capture for reference.

Hope this helps!
Regards,
Aravind
-
Thanks for the responses above! The binding started working out of nowhere. Initially I was not able to select my drop down for the binding but then it appeared yesterday when I signed in. I ended up using what Aravind mentioned above along with the binding to achieve what I was looking for.
Please sign in to leave a comment.
Comments
3 comments