simple way to send sms by tally

Discussion in 'Free Source Codes' started by kishan agrawal, Jan 11, 2015.

    
  1. mahgs

    mahgs Member


    Dear experts
    i cant send the message please help me for this issue

    [System: Formula]
    Billno : $$String:$Vouchernumber
    Mobileno :$$Number:mad:@GunaMobile
    GunaMobile: $Ledgermobile:Ledger:#EiConsignee
    Party : $$Stringwordex:$Partyledgername:" ":1
    Linemsg : "sms test"
    ;;"Dear%20Sir%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"has%20been%20generated.%20"

    [#Form: Sales Color]
    Add : Button : SENT MSG

    [Button: SENT MSG]
    Option : SalesSMSA : $VoucherTypeName="Sales"

    [!Button: SalesSMSA]
    Key : Alt + K
    Action :Call :TestFunction

    [Function:TestFunction]

    00 : WALK COLLECTION : Send SMS Coll
    10 : END WALK

    [Collection: Send SMS Coll]

    Remote URL:"http://www.sms.sparkalerts.in/api/sms_api.php?username=sekar&api_password=y4wm8svxwus&message="+@@Linemsg++"&destination="++@@Mobileno++"&type=2&sender=INSTNT"
    [#Form: Sales Color]
    On : Form Accept: @@IsSales : CALL : TestFunction


    ;;Eof
     


  2. kamal

    kamal Member


    Mr. Mahgs
    give your original API to configure
     




  3. mahgs

    mahgs Member


    Dear experts

    I had complete sms from tally,but i cant complete overdue outstanding sms .Please guide me

    [System: Formula]
    Billno : $$String:$Vouchernumber
    Mobileno :$$Number:mad:@GunaMobile
    GunaMobile: $Ledgermobile:Ledger:#EiConsignee
    Party : $$Stringwordex:$Partyledgername:" ":1
    Linemsg : "sms test"
    ;;"Dear%20Sir%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"has%20been%20generated.%20"

    [#Form: Sales Color]
    Add : Button : SENT MSG

    [Button: SENT MSG]
    Option : SalesSMSA : $VoucherTypeName="Sales"

    [!Button: SalesSMSA]
    Key : Alt + K
    Action :Call :TestFunction

    [Function:TestFunction]

    00 : WALK COLLECTION : Send SMS Coll
    10 : END WALK

    [Collection: Send SMS Coll]

    Remote URL:"http://www.sms.sparkalerts.in/api/sms_api.php?username=sekar&api_password=y4wm8svxwus&message="+@@Linemsg++"&destination="++@@Mobileno++"&type=2&sender=INSTNT"
    [#Form: Sales Color]
    On : Form Accept: @@IsSales : CALL : TestFunction


    ;;Eof
     


  4. kamal

    kamal Member


    [System: Formula]
    OutStandingMsgForSale : $$ToValue:$Date:$ClosingBalance:Ledger:$PartyLedgerName
    OutStandingMsgForReceipt : $$ToValue:$Date:$ClosingBalance:Ledger:#ACLSLed
     


  5. kamal

    kamal Member


    dear experts ,
    any knows sms provider supports XML API
     


  6. mahgs

    mahgs Member


    Dear experts:

    i will try general sms for multiple ledgers -select sundry debtors ledgers and type some text in Message field,In message field single word then message send successfully,but more then one word then sms not sent,how to solve this problem,Please help me.


    [Collection: Send SMS Coll]

    Remote URL:"http://www.sms.sparkalerts.in/api/sms_api.php?username=sekar&api_password=y4wm8svxwus&message="+@@Linemsg++"&destination="++@@Mobileno++"&type=2&sender=INSTNT"
     


  7. mahgs

    mahgs Member


    Dear Experts:

    How to delete the space between two words

    eg:(90000000, 56565656565)

    I want delete the Space after ,
     



  8. i not get u

    %20Amount%20

    % = its space
     


  9. Joharfchhil

    Joharfchhil Member


    How check the confirmation of Delivery Status of the Send SMS

    Thanks
     


  10. mahgs

    mahgs Member


    Dear Sir:
    i had use Fulllist Function
    $$FullList:Ledger:$LedgerMobile and i got the Result- 90000000, 56565656565
    Sms Not send to All Mobile Numbers,because space between , and second number

    How to remove the space

    Please Help me
     


  11. RIBU

    RIBU New Member


    You have to buy Transactional Type sms service.
     


  12. mahgs

    mahgs Member


    Dear Sir:

    Manuvaly i delete the space then message send successfully,i want only delete the space between two numbers already i purchase the Transactional and promotional sms
     


  13. kamal

    kamal Member


    Dear Mahgs,
    can you please share the code
     


  14. kamal

    kamal Member


    Dear Mahgs
    im also waiting the solutions can you please share the code
     


  15. mahgs

    mahgs Member


    Dear Kamal

    1020 : FOR TOKEN : TokenVar : ##Value : " "
    1030 : Set : ActValue : ##ActValue+##TokenVar
    1040 : END FOR

    U can use it inside the function and split words
     


  16. mahgs

    mahgs Member


    Dear Experts:

    How to send the SMS for today overdue receivable outstanding for Ledgers
     


  17. kamal

    kamal Member


    Dear Mahgs
    can you share the function code "for token" im unable to under stand
    Thanks in advance
     



  18. dear kishan sir, the code is work properly , how can we send ledger closing / outstanding balance from list of ledgers in group summery ledgerwise.

    in short i have to send sms to selected lines ledger names

    can you help me ?

    what is do- 1. one report added showing lines repeated over a debtors list with mob no and closing balance
    2- add sms button at form level
    is need of scope : selected or data source:string:selected ?
     


  19. Rahul Agarwal

    Rahul Agarwal New Member


    Dear Forum Members, Thank you very much for the code! I was successfully able to compile and implement the code for both sales & receipt vouchers.

    I'm facing following problems, could you please help me solve them?

    1. instead of starting the SMS with "Dear Sir", how do i enter the name if ledger? like if the Party's name is "ABC Pvt Ltd", then the SMS Should start as "Dear ABC Pvt Ltd"

    2. How to include closing balance of ledger in the SMS?

    3. in receipt voucher, how to differentiate between Cash & Bank voucher? like for Cash receipt I would like to print: Thank you for your Payment of Rs.XXX in Cash, however for Bank payments/cheque clearings I would like to print "Cheque of Rs.XXX presented to Bank. Kindly ensure clearing"

    Thanks in Advance! :)
     


  20. Jitendra Soni

    Jitendra Soni New Member




    "Dear%20"+$PartyLedgerName+"...."

    in this case party ledger name should be of single word or use $$StringWordEx:##LedgerName:" ":1
     


  21. Rahul Agarwal

    Rahul Agarwal New Member


    Thank you for your help sir. while using stringwordex, the value returned is only the first word before space, how do i get the whole name in the sms??

    or rather the logic is how do i convert the spaces in the field with text like %20??

    for example:

    $Partyledgername contains "Shree ABC Corporation Ltd",
    I'd want to store this value in a variable, lets say Party1, whose value should be "Shree%20ABC%20Corporation%20Ltd", all of the blank spaces are replaced with %20.
     


  22. Rahul Agarwal

    Rahul Agarwal New Member


    While using stringwordex, the value returned is only the first word before space, how do i get the whole name in the sms??

    or rather the logic is how do i convert the spaces in the field with text like %20??

    for example:

    $Partyledgername contains "Shree ABC Corporation Ltd",
    I'd want to store this value in a variable, lets say Party1, whose value should be "Shree%20ABC%20Corporation%20Ltd", all of the blank spaces are replaced with %20.
     


  23. scuba

    scuba Member


    i want to send sms in format like this but not through api i want details copied on clipboard on computer the deatils of sale invoice is :1. bill no. 2.bill date3. net maount 4. tax amount 5.total amount 6.total qnty 7.transport name8. g.r.no. 9 with my company name. tia . please send tdl to my email id :-scuba.ldh@gmail.com . 9317841602
     


  24. Hardik Nagar

    Hardik Nagar New Member


    sir I have done everything but mobile number as well as line message are not forwarded to my SMS API provider however, API getting trigger everytime. Please help sir, currently using Tally ERP 6.0.2

    Code:
    [System: Formula]
    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"
    
    [#Form: Sales Color]
    Add : Button : SENT MSG
    
    [Button: SENT MSG]
    Option : SalesSMSA : $VoucherTypeName="Sales"
    
    [!Button: SalesSMSA]
    Key : Alt + K
    Action :Call :TestFunction
    
    [Function:TestFunction]
    
    00 : WALK COLLECTION : Send SMS Coll
    10 : END WALK
    
    [Collection: Send SMS Coll]
    Remote URL :http://api.msg91.com/api/sendhttp.php?authkey=apikey1234567890&mobiles="+@@Mobileno"&message="+@@Linemsg"&sender=SHREEJE&route=4
    
    
    
    ;; DEM
    
    [#Form: Sales Color]
    
    
    On : Form Accept: @@IsSales : CALL : TestFunction
     
    Moresh Kashikar likes this.


Share This Page