whatspp api to send text and pdf

Discussion in 'Free Source Codes' started by ANURAG954245, Oct 8, 2021.

    
  1. ANURAG954245

    ANURAG954245 Member


    Dear experts help me to correct this code it is sending the details but not the pdf , instead of pdf i am getting the path of the pdf file

    as shown below
    upload_2021-10-8_20-47-37.png



    [#Form: Sales Color]
    Add : Button : InvPDF
    On : Form Accept : Yes : Call:SaveAsPDF




    [Button : InvPDF]
    Title : "Save As PDF"
    Key : Alt + F
    Action : call : SaveAsPDF

    [Function : SaveAsPDF]

    Variable : PrintFileName : String
    Variable: Exportedfilepath :String
    Local Formula:Wpinvoicenumber:$$StringFindAndReplace:$VoucherNumber:"/":"-"
    Local Formula:Wpinvoicetype:$$StringFindAndReplace:$VoucherTypeName:"\":"-"
    Local Formula:Wpinvoiceparty:$$StringFindAndReplace:$PartyLedgerName:"\":"-"
    Local Formula:Wpinvoicedate:$$String:$Date

    500 : SET : PrintFileName : "PDFs"+"\"+@Wpinvoicenumber+"_"+@Wpinvoiceparty+"_"+@Wpinvoicedate ;

    600 : SET : SVExportFormat : $$SysName:pDF
    800 : SET : VCHPrintJurisdiction : If $$IsEmpty:mad:@DSPJurisdictionValue Then ##SAJurisdiction Else @@DSPJurisdictionValue


    940 : SET : SVPrinterName : "Adobe PDF"
    941 : Set: SVBrowserWidth : 210
    942 : Set: SVBrowserHeight : 297


    1400 : SET : SVPrintFileName : $$MakeExportName:##PrintFileName:##SVExportFormat
    1500 : SET : SVOpenFileAfterExport : Yes
    1600 : SET :Exportedfilepath:$$GetFileFullPath:##SVPrintFileName ;;Exported file path
    1700 : EXPORT REPORT :.: TRUE
    1800 : Action :Call :TestFunction





    [Function:TestFunction]

    1800 : WALK COLLECTION : Send SMS Coll
    1900 : END WALK

    [Collection: Send SMS Coll]
    Remote URL:"https://panel.rapiwha.com/send_message.php?apikey=AE33ERZE0H1QYO9WIYFO&number=91"+@@mobileno+ +"&text=" + @@Linemsg +##Exportedfilepath







    [System:Formulae]
    Msgtitle:"Default Title"
    GetContacts :($LedgerMobile:Ledger:$PartyLedgerName)+","
    Billno : $$String:$Vouchernumber
    Mobileno : $Ledgermobile:Ledger:$Partyledgername
    Party : $$Stringwordex:$Partyledgername:" ":1
    Linemsg : "Dear%20Sir%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"has%20been%20generated.%20"
     


  2. ANURAG954245

    ANURAG954245 Member



  3. Himanshu-2002

    Himanshu-2002 Active Member


    Sir Just ask the API Provider about this, He'll guide you... Or ask him for documentation
     


  4. Neeru

    Neeru Active Member


    use public cloud for file send or you can use FTP Server for sending pdf files using API
     


Share This Page