Skip to main content

Notifications

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

  • Community Member Profile Picture
    on at
    RE: Economic order Fields is not updated when we updated the field .

    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;

  • Suggested answer
    Mariano Gomez Profile Picture
    26,225 on at
    RE: Economic order Fields is not updated when we updated the field .

    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.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans