Passing parameters from CRM to external web page

Passing parameters from CRM to external web page

Post by steen maig » Tue, 18 Dec 2007 06:32:17


Hi.
I have created an aspx web page where i want to show contacts for an
account. I have the ID passed from CRM and i have a data bound datagrid
which
is supposed to show my contacts. I have set up the data grid to use a the
request.querystring["id"] and i display the value in a label to be sure that
i have everything.
Now until this point everything is ok but my datagrid remains empty. If i
hard code the query like this:

Select * from contact
where parentcustomerid = '{mycustomerid}'

then it works fine, but not if i set the data grid query to use query
string. Should the id be converted in any way or what am i missing?


Regards S *** Maigaard
 
 
 

Passing parameters from CRM to external web page

Post by Daniel Sab » Tue, 18 Dec 2007 18:18:57

Hi, S ***

I think the parameter name sent from CRM (sendParameters='true') is
"oId" and not "id". By the way, are you by chance the same S *** that
delivered Functional CRM training in Munich back in 2003?

Regards

Daniel

 
 
 

Passing parameters from CRM to external web page

Post by steen maig » Tue, 18 Dec 2007 23:59:18

Hi Daniel

I don't understand how the parameter should have changed, i just pass the
parameter and in Visual studio i base my query on a request.querystring[]
can You explain that further. No i am not that s *** from Munich, sorry

regards
S *** Maigaard


"Daniel Sabater" < XXXX@XXXXX.COM > skrev i meddelelsen
 
 
 

Passing parameters from CRM to external web page

Post by Matt Park » Wed, 19 Dec 2007 11:00:20

How are you invoking your page? If you are doing it by the normal CRM
ISV.Config methods, then that parm is oId as Daniel pointed out. If you are
somehow passing this yourself, then the first step would be to validate that
the parm is beign passedc correctly and that the value is, in fact, correct.

--

Matt Parks
MVP - Dynamics CRM




Hi Daniel

I don't understand how the parameter should have changed, i just pass the
parameter and in Visual studio i base my query on a request.querystring[]
can You explain that further. No i am not that s *** from Munich, sorry

regards
S *** Maigaard


"Daniel Sabater" < XXXX@XXXXX.COM > skrev i meddelelsen
 
 
 

Passing parameters from CRM to external web page

Post by steen maig » Fri, 21 Dec 2007 19:36:18

Hi Matt

The page is put in an iframe in CRM and called from there. I pass the ID of
the object to my aspx page, and it is transferred correctly, just when i use
it as a query parameter in my data grid then nothing is displayed, but if i
use the same parameter in my query analyzer, then it displays my records


Regards
S ***

"Matt Parks" < XXXX@XXXXX.COM > skrev i meddelelsen
 
 
 

Passing parameters from CRM to external web page

Post by Matt Park » Sat, 22 Dec 2007 01:15:25

Have you verified that you are actually getting the parm though? It sounds
to me like the parm isn't actually getting into your code. Also, you still
haven't indicated how you are passing the parm to the IFRAME.

Logic tells us that is it works when you hard code the parm and not when you
are pulling it from the querystring, then you are either pulling form the
wrong location or it isn't being set properly in the first place.

--

Matt Parks
MVP - Dynamics CRM




Hi Matt

The page is put in an iframe in CRM and called from there. I pass the ID of
the object to my aspx page, and it is transferred correctly, just when i use
it as a query parameter in my data grid then nothing is displayed, but if i
use the same parameter in my query analyzer, then it displays my records


Regards
S ***

"Matt Parks" < XXXX@XXXXX.COM > skrev i meddelelsen