Difference between Web API and Xml HttpRequest in JavaScript?

 Difference between Web API and Xml HttpRequest? 

WebAPI 

XmlhttpRequest 

It works in Asynchronous Process 

It works in Asynchronous and Synchronous Process 

Web API is low code   

XmlhttpRequest has more code.   

To view the received and sent data the page should be refresh  

To view the received and sent data the page refresh is not required 

 

Comments

Popular posts from this blog

If any case created, then check for the same user how many cases are created with in 30 days, if more than 2 and less than 5 send a mail to team lead, if more than 5 and less than 9 then send a mail to manager using power automate.

Create approve & reject ribbon buttons, once click on approve it should change the status field to approve.If clicked on reject it should change to Reject. Based on status field change trigger work flow to send a email to stating request is approved/Rejected.

How to get and set values in plugins?