Quantcast
Channel: Forum CRM Deployment
Viewing all articles
Browse latest Browse all 997

Hyperlink to Create a new Opp isn't working

$
0
0

This might be in the wrong forum, but I'll try here as it's to do with linking to CRM.

I've got an SSRS report which I developed in VS 2008. I've got a link in the report that opens a new opportunity form. I'm opening it using javascript.open in the expression for the textbox the link is in. I can get all other links to other entities in CRM working - they open in new windows, some fields pre-populated etc., but when I try to open a newopportunity, I'm getting the following error message:

[2014-11-03 17:47:20.800] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    3 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ExceptionConverter.ConvertMessageAndErrorCode
	at ExceptionConverter.ConvertMessageAndErrorCode(Exception exception, Int32& errorCode)
	at ExceptionConverter.ToSingleFaultOther(Exception exception)
	at ExceptionConverter.ToSingleFaultUntyped(Exception exception)
	at ExceptionConverter.ConvertToFault(Exception exception)
	at ExceptionConverter.TryConvertToFaultExceptionInternal(Exception exception, Boolean createNewFaultException, FaultException`1& faultException)
	at FaultHelper.ConvertToFault(Exception exception)
	at ErrorInformation..ctor(Exception exception, Uri requestUrl, Boolean logError)
	at MainApplication.Application_Error(Object sender, EventArgs eventArguments)
	at EventHandler.Invoke(Object sender, EventArgs e)
	at HttpApplication.RaiseOnError()
	at ApplicationStepManager.ResumeSteps(Exception error)
	at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
	at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
	at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)>System.FormatException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #7AA3D961: System.FormatException: Input string was not in a correct format.>   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)>   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)>   at Microsoft.Crm.Web.MainPage.get_CurrentEntity()>   at Microsoft.Crm.Web.MainPage.SetContentUrl()>   at Microsoft.Crm.Web.MainPage.ConfigurePage()>   at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)>   at System.Web.UI.Control.PreRenderRecursiveInternal()>   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Here's the URL I'm trying to open:

http://vulcanbasevm/Martha/main.aspx?etc=3&extraqs=%3f_CreateFromId%3d%257b753D2C9E-5F2C-E411-9D8C-00155D3FE201%257d%26_CreateFromType%3d2%26etc%3d3&pagetype=entityrecord

This works fine when I copy & paste it into a browser, however, when I put it within a javascript.open command, it just produces the error above. I can open a Contact URL no proble, also using javascript.open, so I don't know why an Opportunity URL won't work. Is there some sort of difference with Opportunities? I've also put the complete URL with the javascript.open command into a html page, behind a button. When I click on the button, the URL works there too, but not in the report!

Here's the URL within the javascript.open command:

javascript:void(window.open('http://vulcanbasevm/Martha/main.aspx?etc=3&extraqs=%3f_CreateFromId%3d%257b753D2C9E-5F2C-E411-9D8C-00155D3FE201%257d%26_CreateFromType%3d2%26etc%3d3&pagetype=entityrecord','_blank','resizable=1','height=800', 'width=250'))

Here's my test code in which the URL also works:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head><title>Test Page</title></head><body><input id="OpenOppButton" type="button" value="Open Opportunity"
onclick = "javascript:void(window.open('http://vulcanbasevm/Martha/main.aspx?etc=3&extraqs=%3f_CreateFromId%3d%257b753D2C9E-5F2C-E411-9D8C-00155D3FE201%257d%26_CreateFromType%3d2%26etc%3d3&pagetype=entityrecord','_blank','resizable=1','height=800', 'width=250'))"
     /><br /></body></html>

Thanks.


Viewing all articles
Browse latest Browse all 997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>