While calling a interface in another interface, I encountered the error message "All selected values must be present in the choiceValues array". I used same constant in both choice label and choice values i.e. cons!
Below are the supporting documents. Kindly help
Discussion posts and replies are publicly visible
ankitas8394
The value in the local!empData has the value for Employment type as 2.Permanent which does not match with the constant values which is Permanent. You need to check the data that is present in the local!empData.
Correct the value either in the constant or check the AE_Convert_API_Response_Data and configure the output accordingly. Please share the rule!AE_Convert_API_Response_Data Code snippet here.
It sounds like you're encountering a mismatch between the selected value and the choiceValues in your dropdown or radio button field. Here's how to resolve it:
choiceValues
Create a New Constant for IDs:
employee type
1, 2, 3, 4
choiceLabels
Use dropdownFieldByIndex() (if IDs are sequential):
dropdownFieldByIndex()
Ideal Long-Term Solution:
isActive
QueryEntity
This should resolve the error and provide a more flexible solution for future change