on 06-18-2018 3:31 PM
Hi Experts,
I want to add delay/wait in my Custom BO events. Can you please tell me how can we achieve it ?
I am trying this by taking the current time of the system and adding 10 seconds and comparing it again. Somehow i am not able to add 10 secs. Is there any way we can achieve it.
Regards,
Srikanth Rathod
Hi,
I have found the solution. Sorry for the late post
Code snippet below
var set_end = Context.GetCurrentGlobalDateTime();
var duration = ABSL: Duration.ParseFromString("PT5S");
var check_now = set_end.AddDuration(duration);
while (set_end < check_now)
{
set_end = Context.GetCurrentGlobalDateTime();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.