export_file_to_jdoc

Upload a file to an organization's files within John Deere Operations Center.

Input fields

description (String!)

A description of the JDOC export. For example: "FieldAgent Web Zone Rx".

export_type (JdocExportType!)

The type of JDOC export.

file_sentera_id (ID!)

The Sentera ID of the file to export.

Return fields

error (JdocExportError)

Error details if the export failed.

success (Boolean!)

Whether the export was successful.

url (Url)

The URL to the file in Operations Center.

Examples

Export File to John Deere Operations Center (Success)

Upload a file to an organization's files within John Deere Operations Center.

Try this example in GraphiQL
mutation ExportFileToJdoc {
  export_file_to_jdoc(
    file_sentera_id: "18qec2v_FI_cyscAcme_CV_deve_6e3c36d3f_220308_135409"
    export_type: PRESCRIPTION
    description: "FieldAgent Web Zone Rx"
  ) {
    success
    url
    error {
      code
      message
    }
  }
}

{
  "data": {
    "export_file_to_jdoc": {
      "success": true,
      "url": "https://files.deere.com/platform/files/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
      "error": null
    }
  }
}

Export File to John Deere Operations Center (Failure)

Example response when the organization does not have permission to upload files.

Try this example in GraphiQL
mutation ExportFileToJdoc {
  export_file_to_jdoc(
    file_sentera_id: "18qec2v_FI_cyscAcme_CV_deve_6e3c36d3f_220308_135409"
    export_type: PRESCRIPTION
    description: "FieldAgent Web Zone Rx"
  ) {
    success
    url
    error {
      code
      message
    }
  }
}

{
  "data": {
    "export_file_to_jdoc": {
      "success": false,
      "url": null,
      "error": {
        "code": "FILE_UPLOAD_NOT_ALLOWED",
        "message": "User does not have permission to upload files to this organization in Operations Center"
      }
    }
  }
}