hello i am a newbe to espo i try to save a project started by an other dev ...
i need to understand this code that create and integrate pdf in a field
after generation process i didn't find pdf in related field
workflow is ok
if i undesrtand to create a pdf with name and add pdf in field ... but how i can found field id to check if all is good ?
thank for explain
i need to understand this code that create and integrate pdf in a field
Code:
// pdfPieceId = ext\pdf\generate('Invoice', entity\attribute('id'), '61ba033fb7e940eab', 'FactureConvention.pdf'); $nomPdf = string\concatenate(number, "-Convention_Journees_",participant.name,".pdf"); pdfPieceId = ext\pdf\generate('Invoice', entity\attribute('id'), '61ba033fb7e940eab', $nomPdf); name = string\concatenate(number, "- Facture Convention : ",participant.name);
workflow is ok
if i undesrtand to create a pdf with name and add pdf in field ... but how i can found field id to check if all is good ?
Code:
pdfPieceId = ext\pdf\generate('Invoice', entity\attribute('id'), '61ba033fb7e940eab', $nomPdf);
Comment