Tech Support > Microsoft Windows > Windows CRM > opportunity form, accounts/contacts javascript
opportunity form, accounts/contacts javascript
Posted by @VGroupby1 on January 30th, 2007


does anybody know of any way to grab the parent account guid/name if i were
to place the contact down on the opportunity form? i would prefer javascript
since i hate doing callouts.

Posted by Darren Liu on January 30th, 2007


If you don't use callout, there's another way you can do it but you
still have to write code for it. Create a custom aspx page, and for
the on change event on the field/button, pass in the opportunity guid,
then you can use that opportunity to lookup the contact information,
from the contact information, you can grab the guid to look up the
account this contact related to. The end result of the aspx page is
return the name of the account. Then you can use JavaScipt XMLHTTP to
execute the aspx page to get the values that you want to return. You
can write a web service if you don't want to write a .net page.

Hope this helps.

Darren Liu
Crowe Chizek and Company
http://www.crowecrm.com

On Jan 30, 1:11 pm, @VGroupby1 <VGroup...@discussions.microsoft.com>
wrote:


Posted by Michael Höhne on January 30th, 2007


If you can write the code in .NET (C#), the tool at
http://www.stunnware.com/crm2/topic....d=JSWebService does convert it to
the appropriate web service call in JavaScript code.

--
Michael Höhne, Microsoft Dynamics CRM MVP

Web: http://www.stunnware.com/crm2
Feed: http://www.stunnware.com/crm2/atom.aspx
Custom Lookup Dialog: http://www.stunnware.com/crm2/?area=customLookup

----------------------------------------------------------

"@VGroupby1" <VGroupby1@discussions.microsoft.com> schrieb im Newsbeitrag
news:2FD41D8C-F9DF-4F79-9796-C2F0E5AD7548@microsoft.com...



Similar Posts