Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Add wait in Dynamics 365 Portals using Liquid

Posted on by 480

Hi There,

I have a code snippet where I have some fetchxml retrieving a value from CRM and populating/adding a hidden field to the page.

The snippet is inserted into a page which users come being redirected from another page. I want to add few seconds wait my fetchxml tries to retrieve the record as in first go record is still in creation and I get 0 record on the page where snippet is placed.

Process:-

1. Complete last step of web form by clickng on a workflow button (which executes a real time workflow creating records)

2. I have configured it to redirect to my page where I have placed the snippet having fetch query but in first attempt I don't get the record and users see an incorrect message (As I have configured).

Can someone help add some wait into liquid?

(I tried adding Js window.setTimeout() but it executes later, liquid gets executed first. I  want the fetch to be executed 3-4 seconds delayed)

Thanks in Advance.

*This post is locked for comments

  • Tino Rabe Profile Picture
    Tino Rabe 650 on at
    RE: Add wait in Dynamics 365 Portals using Liquid

    Hi,

    as far as my understanding goes, Liquid is executed on server side, i.e. before the the server sends content to the client.

    JavaScript is executed client side, i.e. after the content is received from the server.

    But I might be wrong here.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans