Auto SMS - Nav 2016

omyvadiya
Member Posts: 124
Hi All,
I am using an Automation variable and sending a sms through 3rd party to all the customers while posting of an invoice, that is working great.
But when i try to call the same automation while using job queue,i.e; when i am trying to call the sms function through job queue to send a sms, it is throwing a error:
“Microsoft Dynamics NAV Server attempted to issue a client callback to create an Automation object:
2087c2f4-2cef-4953-a8ab-66779b670495. Client callbacks are not supported on Microsoft Dynamics NAV Server.”
The SMS function is as follows:
JsonString1 := 'https://servicemanager.openmarket.com/service/v1/invokeService/EB888AB3***35540';
IF ISCLEAR(WinHttpService) THEN
CREATE(WinHttpService,FALSE,TRUE);
WinHttpService.Open('POST','https://servicemanager.o*****t.com/service/v1/invokeService/************');
WinHttpService.SetRequestHeader('Authorization','Basic YWJoaW5hdi5zQG15aW1hZ2lu*****ZXN0b3JlLmNvbTppbWFnaW5lQDEyMw==');
WinHttpService.SetRequestHeader('Content-Type','application/json');
RequestBody := '{"endUser": {"phoneNumber": "'+ txtMobileNo + '"} ,"variables": {"user":{"name": "'+ txtCustName + '","StoreID": "'+ txtStoreID +'"}}}';
WinHttpService.Send(RequestBody);
IF WinHttpService.Status = 202 THEN BEGIN
END ELSE BEGIN
MESSAGE('Else... %1',WinHttpService.ResponseText);
END;
As per my analysis on Mibuso, many people have faced this error, but no specific solution is there, so which DotNet Function must be used to resolve this error.
Thanks in Advance
I am using an Automation variable and sending a sms through 3rd party to all the customers while posting of an invoice, that is working great.
But when i try to call the same automation while using job queue,i.e; when i am trying to call the sms function through job queue to send a sms, it is throwing a error:
“Microsoft Dynamics NAV Server attempted to issue a client callback to create an Automation object:
2087c2f4-2cef-4953-a8ab-66779b670495. Client callbacks are not supported on Microsoft Dynamics NAV Server.”
The SMS function is as follows:
JsonString1 := 'https://servicemanager.openmarket.com/service/v1/invokeService/EB888AB3***35540';
IF ISCLEAR(WinHttpService) THEN
CREATE(WinHttpService,FALSE,TRUE);
WinHttpService.Open('POST','https://servicemanager.o*****t.com/service/v1/invokeService/************');
WinHttpService.SetRequestHeader('Authorization','Basic YWJoaW5hdi5zQG15aW1hZ2lu*****ZXN0b3JlLmNvbTppbWFnaW5lQDEyMw==');
WinHttpService.SetRequestHeader('Content-Type','application/json');
RequestBody := '{"endUser": {"phoneNumber": "'+ txtMobileNo + '"} ,"variables": {"user":{"name": "'+ txtCustName + '","StoreID": "'+ txtStoreID +'"}}}';
WinHttpService.Send(RequestBody);
IF WinHttpService.Status = 202 THEN BEGIN
END ELSE BEGIN
MESSAGE('Else... %1',WinHttpService.ResponseText);
END;
As per my analysis on Mibuso, many people have faced this error, but no specific solution is there, so which DotNet Function must be used to resolve this error.
Thanks in Advance
0
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