none
Calling Custom Workflow in Clientside code issue RRS feed

  • Frage

  • Dear all,

       i am working custom workflow in ms crm 4.0. I can able to call the CRM workflow(ie. path: C:\programfiles\MS Dynamics CRM\CRMWeb\AppWebServices\)
    through "Remotecommand" as mentioned below..i have created  my own webservice and saved it in the \mscrmservices\2007\mywebservices.But when i am trying to call my webservices using the following code, its showing an error.

                var command = new RemoteCommand("MyClass", "sample");
                command.SetParameter("a", name);
                var oResult = command.Execute();
                if (oResult.Success)
                {
                     alert(oResult.ReturnValue);
                      return oResult.ReturnValue;
                }


    Error:

     An error has occured

    Try this action. If problem continues, check the Microsoft Dynamics CRM community.

    can anyone please give me a suggestion for the same as mentioned above


    Regards

    Arun

    Freitag, 20. November 2009 04:56

Antworten

Alle Antworten

  • Hi Arun

    did you get an entry in SystemJobs when you try to start this WF?
    If yes, use Advanced Find on SystemJobs, Edit Colums, add field "Message" to the listview. It contains the detailled error.
    If no, just debug your code.

    Regards
    Peter
    Freitag, 20. November 2009 22:21
  • Hi peter,

       Sorry , i have mentioned as custom workflow, but that is not workflow its webservices..i wrongly mentioned above..From the above code, we can call the CRM webservices..But my question is, is it possible to call our own webservices through above Remotecommand?..


    Regards

    Arun

    Montag, 30. November 2009 09:36
  • Hi,

    you can post your english crm questions here: http://social.msdn.microsoft.com/Forums/en-US/crm/threads

    Best regards,
    Jürgen

    Jürgen Beck

    Dipl. Kfm./Wirtschaftsinformatik
    MVP, MCSD.NET, MCITP DBA, MCDBA, MCSE
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified CRM Developer
    Microsoft Certified Trainer

    ComBeck IT Services & Business Solutions
    Microsoft Gold Certified Partner
    Microsoft Small Business Specialist

    Developing & Supporting Business Applications from small business to big enterprises covering scores of sectors

    http://www.combeck.de
    Donnerstag, 7. Januar 2010 00:06
    Moderator