Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

You want to prompt the user to Confirm a message.Use the document queue to inspect the XML data being sent to and from the Mobile devices.


Benefits

During development it can be very useful to inspect the XML to know:

  • Have you code taken effect?
  • Which values are available in the request you are reading


Flow

Due to the nature for Webservices the flow is as follows:

  • Request = Request from mobile device  BC.
  • Response = Response from BC to → mobile device.

How to use it

Go to to the "Mobile Document Queue"-page 


  1. Select Document 
    1. Select Show Request XML
    2. Select Show Response XML


Image Added


For examples, a request will give you an overview of which values are available to you.

Code Block
languagexml
themeEclipse
titlePost Request
<?xml version="1.0" encoding="utf-8"?>
<request name="PostAdhocRegistration" created="2020-02-14T15:24:24+01:00" xmlns="http://schemas.microsoft.com/Dynamics/Mobile/2007/04/Documents/Request">
  <requestData name="PostAdhocRegistration">
    <MyDate>14-02-2020</MyDate>
    <MyText>2</MyText>
    <MyDecimal>4</MyDecimal>
    <MyDateStep>14-02-2020</MyDateStep>
    <MyTextStep>2</MyTextStep>
    <MyDecimalStep>4</MyDecimalStep>
    <RegistrationType>MyUnplanned</RegistrationType>
  </requestData>
</request>