Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

How to perform GetEmployeeList using DynamicGPwebservice in Microsoft dynamic GP?

(0) ShareShare
ReportReport
Posted on by 5
We are working with the methods of dynamicGPWebservice like Get, create, update, or Delete the objects.

We are facing the "The application encountered an unhandled system exception.  Contact your system administrator for details." error with the methods of the services. 
Need clarification on request payload. Kindly give an idea to proceed further.
Request Payload: 

<soapenv:Envelope xmlns:soapenv="">schemas.xmlsoap.org/.../" xmlns:ns="">schemas.microsoft.com/.../01" xmlns:ns1="">schemas.microsoft.com/.../01" xmlns:ns2="">schemas.microsoft.com/.../01">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:GetEmployeeList>
         <ns:criteria xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns:xsi="">www.w3.org/.../XMLSchema-instance">
            <ns:EmployeeKeyId>
               <ns:EqualValue>BARB0001</ns:EqualValue>
            </ns:EmployeeKeyId>
            <ns:IsActive>
               <ns:EqualValue>1</ns:EqualValue>
            </ns:IsActive>
            <ns:Scope>Return All</ns:Scope>
         </ns:criteria>
         <ns:context xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../01">
            <ns1:OrganizationKey xsi:type="CompanyKey">-1</ns1:OrganizationKey>
            <ns1:CultureName>en-US</ns1:CultureName>
            <ns1:CurrencyType>Transactional</ns1:CurrencyType>
         </ns:context>
      </ns:GetEmployeeList>
   </soapenv:Body>
</soapenv:Envelope>
Regards,
Priya

*This post is locked for comments

  • RE: How to perform GetEmployeeList using DynamicGPwebservice in Microsoft dynamic GP?

    Hi,

    For Reference:

    I got below exception details in DynamicWebserviceException Console.

    pastedimage1568785176940v1.png

    If I removed OrganizationKey field in the request payload, i got below exception,

    pastedimage1568785278808v2.png

    Regards,
    Priya

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans