![]() Now, let's move on to understanding how we can consume this API in Excel and a JS application. This completes verifying the working of all Web API methods through browser. The screenshot below depicts a successfully executed DELETE request: This URI is basically referring to the one generated when executing your WebAPI project from Visual Studio. where id is the value of the record's id column which you want to delete. Test DELETE method for Salesforce Web API ![]() The next screenshot displays the successfully executed PUT command, which returns no response text:Īnd finally we again invoke the GET(ID) method to verify the updated record as depicted below: In the following screenshot, you can observe that a particular record has been fetched using GET(ID) method and has value " Maria Andrews" for contactNameC field. In the request body, enter JSON for a customer item:.Set the type to JSON (application/json).Click Send and observe the response containing only one requested record: Next, set the request URI to where id is the value of the record's id column which you want to fetch. In the screenshot below, you can observe how the request has been defined, sent by clicking the Send button and returned response displayed in the bottom tab: ![]() For example, This URI is basically referring to the one generated when executing your WebAPI project from Visual Studio. Lets learn to invoke each one of these and also observe the output in the sections that follow. ![]() The following two GET endpoints have been implemented in the WebAPI created above. This is how the newly created request looks like:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |