Inserting 'Delay' activity duration from Config file?

Hi there,

As the title explains, I want to insert a hard coded delay time into the delay activity, but it doesn’t seem to work.

I have the config file set to have ‘delayShort’ with the value of ‘2000’ - milliseconds as that is what UiPath knowns.

I then write what I thought I needed to:
TimeSpan.FromMilliseconds(Config(“delayShort”).ToString.

This doesn’t work… What am I missing here?

Thanks!

Hi @dr1992

Please try this,

TimeSpan.FromMilliseconds(cdbl(Config(“delayShort”)))

Thanks

Thank you very much, that did it!

1 Like

@dr1992 glad your issue is resolved.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.