web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to authenticate ProcessControl.asmx

(0) ShareShare
ReportReport
Posted on by 660

I am trying to consume the ProcessControl.asmx but I am not sure how to do the authentication on ASP.net or JQuery.   Anybody has done this? 

http:////AppWebServices/ProcessControl.asmx

When I generated the WSDL it created the items on the config.  Anyone knows what security to fill-in?  
 <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="ProcessControlSoap">
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://192.168.1.126/reQuireCRM/AppWebServices/ProcessControl.asmx"
        binding="basicHttpBinding" bindingConfiguration="ProcessControlSoap"
        contract="processStage.ProcessControlSoap" name="ProcessControlSoap" />
    </client>
  </system.serviceModel>

*This post is locked for comments

I have the same question (0)
  • jlattimer Profile Picture
    24,562 on at

    What are you hoping to accomplish by doing this? Using this service is not something that is documented or supported.

  • aesplana Profile Picture
    660 on at

    After the "Validate Stage" , I would like to move the process automatically to the next stage without selecting the Next Stage and the next Entity

    I would like the Moving to the Next Stage accomplished by the the Custom Activity Workflow.   Is it possible?  What is the supported way to do this? 

    Thanks,

    Mar 

  • aesplana Profile Picture
    660 on at

    When I profiled the client activity, I noticed that this service call

    ("http://192.168.1.126/reQuireCRM/AppWebServices/ProcessControl.asmx/GetForwardNavigationEntities")

    is executed when I click the next stage.  I noticed that Process Control service has additional methods such as "Change Process And Stage" and "Update Process",  I am not really sure if the service actually could do the job of moving to the next stage problematically.   I am hoping to test the service If It will actually do the job.  But the issue is just to prove it is to pass the security.   

  • aesplana Profile Picture
    660 on at

    Another option that I am thinking is to update the table  "BusinessProcessFlowInstanceBase" but It wouldn't work either since the table is not part of the Service Context.

    I hope you can help me uncover this problem.

    Thanks,

    Mar

  • Suggested answer
    jlattimer Profile Picture
    24,562 on at

    I'd suggest implementing the code here as a custom workflow activity. You can specify the stage and then trigger it with a real-time workflow.

    code.msdn.microsoft.com/Change-Dynamics-CRM-2013-a6beb85e

    This only gets you part of the way there, the stage changes in the background but the UI doesn't refresh. To overcome that, add an arbitrary field to the form and change the value in the same workflow. Attach this (unsupported sorry) JavaScript to the OnChange event to refresh the screen.

    function ReLoadForm()
    { 
         Mscrm.ReadFormUtilities.openInSameFrame(window._etc, Xrm.Page.data.entity.getId());
    }
    
  • aesplana Profile Picture
    660 on at

    Will it work with Business Process Flow with multiple entities?  

    What the workflow is really doing is updating the stage and processid which is already been set since each Stage is attached to a separate entity.

    Entity updatedStage = new Entity(context.PrimaryEntityName);

                       updatedStage.Id = context.PrimaryEntityId;

                       updatedStage["stageid"] = stage.ProcessStageId;

                       updatedStage["processid"] = process.WorkflowId;

                       service.Update(updatedStage);

    When I profiled the db transaction, it is updating this table to move to the next stage.  Ofcourse fields are depending on the stage selected.   I am not sure how that solution would move to the next stage.  

    update dbo . BusinessProcessFlowInstanceBase

    set Entity2Id = '256C8513-8266-E311-93ED-00155D010600',

    Entity2ObjectTypeCode = '10016'

    where Entity1Id = 'CDF6BED6-8166-E311-93ED-00155D010600'

    Thanks,

    Mar

  • Verified answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    As Jason says, the BPF is limited in it's extensibility at this stage, and other than changing the processid and stage, you can't interact with it. Using the ProcessControl.asmx service or any other part of the client object model that isn't documented in the SDK might work now, but is subject to change in the future and won't be supported by Microsoft. It might be worth thinking about achieving your requirements in a different way before going down this unsupported approach.

  • Verified answer
    aesplana Profile Picture
    660 on at

    Thanks Scott,

    If I converted the BPF to use single entity the solution will work.   Thanks for the help.

    There is really no supported way to move to the next Stage programatically  on BPF with multiple enties.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans