Harness IDP - Add for support API validation of user entered values
pending feedback
Q
Quartz Kiwi
Currently, we have multiple IDP workflows that allow users to create Bitbucket repositories within respective projects based on user-entered values. However, there is no built-in mechanism to validate whether the entered repository name already exists before proceeding with creation.
For example, in an IDP workflow, we have a field: "Enter the repository name to be created". We want to validate this user input against Bitbucket before the repository is created, preventing duplicate repositories.
Current Workaround & Limitation:
Harness IDP supports fetching API-driven options via SelectFieldFromApi, allowing users to pick from a list of existing repositories. However: SelectFieldFromApi only works when selecting from pre-fetched options. It does not validate a user-entered value in real-time.
Log In
Himanshu Mishra
pending feedback
Himanshu Mishra
Hi Avinash, please take a look at "Validation of Inputs using API requests" https://developer.harness.io/docs/internal-developer-portal/flows/dynamic-picker#live-user-validation-using-api-requests
Let us know what you think.