Answered by:
Opening a newly created record using JS

Question
-
We are creating a new record in related entity using java script how can we open this record after it has been created.
Regards
Friday, August 13, 2010 2:56 PM
Answers
-
Hey Sorry, I thought you have created a custom entity record, for phonecall you need to call it some like below
As you said you are creating new record through JS right ??
so create function of ms crmwebservice returns ID of the newly created record that you need to mentioned here
for example
var NewEntityID=functionToCreatePhoneCall();
window.open("/activities/phone/edit.aspx?id={"+NewEntityID.nodeTypedValue+"}");
check this for more information
Let us know if you have any issue
Mahain : http://mahenderpal.wordpress.com- Proposed as answer by HIMBAPModerator Friday, August 13, 2010 3:20 PM
- Marked as answer by Faisal Fiaz Friday, August 13, 2010 3:39 PM
Friday, August 13, 2010 3:20 PMModerator
All replies
-
you can configure it throug JS script like below
var NewEntityID=FunctionToCreateRecord();
var URL = "/" + ORG_UNIQUE_NAME + "/userdefined/edit.aspx?id={" +NewEntityID.nodeTypedValue + "}" + "&etn=CustomEntityName";
window.open(URL, '', 'resizable');
Mahain : http://mahenderpal.wordpress.com- Proposed as answer by HIMBAPModerator Friday, August 13, 2010 3:01 PM
Friday, August 13, 2010 3:01 PMModerator -
Thank Mahender for your prompt response.
CustomeEntityName = phonecall
from where I will get NewEntityID.nodeTypedValue
Regards
Friday, August 13, 2010 3:06 PM -
Hey Sorry, I thought you have created a custom entity record, for phonecall you need to call it some like below
As you said you are creating new record through JS right ??
so create function of ms crmwebservice returns ID of the newly created record that you need to mentioned here
for example
var NewEntityID=functionToCreatePhoneCall();
window.open("/activities/phone/edit.aspx?id={"+NewEntityID.nodeTypedValue+"}");
check this for more information
Let us know if you have any issue
Mahain : http://mahenderpal.wordpress.com- Proposed as answer by HIMBAPModerator Friday, August 13, 2010 3:20 PM
- Marked as answer by Faisal Fiaz Friday, August 13, 2010 3:39 PM
Friday, August 13, 2010 3:20 PMModerator