Hi all,
I am having a strange issue with Business Central API. below is the case.
I have developed a codeunit in business central on-cloud with multiple functions and published as Web Service. Most functions receives parameter and return the values accordingly. However, i am having issue with one of the functions. It receive the parameters and process the values accordingly within Business Central.
While making the API call to this function, it says "Bad Request". below is the function and parameter. i am using OData API url to call these methods.
Yes, Good to know that it has been resolved,
Now you can please close this thread.
Hi Nitin,
I got the issue and resolved it.
Basically, first latter of parameter names should starts with small letter as below. earlier it was starting with Capital letter.
procedure UpdateEventsAfterIntegration(entry_No: Text[50]; status: Text[50]; txtMessage: Text[250])
begin
Message(entry_No + txtMessage);
end;
Please share your code here.
Hi Nitin,
Thanks for your input. however, i tried as you suggested and still having the same error.
Hi Sunil Kumar ,
Can you please change your 3rd parameter name to something else? Because you are now using standard keyword name "Message" please replace it with like MsgStr: Text[250]
and used the same parameter like below.
Message(Entry_No + MsgStr);
And then please try again.
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156