Hi,
i have a codeunite i want when i run the codeunite the SoapUrl of my pages which i published as a web service show in a message;
my published objects Object id = 50000 and 50001 i just want to display SoapUrl in message.
below is the code i tried .
Var WebService : Record Tenant Web Service; Run() WebService.FindSet; IF WebService."Object ID" = 50000 THEN BEGIN MESSAGE('SoapUrl %1', WebService.SoapUrl"); END;
But this code not working for me
*This post is locked for comments
I feel thats not the right code actually, '
Always think from Performance and from Compilers perspective as well.
You giving SETFILTER why not SETRANGE??
Why SEYCURENTKEY?
Why NOT GET?
Here is the right solution finally i did it after a lot of tries.
WebService.SETCURRENTKEY("Object ID");
WebService.SETFILTER("Object ID" , '%1' , 1);
IF WebService.FINDFIRST THEN
MESSAGE('SoapUrl %1', WebService.GetSOAPUrl);
@Binesh Singh Rajput could you please show the soap url in message with example ?
Hello,
Check the function GetSOAPUrl from Table 9900 Web Service Aggregate, you will get idea.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156