Answered by:
prepopulate phone call activity form in CRM 2013

Question
-
Hi,
I need to open a new phone call activity form with few details pre-populated. Text field and optionset fields are getting populated fine. I am not able to populate activity party list fields. For eg: Call From field needs to be set to a contact record. How can I do that?
I tried passing fromid=xx, fromname=xx, fromtype=2 in extaqs. It doesnt seem to make any difference..
Tried using Xrm.Utility.openEntityForm() as well; no luck
Can anyone please help?
Thanks,
Deepak
Thursday, January 16, 2014 8:21 PM
Answers
-
Hi Deepak,
Did you check this
Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.- Marked as answer by Deepak G Friday, January 17, 2014 3:48 PM
Friday, January 17, 2014 8:05 AMModerator
All replies
-
Hi,
Well, if you can't do it with passing data as query string parameter. You can still do it in Form OnLoad even. Just get data from query string and use JS script to set PartyList data.
Helpful links (in 2011) but it should be the same:
http://rajeevpentyala.wordpress.com/2012/04/02/get-and-set-partylist-fields-using-jscript/
http://www.powerobjects.com/blog/2013/02/22/populate-crm-2011-lookup-partylist-field-javascript/
Friday, January 17, 2014 7:42 AM -
Hi Deepak,
Did you check this
Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.- Marked as answer by Deepak G Friday, January 17, 2014 3:48 PM
Friday, January 17, 2014 8:05 AMModerator -
Thanks Mahender, that solved the problem.
There is one other thing with this one working now.
The moment I set the calldirection to incoming by passing a parameter in extraqs, callfrom field gets wiped out. If no calldirection param is passed, it stays.
Is there any way to go around that?
Thanks in advance..
Friday, January 17, 2014 3:51 PM -
Hello Deepak,
Did you check if there is no code in onload which doing this, can't try to check right, but will I will try to it and will update you.
Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.Sunday, January 19, 2014 11:21 AMModerator