Hello all,
I have custom activity workflow which will copy the data from one entity(address) to another (legacy address)entity on sign(Option field :Yes/No) of Agreement (Parent entity).
The Parent entity Agreement has subgrid of address entity and on signed the legacy address subgrid should be displayed and address should be hidden.
I have written all code which will hide and display the legacy address. It does display legacy address subgrid on sign as empty.
but when i refresh the Agreement or go to main contact and open agreement and come back then it displays all legacy data properly.
Custom workflow runs on sign - field change
function assignvalue() { Xrm.Page.getAttribute('xyzfield').setValue('Yes'); Xrm.Page.getAttribute('xyzfield').setSubmitMode('always'); Xrm.Page.data.entity.save(); }