- Walk list of lookup values with JScript
- Posted by Duffman on April 13th, 2007
Hi All,
New to the community. I have looked a bit in the threads and didn't get a
clear answer on this question, so I am posting. I desire to create a case
related to a contract and have the contractdetail lookup pre-populate with a
value if it exists for that contract. Each contract can have many
contractdetails, however we generally create a specific named contractdetail
for each of our contracts, the catch is the name is the same, good, the guid
is unique for each thus no hardcoding. Can anyone direct me on how to
essentially walk a list of possibilities, much like the options in a
picklist, to find the one I want for the guid value. A picklist I can do a
lookup and now I have a brain cramp, lol. Any other strategies on how to
accomplish this would also be greatly appreciated.
Regards,
Duffman
- Posted by Michael Höhne on April 13th, 2007
You will need client-side code calling the CRM web service to obtain the
Guid. Now that one sentence doesn't say too much on how to do it, but
here're some articles that may help you:
Finding data Part 6 - The FetchXML Wizard
http://www.stunnware.com/crm2/topic....d=FindingData6
Finding data Part 7 - Building query expressions with the FetchXML Wizard
http://www.stunnware.com/crm2/topic....d=FindingData7
Using CRM web services in client-side JavaScript
http://www.stunnware.com/crm2/topic....d=JSWebService
The final solution will not work in offline mode though.
--
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
----------------------------------------------------------
"Duffman" <Duffman@discussions.microsoft.com> schrieb im Newsbeitrag
news:3EC84593-5F92-4672-B4F2-77A2FB55DCF1@microsoft.com...
- Posted by Duffman on April 13th, 2007
Michael,
Thanks so much for the response. I had good luck today, lol, I found a
website www.stunnware.com, that gave a lot of great examples. When I recieved
your response it showed those links as visited, I knew I was on the right
track. Great web site by the way. Look forward to discussing more topics in
the future with yourself and the community.
Best Regards,
Duffman
"Michael Höhne" wrote:
- Clearing Lookup Values in the CRM Account Object (Windows CRM) by Geordie
- LookUp On Change Event Values LookupControlItem (Windows CRM) by Andre Grumbach
- Calling Lookup popup window and filter values based on parameters (Windows CRM) by Darshan
- OnSave function - Lookup values being truncated in Contacts (Windows CRM) by Matt
- MSCRM 3.0 update lookup values issue (Windows CRM) by Pedro Airo

