Hello Everyone,
I am creating an powerapp screen with dropdowns and text fields. My goal is to integrate ChatGPT with the app using API Key, based on the query I request it, get response in JSON format from the ChatGPT, parse the JSON in the app and fill the screen using the extracted Values.
After integrating ChatGPT, I am able to fill the extracted values in text fields directly.
For Dropdowns, I need to compare if the extracted value is in the Items of the dropdown. If exists, I will select the dropdown value using 'DefaultSelectedItems' with below formula:
If(BoolVariableFoundInJSON And FormName.Mode = FormMode.New, [VariableDataExtractedFromJSON], [Parent.Default])
Based on value 'BoolVariableFoundInJSON', I am able to set the dropdown value to 'VariableDataExtractedFromJSON' or 'Parent.Default'
Once the value is set, I am saving the app data to a Dataverse table, here the dropown values are not storing to the table when automatically filled. The values are saved when I select manually.
Can anyone please suggest me the solution for this.
Regards,
Kalyan