Specifying URL Attachments
Web Services also supports the exchange of URL attachments as well as file attachments.
The handling of URL attachments differs from file attachments in the following ways:
The FileNameOrURL field must specify the actual URL. The URL must begin with one of the following: HTTP, HTTPS, FTP or WWW (case-insensitive).
The FileNameOrURL and FileExtension fields form a user key for Attachment child objects, however, FileExtension is not a required field for URL attachments and is ignored.
The <Attachment> element is not required to have any content, and any content is ignored if provided.
The following example SOAP request shows a URL attachment.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/
2001/XMLSchema">
<soap:Body>
<AccountWS_AccountInsert_Input xmlns="urn:crmondemand/ws/account/10/2004">
<ListOfAccount>
<Account>
<Description>Account with URL attachment</Description>
<Location>Bangalore</Location>
<AccountName>Atach URL</AccountName>
<NumberEmployees>300</NumberEmployees>
<ListOfAttachment>
<Attachment>
<FileNameOrURL>www.pingpong.com</FileNameOrURL>
</Attachment>
</ListOfAttachment>
</Account>
</ListOfAccount>
</AccountWS_AccountInsert_Input>
</soap:Body>
</soap:Envelope>