none
Verbindung zwischen ein C# ConsoleApplication und CRM durch Events RRS feed

  • Frage

  • Hi, ich habe ein ConsoleApplication geschrieben die ändert einen Attribute von einem Lead. Ich möchte diese Application durch ein OnLoad Event rufen, aber die Application ist in C# und der OnLoad Event arbeitet nur mit JavaScript. Kann jemand mir helfen? Vielen Dank im Voraus
    RST
    • Verschoben DavidBerryMVP Dienstag, 5. Juli 2011 22:33 Moved to German forums from English forums. (aus:CRM Development)
    Dienstag, 5. Juli 2011 14:10

Alle Antworten

  • I read your question by Google Translate, hopefully it has done a right job. ;-)

    You cannot really call a console application from JavaScript. But it should not be too hard to implement similar requirement using JavaScript. If you want some help converting C# to JavaScript, you should post your C# code. One of our folks might be able to help you. 

    Cheers,


    Daniel Cai | http://danielcai.blogspot.com
    Dienstag, 5. Juli 2011 22:26
  • Hallo,

    Deine Anforderung macht hinsichtlich des technischen Aufbau von CRM eigentlich keinen Sinn. Das OnLoad-Event einer CRM-Form läuft am Client ab - ich vermute aber, dass du die Console-Application nicht auf alle Clients ausrollen willst/wirst...!

    Für deine Anforderung gibt es zwei Lösungsansätze:

    1. Du machst aus deiner Console Application ein Webservice am CRM-Server, dass du per Javascript vom Client aus am Server aufrufst
    2. Du änderst das angesprochene Attribtut auf der CRM-Form mittels Javascript - das geänderte Attribut wird dann beim Speichervorgang des Formulars an den Server gesendet.

    Ich würde dir zu Variante 2 raten - gibt es Gründe es nicht so zu machen?!

    Liebe Grüße,

    Andreas


    Andreas Buchinger
    Microsoft Dynamics Certified Technology Specialist
    MCPD: SharePoint Developer 2010
    Mittwoch, 6. Juli 2011 06:56