locked
Retrieve fields in a process stage RRS feed

  • Question

  • Hi

    I was wondering if it is possible to retrieve fields which are member of a given stage ?

    Thanks

    Thursday, May 19, 2016 5:57 AM

Answers

  • A Business Process Flow is a type of workflow, and the fields in each stage are defined in the Xaml attribute of the workflow entity. You can get the Xaml either via SQL, or a Retrieve via the API.

    The Xaml is a Xml document, which then needs parsing. The fields are referenced as a mcwb:Control element, with a DataFieldName attribute. The stages are a mxswa:ActivityReference element, and you can identify them via the DisplayName attribute, though this has two parts - e.g. you might see the following for a stage called 'Verify Contact'

    DisplayName="StageStep2: Verify Contact"


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    • Marked as answer by CRMDevlpr Wednesday, May 25, 2016 11:12 AM
    Thursday, May 19, 2016 3:57 PM
    Moderator

All replies

  • A Business Process Flow is a type of workflow, and the fields in each stage are defined in the Xaml attribute of the workflow entity. You can get the Xaml either via SQL, or a Retrieve via the API.

    The Xaml is a Xml document, which then needs parsing. The fields are referenced as a mcwb:Control element, with a DataFieldName attribute. The stages are a mxswa:ActivityReference element, and you can identify them via the DisplayName attribute, though this has two parts - e.g. you might see the following for a stage called 'Verify Contact'

    DisplayName="StageStep2: Verify Contact"


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    • Marked as answer by CRMDevlpr Wednesday, May 25, 2016 11:12 AM
    Thursday, May 19, 2016 3:57 PM
    Moderator
  • Hello,

    Which CRM are you using?
    You want to retrieve from client side or server side?
    If for client side you can use the below code, but it is available on CRM 2015.
    var value=Xrm.Page.getControl("header_process_AttributeName").getAttribute().getValue();

    Thanks,

    Sam


    Inogic | Blog | news@inogic.com

    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Wednesday, May 25, 2016 12:28 PM