Posts

Showing posts from May, 2023

A TRIP To LEH

Image
  VLOG

How to Call D365 Custom API from C#

Image
To call a Dynamics 365 (D365) custom API from C#, you can follow the steps outlined below: 1.Import the necessary namespaces: using System; using System.Net.Http; using System.Threading.Tasks; 2. Create an instance of the HttpClient class: HttpClient httpClient = new HttpClient(); 3. Set the base URL of your D365 environment and the API endpoint: string baseApiUrl = "https://your-d365-environment-url/api/data/v9.1"; string apiEndpoint = "/your-custom-api-endpoint"; 4. Set the request headers, including the authorization header if required: httpClient.DefaultRequestHeaders.Add("OData-MaxVersion", "4.0"); httpClient.DefaultRequestHeaders.Add("OData-Version", "4.0"); httpClient.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json")); // Add any other required headers, such as authorization 5. Make the HTTP request to the custom API endpoint: HttpResponseMessage r

Is Time Travel Possible ?

Image
The concept of a time machine has been a subject of fascination and speculation for centuries. The idea of traveling through time, exploring the past or future, has captured the imaginations of scientists, writers, and dreamers alike. While time travel remains purely speculative and theoretical, this essay will delve into the concept, theories, and implications surrounding the idea of a time machine.  I. The Concept of Time Travel: A. Definition and Possibilities: Time travel refers to the hypothetical ability to move backward or forward in time, experiencing events that have already happened or those yet to occur. It raises intriguing possibilities, such as revisiting historical periods, witnessing significant moments, or gaining insight into the future. Time travel is commonly explored in science fiction literature, movies, and popular culture. B. Theories and Paradoxes: Theoretical physics offers several frameworks and concepts that discuss the possibility of time travel. Einstein&#