Nav 2009 Sp1 - Send SMS Issue

omyvadiya
Member Posts: 124
Hi,
I am Using Nav 2009 Sp1 & and SMS vendor.
The message is going fine when i am hardcoding the Phone No. in the Hyperlink
I am using the following code:
// Hyperlink Code Start ->
CREATE(mxh);
mxh.open('GET',
'http://api.unicel.in/SendSMS/sendmsg.php?uname=UserName&pass=Password&send=NAPLTO&dest=9999999999&msg='
+M1+M2+M3+M4,FALSE);
mxh.send("var");
"var" := mxh.responseStream;
CLEAR(mxh);
is := "var";
mbt.READ(is);
ci.Picture.CREATEOUTSTREAM(os);
mbt.WRITE(os);
ci.Picture.EXPORT('c:\result.txt',FALSE);
// Hyperlink Code Stop <-
The issue is:
1. On Hardcoding the Phone No., the Message is going fine, but the requirement is dynamic, i need to get the Phone No. from Employee Card, as per his/her Birthday, and it must send a Birthday Wishes Message.
2. On Compiling It shows a Warning "Function 'EXPORT' is obsolete for Microsoft Dynamics NAV Server."
I tried taking the Phone No. of the Employee in a variable and passing it to the Link, but it didn't, it shows the error in error file as Invalid Destination Number.
I am Using Nav 2009 Sp1 & and SMS vendor.
The message is going fine when i am hardcoding the Phone No. in the Hyperlink
I am using the following code:
// Hyperlink Code Start ->
CREATE(mxh);
mxh.open('GET',
'http://api.unicel.in/SendSMS/sendmsg.php?uname=UserName&pass=Password&send=NAPLTO&dest=9999999999&msg='
+M1+M2+M3+M4,FALSE);
mxh.send("var");
"var" := mxh.responseStream;
CLEAR(mxh);
is := "var";
mbt.READ(is);
ci.Picture.CREATEOUTSTREAM(os);
mbt.WRITE(os);
ci.Picture.EXPORT('c:\result.txt',FALSE);
// Hyperlink Code Stop <-
The issue is:
1. On Hardcoding the Phone No., the Message is going fine, but the requirement is dynamic, i need to get the Phone No. from Employee Card, as per his/her Birthday, and it must send a Birthday Wishes Message.
2. On Compiling It shows a Warning "Function 'EXPORT' is obsolete for Microsoft Dynamics NAV Server."
I tried taking the Phone No. of the Employee in a variable and passing it to the Link, but it didn't, it shows the error in error file as Invalid Destination Number.
0
Answers
-
Hey,
I used:
'http://api.unicel.in/SendSMS/sendmsg.php?uname=Username&pass=Pwd&send=NAPLoTD'+'&dest='+ PhoneNo +'&msg='
+M1+M2+M3+M4,FALSE);
and it worked0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions