Back end document does not contain the lasted value set by @setdocfield

Hi ,I am using using formula to update a back end leave document for a employee.

here is the formula to set the leave field.

@SetDocField(Docidlkp;“VacNumavailed” ;AvailedEmpupdated).

The VacNumavailed field get updated as expected. There is anothar field on the leave details form. The value of which is based on this field.

LeaveBal ( computed field).

@Sum(VacNumCarryOver : VacNumCurrent) - (VacNumavailed).

The goal is to refresh this computed field . So i have create a agent and use computedwithform method to refresh the field.

But in debug mode i see that the back end document does not display the lasted value set by @setdocfield.

There fore the agent which run computewithform field is not able to refresh the computed field on the form.

Any help will be greatly appreiciated.

Thanks

Sushant

Subject: Back end document does not contain the lasted value set by @setdocfield

How are you getting the handle of the document ? using GetDocumentByKey method…then try using GetDocumentbyUNID method…