Options

Auto SMS - Nav 2016

omyvadiyaomyvadiya 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

Sign In or Register to comment.