Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

Mark Inactive in bulk by query?

Posted on by 620

What would the query be to mark inactive items that have 0 qty and have not sold since 01-31-2010 in HQ?

Thanks in advance

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Mark Inactive in bulk by query?

    I've found that if you follow the steps I mentioned above and under block sales specify a date to block sales after then run a 250 it seems to work to block the store level from selling the item.

  • Jeff @ Check Point Software Profile Picture
    Jeff @ Check Point ... 13,380 on at
    Re: Mark Inactive in bulk by query?

    Try blocking the sale of the item until 2099

    OR

    FP2 (2.0.1000) includes a new option to Block sales of Inactive Items in the POS options menu in Configuration

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Mark Inactive in bulk by query?

    you wont see those items in reports if they are inactive neither

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Mark Inactive in bulk by query?

    I'm working on doing this now during my yearly physical inventory...after running the sql I am then running a 250 for the items I'm making inactive, placing a do not order on, and blocking sales.  The problem I'm having is I can still key/scan the items into a sale in POS.  Is there no way to prevent this? Or does this indicate some other issue?

  • Bob Johnson Profile Picture
    Bob Johnson 620 on at
    Re: Mark Inactive in bulk by query?

    Thanks again.  everything worked great.

  • Verified answer
    TimB Profile Picture
    TimB 1,175 on at
    Re: Mark Inactive in bulk by query?

    update item set donotorder = 1 where inactive = 1

    This will set all items currently inactive to Unorderable state, the same happens when you check the "May not be placed on purchase order" on the Options tab when editing in SO manager on Item screen.

  • Bob Johnson Profile Picture
    Bob Johnson 620 on at
    Re: Mark Inactive in bulk by query?

    Thanks for the query.  How would I set the inactive list so that it could not be put on a PO?

  • Verified answer
    TimB Profile Picture
    TimB 1,175 on at
    Re: Mark Inactive in bulk by query?

    update i set inactive = 1

    from item i left join transactionentry te on i.id = te.itemid left join [transaction] t on te.transactionnumber = t.transactionnumber and te.storeid = t.storeid and t.time > '1/31/2010' where isnull(t.time,0) = 0 and i.quantity = 0

    This will update the items in HQ. You will then need to use worksheet 250 to update items at stores.

    Hope this helps.

    Tim

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