[Vtigercrm-developers] Create document from a local file and relate it to a quote

Sukhdev Mohan s.mohan at myti.it
Thu Jan 2 08:21:28 GMT 2020


Hi All,
First of all Happy new year.

I'm trying to create a document from a pdf uploaded to a local dir on the
server and then relate it to a quote.

To create the document I'm using the CRMEntity::getInstance('Documents')
and then fill the field columns. It creates the Document entity but the pdf
is not there. The path I'm specifying is the local path where the PDF is
uploaded to.

How can I accomplish this? How do I relate it to a quote?

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200102/baf0d1a8/attachment.html>


More information about the vtigercrm-developers mailing list