Articles

Affichage des articles du décembre, 2019

check if a service is running and if yes then run batch code

SC queryex easy | FIND "STATE" | FIND /v "RUNNING" > NUL && ( ECHO easy is NOT running ) || ( ECHO easy is running dos code here )

CRM 2016: Selected stage and highlighted stage is not same when stageid is set via plugin

this is just a copy past of the website https://meghshyam.wordpress.com/2017/09/27/crm-2016-selected-stage-and-highlighted-stage-is-not-same-when-stageid-is-set-via-plugin/ Faced the weird error in Business process flow in CRM 2016 version. Scenario is when we move the business process stage programmatically via plugin by setting thestageid field, you will find a weird behaviour where BPF is still showing the existing stage as highlighted however the active stage is set to correct stage i.e. next stage. After googling some blogs (link)proposed some javascript methods like Xrm.Page.data.process.addOnStageSelected(stageSelected) but that don’t really help as this is specific to client side scripting. Then the next hope was to dig into the entity fields and find out if there is any hidden field which is storing the selected stage value for that respective record and here I got the reference. In CRM 2016 (not sure about CRM 2015), there is field called “TraversedPath” which store