Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Lookup with more of one object in the array value

Posted on by 90

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

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Lookup with more of one object in the array value

    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.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Lookup with more of one object in the array value

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans