title: How to get PayloadUUID by server in MDM
body: <p>We are trying to send few commands in MDM to iOS Device. We tested basic commands like device lock, etc., for other commands like one App being to make as KIOSK App, that command was expecting PayloadUUID, how to get that payloaduuid.  We have enabled "General", "Credentials","Mobile Device Management" payloads.</p>
  
  <p>Please find the below command using by server,</p>
  
  <pre><code>public static String getAppLockPList(){
          StringBuffer backString = new StringBuffer();
          backString.append("&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;");
          backString.append("&lt;!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\"");
          backString.append("\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"&gt;");
          backString.append("&lt;plist version=\"1.0\"&gt;");
          backString.append("&lt;dict&gt;");
          backString.append("&lt;key&gt;PayloadContent&lt;/key&gt;");
          backString.append("&lt;array&gt;");
          backString.append("&lt;dict&gt;");
          backString.append("&lt;key&gt;App&lt;/key&gt;");
          backString.append("&lt;dict&gt;");
          backString.append("&lt;key&gt;Identifier&lt;/key&gt;");
          backString.append("&lt;string&gt;com.company.identifier&lt;/string&gt;");
          backString.append("&lt;/dict&gt;");
          backString.append("&lt;key&gt;PayloadType&lt;/key&gt;");
          backString.append("&lt;string&gt;com.apple.app.lock&lt;/string&gt;");
          backString.append("&lt;key&gt;PayloadIdentifier&lt;/key&gt;");
          backString.append("&lt;string&gt;com.company.identifier&lt;/string&gt;");
          backString.append("&lt;key&gt;PayloadUUID&lt;/key&gt;");
          backString.append("&lt;string&gt;d7e27098ad530884664a98a6f93ab3796f97b&lt;/string&gt;");
          backString.append("&lt;key&gt;PayloadVersion&lt;/key&gt;");
          backString.append("&lt;integer&gt;1&lt;/integer&gt;");
          backString.append("&lt;/dict&gt;");
          backString.append("&lt;/array&gt;");
          backString.append("&lt;key&gt;PayloadType&lt;/key&gt;");
          backString.append("&lt;string&gt;Configuration&lt;/string&gt;");
          /*backString.append("&lt;key&gt;PayloadDisplayName&lt;/key&gt;");
          backString.append("&lt;string&gt;##########&lt;/string&gt;");*/
          backString.append("&lt;key&gt;PayloadIdentifier&lt;/key&gt;");
          backString.append("&lt;string&gt;com.company.identifier&lt;/string&gt;");
          backString.append("&lt;key&gt;PayloadUUID&lt;/key&gt;");
          backString.append("&lt;string&gt;d7e27098ad530884664a98a6f93ab3796f97b&lt;/string&gt;");
          backString.append("&lt;key&gt;PayloadVersion&lt;/key&gt;");
          backString.append("&lt;integer&gt;1&lt;/integer&gt;");
          backString.append("&lt;/dict&gt;&lt;/plist&gt;");
          return backString.toString();
      }
  </code></pre>