Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Subgrid data loads only after refresh - Data is loaded using custom activity workflow

$
0
0

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();
}



Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>