On studying APIs of WhatApp, I found a correction to the code above Code: 00 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg2 + "&source="+##SVPrintFileName May be this should work or Code: 00 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg2 +"&data="+##SVPrintFileName this could work...
whats-app doesn't allow to send attachments via URL. you must have an API to send attachments by uploading to a server and then to whats-app.
with TDL alone you cannot achieve this. in TDL we just need to export/upload the voucher/report to the server. its already there in forum you can search for it. but main aspect to send that invoice to the receiver whats-app for that you need to call the API by mentioning receiver's mobile number and title/message , link to the uploaded invoice. this should be done at your server side (for this you need an API from whats-app)
can we send whatsapp to a selected ledger in a report i tried but mobile no. is not reading [Button : luvbotton1] Title : "whatsapp" Key : Alt + W Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ + "&text=" + @@lovemsg4 Scope : Selected Line Type: ledger
what is the formula defined for @@mobileno and from which screen you are using that button post the full code for analysis
i have used the same code of @Jay sir and extended /used it in trial balance and also in a outstanding report created by me and used select to focus on single selected ledger
the method will be different in different reports so identify the method name of ledger name in ledger report and get contact number
like SMS it doesn't work for sending multiple contacts if you want to send two numbers you have to send request two times
Below code should i write two times ? Browse Url : "https://web.whatsapp.com/send?Phone="+ ##AA_Whatapp_Contact + "&text="+##AA_Whatsapp_Msg
you have to call Browse Url two times,not writing it two times create a function , loop through the contacts and call Browse Url for each contact but it will open different browser window for each contact number
Can someone help out I am trying to attach a pdf file on whatsapp by using the tdl as showm in the form but getting this message while creating the pdf file further it would get attached on whatsapp dont know
Thanks a lot for sharing this wonderful code, Keep Posting, Could you please send Attachments pdf , jpg, also than will be great and also No manual need of pressing enter key