Versions Compared

Key

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

Description

This method is used to generate a PDF document with the given information and associate it to the specified plant.

...

You can either use the default file name “Melding om utført arbeid” or set a preferred file name in your application.  

Request - input sample

...

<SendNoteToPlant>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <plantId>6820</plantId>
    <jobDescription>Send note</jobDescription>
    <jobStartDate>11/16/2017 11:30:28 AM</jobStartDate>
    <jobEndDate>11/16/2017 11:30:28 AM</jobEndDate>
    <fileName isNull="false" />
    <orderNumber isNull="false" />
    <showInBoligmappa>True</showInBoligmappa>
    <propertyOwnerEmail isNull="false" />
    <applicationName>test</applicationName>
  </MethodParameters>
</SendNoteToPlant>

Response

TypeDescription
NoteNote created


Response - output sample

  Image Removed <SendNoteToPlant>
  <MethodParameters>
    <Note>
      <BoligmappaDocId>57487</BoligmappaDocId>
      <Url>http://172.20.1.183:8080/Document/DownloadDocumentWebService/DownloadDocWithSessionKey?sessionKey=rl%2fL3WDK6Fs%2bCIaABAaVXwm6knB2nVySYMOnChm4HzP2lcmkQA%2bPM6nCXiQKa9ZS</Url>
      <FileName>Melding om utført arbeid</FileName>
    </Note>
  </MethodParameters>
</SendNoteToPlant>

Exceptions

Error CodeDescription
111plantId does not exist for your company
113One or more mandatory fields have not been provided 
123An exception occurred while processing your request
138applicationName length has exceeded the maximum character limit allowed (10)
146The applicationName is not set
161Job description length has exceeded the maximum character limit allowed (500)
167You are not authorized to use this web method
175The jobEndDate needs to be later than the jobStartDate
217An error occurred while sending the notification mail to the user
218The propertyOwnerEmail provided is invalid 

...