Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Unanswered

How to perform GetEmployeeList using DynamicGPwebservice in Microsoft dynamic GP?

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
  • 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans