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)

UpdateIfExist when creating Salesitem or ItemMaster

(0) ShareShare
ReportReport
Posted on by 140

Hi,

I am trying to synchronize the item master of our application with GP using Dynamic GP Webservice Methods.
I am able to create an item in GP using CreateSalesItem method but I coudn't find any webmethod to update it.
So tried same method to update i.e, CreateSalesItem, its gives me an error msg "Item Number already exists and the UpdateIfExists flag is set to not allow updates". How can i set UpdateIfExists flag to true?
Please help.

Regards
Saju

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Saju Foddu

    I got same prodblem like you.

    Could you please tell me the solution for it if you solved it.

    I would like to know how you solved this problem

  • Tim Wappat Profile Picture
    5,711 on at

    I'm not expert in webservices, but have you tried following the instructions in the documentation?

    msdn.microsoft.com/.../cc508759.aspx

    Also posting a code snippet of what you are doing might help show the issue.

    Tim

  • Community Member Profile Picture
    on at

    Hi Tim Wappat

    I want to update SalesItem will give any code snippet or an idea to update the SalesItem

  • Tim Wappat Profile Picture
    5,711 on at

    I would imagine you would follow the same pattern but using sales item.

    Perhaps someone else reading this, who has experience in this exact document may be able to confirm this for us.

    Tim.

  • Community Member Profile Picture
    on at

    Hi Wappat

      // Get the update policy for SalesItem

               itemPolicy = wsDynamicsGP.GetPolicyByOperation("UpdateSalesItem", context); //Here UpdateSalesItem Policy is not exists

               // Update the SalesItem information

               wsDynamicsGP.UpdateSalesItem(salesItem, context, itemPolicy ); //Here UpdateSalesItem method is not exists

    How to create new method for it

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