web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Inventory : Change default Site ID

(0) ShareShare
ReportReport
Posted on by 66

Need to run a SQL query to change over 100 inventory items' Default site ids in the Inventory module.

1. Would like to know if "Inventory.DfltSite" is the only one place that needs to be changed? Also,

2. Can I run query anytime ?

Thanks for your help!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Apps Mexico Profile Picture
    1,090 on at

    Hi Ginny,

    You have to update the INDfltSites for the siteid and ItemSite if the location changes too.

    update indfltsites set dfltpickbin= @DfltPickBin,dfltputawaybin= @DfltPickBin,dfltsiteid= @NewSiteId,lupd_datetime= GETDATE(),lupd_user= 'SYSADMIN' where invtid= @InvtID AND cpnyid= @CpnyID

    UPDATE ItemSite SET DfltPickBin = @DfltPickBin, DfltPutAwayBin = @DfltPickBin WHERE InvtID = @InvtID AND SiteID = @DfltSiteID

    Run your query with a Begin Transaction and Commit Transaction and can run it anytime.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans