Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to remove few drop down records in ItemGroup

(0) ShareShare
ReportReport
Posted on by 5

Hello Everyone,

While creating a new record in released products, we select itemgroup. From that drop down top two of the records need to be removed.

Sharing the screenshot for reference.

pastedimage1680243279802v1.png

Thanks in advance.

  • Hanisha Profile Picture
    Hanisha 5 on at
    RE: How to remove few drop down records in ItemGroup

    Okay will update!

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to remove few drop down records in ItemGroup

    Also convert the lookup query to string using "toString" method and paste it here.

    Thanks,

    Girish S.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: How to remove few drop down records in ItemGroup

    Please share your code so we can provide input.

  • Hanisha Profile Picture
    Hanisha 5 on at
    RE: How to remove few drop down records in ItemGroup

    No luck, I tried what you suggested. Thanks.

  • Hanisha Profile Picture
    Hanisha 5 on at
    RE: How to remove few drop down records in ItemGroup

    Okay i will try this and come back. Thank you so much for the active support.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to remove few drop down records in ItemGroup

    Mohit is correct. I didn't see that one. You are passing product name which is wrong. You need to pass item group ID

    Thanks

    Girish S.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: How to remove few drop down records in ItemGroup

    You are setting incorrect range on Item Group with value Audio products. (Audio products is the name as per your screenshot, not an item group)

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to remove few drop down records in ItemGroup

    Try the suggestion given in the below thread.

    community.dynamics.com/.../filtering-out-for-multiple-values-in-query-range-using-addrange

    Also try adding query output to infolog using toString method of the query class and see how the query was built in.

    Thanks,

    Girish S.

  • Hanisha Profile Picture
    Hanisha 5 on at
    RE: How to remove few drop down records in ItemGroup

    No luck i tried...After adding the error was gone but am unable to remove those two records from lookup. Thanks

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to remove few drop down records in ItemGroup

    You are missing fields that needs to be shown in the lookup.

    systablelookuo.addLookupField(fieldnum(InventItemGroup, ItemGroupId));

    Thanks,

    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans