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 GP (Archived)

Economic order Fields is not updated when we updated the field .

(0) ShareShare
ReportReport
Posted on by

HI Guys,

I insert the items by using eConnect Classes.But my problem is Economic order Field is not updated when we updated the field in Item Vendor Maintenance window.i'm also using the UPDATEIFEXISTS field to update the field if any update occurs.

Please help me.

Thanks,

Pavan G.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    MG-16101311-0 Profile Picture
    26,225 on at

    To update the Economic Order field, you need to make sure you are passing an XML node for the taCreateItemVendors (https://msdn.microsoft.com/en-us/library/jj193318.aspx) and not just the item. You will still need the UpdateIfExists flag set for this node too.

  • Community Member Profile Picture
    on at

    I am passing the Updateifexist flag .eventhough i got that issue..My code is as shown in below.look at once..please let me know if i miss anything.

                   taCreateItemVendors_ItemsTaCreateItemVendors[] itemvendor = new

                   taCreateItemVendors_ItemsTaCreateItemVendors[2];

                   itemvendor[0] = new taCreateItemVendors_ItemsTaCreateItemVendors();

                   itemvendor[0].ITEMNMBR = item.ITEMNMBR;

                   itemvendor[0].VNDITNUM = itemsList.Field<string>("3");                         //For vendor Item

                   itemvendor[0].VENDORID = itemsList.Field<string>("37");

                   itemvendor[0].MINORQTY = Convert.ToDecimal(itemsList.Field<string>("154"));        //For Min order

                   itemvendor[0].MAXORDQTY = Convert.ToDecimal(itemsList.Field<string>("156"));      //For Max order

                   itemvendor[0].ECORDQTY = Convert.ToDecimal(itemsList.Field<string>("158"));        //For Economic

                   itemvendor[0].ORDERMULTIPLE = Convert.ToDecimal(itemsList.Field<string>("160"));  

                   itemvendor[0].UpdateIfExists = 1;

                   itemvendor[1] = new taCreateItemVendors_ItemsTaCreateItemVendors();

                   itemvendor[1].ITEMNMBR = item.ITEMNMBR;

                   itemvendor[1].VNDITNUM = itemsList.Field<string>("3");                              //For vendor Item

                   itemvendor[1].VENDORID = DefaultVendorId;

                   itemvendor[1].MINORQTY = Convert.ToDecimal(itemsList.Field<string>("155"));         //For Min order

                   itemvendor[1].MAXORDQTY = Convert.ToDecimal(itemsList.Field<string>("157"));        //For Max order

                   itemvendor[1].ECORDQTY = Convert.ToDecimal(itemsList.Field<string>("159"));         //For Economic order

                   itemvendor[1].ORDERMULTIPLE = Convert.ToDecimal(itemsList.Field<string>("161"));    //For OrderMultiple order

                   itemvendor[1].UpdateIfExists = 1;

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 GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans