Hello,
I try to put a result of get api into a lookup ,that's work for me when the resultSize is 1 but when I get more than one result I get the error "Cannot add multiple items to a Lookup of style single"
Thank's
*This post is locked for comments
Hi,
You can not select more than one record in a lookup , however you can populate more than one record by creating association in the related entity.
If you are showing data in a lookup that means you are associating another entity with 1:N relationship which means only one record you can choose and other end you can display more than one that means in a subgrid. Make sure you are implemented proper relationship to display the multiple data.
Hi,
Lookup cannot store more than 1 record value. If your result is returning multiple then you may need to add a check to only add the first/ default record to the lookup.
Hope this helps.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156