Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Using GP web services to update Sales Items

Posted on by 75

I am new to GP, I need help with updating existing Sales Item using Web Services , I am able to create an Item using CreateSalesItem() but when I use the same for update it gives an error  "Item Number already exists and the UpdateIfExists flag is set to not allow updates" and I did not find any UpdateSalesItem() method.Please Help.

*This post is locked for comments

  • Kiran_GP Profile Picture
    Kiran_GP 75 on at
    RE: Using GP web services to update Sales Items

    I used direct Store procedure "taUpdateCreateItemRcd" to Create and Update Items, For now I am  updating Item number, Item Description Class Code,Unit of Measure, User Categories , Cost,weight...  but technical we could update all the values that a procedure lets us I guess. I was also able to use Web services to Add Item  vendors ,Pricing.

  • Suggested answer
    sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    RE: Using GP web services to update Sales Items

    Kiran,

    Great Job!!! Did you use eConnect to update Item Master?  You don't need to do anything after Item is updated.

    Just curious to know which field you have updated?

    Thanks

    Sandip

  • Kiran_GP Profile Picture
    Kiran_GP 75 on at
    RE: Using GP web services to update Sales Items

    I was able to successfully  create a new item using aUpdateCreateItemRcd , I like to know is there any other tables  that needs to be inserted or updated data  before this item can be used?

  • Verified answer
    sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    RE: Using GP web services to update Sales Items

    I don't see anything in Policy for UpdateIfExist. But eConnect will be only one solution right now I am thinking.

    Thanks

    Sandip

  • Kiran_GP Profile Picture
    Kiran_GP 75 on at
    RE: Using GP web services to update Sales Items

    Thank You Sandip, I have to look into eConnect  . The error message, Web services is throwing when Item exist, looks like it is from underlying store procedure because Web services is setting UpdateifExists param value to default which is  0 (not to update), is there any way ( may be using Policy and behavior) or any way where we can change the default values?

  • Suggested answer
    sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    RE: Using GP web services to update Sales Items

    Kiran,

    Didn't find UpdateSalesItem(). Don't know why Webservices don't have web method for updating Items.

    Why don't you use eConnect and wrapped that one into Custom Web Services? Even Microsoft Dynamics GP Web Services use eConnect behind seen.

    msdn.microsoft.com/.../ff624038.aspx

    Thanks

    sandip

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans