How to set an item inactive through Sage SDK

I am trying to make an item inactive through Sage SDK, but I am unable to find any method or property in InventoryLedger class to do the same?

Anyone, please help me to do the same?

Thanks in advance

  • 0

    This isn't really a new user forum issue.  You should be posting in the Third-Party Development Forum.

    I don't use the SDK but if you can't find a method to do it, then it is likely you will have to issue your own update SQL command to update `tinvent`.`bInactive` = 1 for the appropriate item(s).

    Please be careful with these kinds of commands.  If there are other users in the program at the time, in some cases their versions may not reread the `bInactive` status right away so you might want to make sure the file is open in single-user mode first.  I don't believe you can't tell if someone has the specific item on a data entry screen at any time and if you make it inactive before the person posts, it may cause unexpected results.

  • 0

    Hi @afsalammad,

     

    Thanks for your SDK related question, I am going to move this post to that Support Group so that other users will see it and can offer you their thoughts and insight.

     

    Thanks,

    Erzsi