Supernova
Supernova

Reputation: 88

How to programmatically refresh user defined form fields in Outlook mail

I am capturing data from Outlook mail with user defined form fields.

However certain form fields especially with validation is not showing correct values

e.g. timeline field has validation as Receivedtime + estimate though mostly it shows correct value sometimes timeline field does not show any values even if receivedtime field and estimate field has value in it.

If I open and close the mail manually the field refreshes and shows correct data. This makes me feel the fields are not updated automatically.

Is there any way to refresh the form field so that it can show updated data?

Upvotes: 0

Views: 250

Answers (2)

Rock
Rock

Reputation: 26

You can also try

mailobject.userproperties.find("formfieldname").repaint

The repaint method will update the screen similar to refresh method. That should work for you.

Upvotes: 1

Supernova
Supernova

Reputation: 88

I have found a solution for this question in another forum: Link to the answer: answer

i.e

SendKeys "{F5}", True

This works for me

Upvotes: 0

Related Questions