Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Efficient way to retrieve data using javascript odata/Webapi

(0) ShareShare
ReportReport
Posted on by 1,680

Hi There,

I have certain complex queries to do validation on the combination of values in different multi select attributes. I will have to do those validations in the UI scripts. Wondering which will be more performance beneficial to do. Do you recommend oData/WebAPI to use with javascript? 

  • Suggested answer
    ajyendra Profile Picture
    ajyendra 1,730 on at
    RE: Efficient way to retrieve data using javascript odata/Webapi

    Depend on that query complexity. but you recommend you to use WebAPI to use with javascript . It provide you more easy to consume service from JavaScript. Also for validation prospective as it is client side you can validate on event fired whenever your javascript  run. For Performance Use only get those column from API which you need rather than all column that does make impact performance if you retrieve all column.

    Best of Luck

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Efficient way to retrieve data using javascript odata/Webapi

    Hi,

    You  can proceed with web API call if you think that the validation requirement is client side (preferred on change , onload ).We all generally do in Dynamics 365.and its supported. Try to retrieve minimum column and data so that it wound not effect performance.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Efficient way to retrieve data using javascript odata/Webapi

    Hello,

    Everything depends on complexity of your checks but generally speaking you can do validations on the client side.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans