Finding the Plugin CallerOrigin in MS CRM 4.0
-
Monday, July 30, 2012 4:49 PM
Hi,
I have the requirement to find the CallerOrigin in MS CRM 4.0.
Once I click on ISV Button, the custom aspx will get load and create the new record and openS the newly created record using the below code. while updating the record how to identify CallerOrigin in the plug-in, I am using
if(Context.CallerOrigin.ToString() == "Microsoft.Crm.Sdk.WebServiceApiOrigin")
but it is returning false because the CallerOrigin property value is ApplicationOrigin
string open = "<script>java_script_:window.open('" + serverUrl + "/OrgInc/userdefined/edit.aspx?id={" + infusionid + "}&_CreateFromType=10009&etc=10049', '_blank','height=650,width=950,titlebar=no,top=175,left=325 ,
scrollbars=no,status=yes,resizable=yes');</script>";
Response.Write(open);How to diffrentiate the page opened using window.open and form opened in MS CRM in the plug-in?
Thanks
Srikanth Reddy
- Edited by Srikanth_MSCRM Monday, July 30, 2012 4:51 PM
- Edited by Srikanth_MSCRM Monday, July 30, 2012 5:01 PM
- Edited by Srikanth_MSCRM Monday, July 30, 2012 5:01 PM
- Edited by Srikanth_MSCRM Monday, July 30, 2012 5:02 PM
- Edited by Srikanth_MSCRM Monday, July 30, 2012 5:16 PM
- Edited by Srikanth_MSCRM Monday, July 30, 2012 5:16 PM
- Edited by Srikanth_MSCRM Monday, July 30, 2012 5:17 PM
All Replies
-
Monday, July 30, 2012 7:11 PM
Hi,
How to pass _CreateFromId or _CreateFromType to the plug-in from the form URL in MS CRM 4.0 while update?
Any help greatly appriciated!!!!
Thanks,
Srikanth Reddy
- Edited by Srikanth_MSCRM Monday, July 30, 2012 7:44 PM
- Edited by Srikanth_MSCRM Monday, July 30, 2012 7:44 PM
- Moved by Andrii ButenkoMVP, Moderator Monday, July 30, 2012 8:07 PM (From:CRM)
- Merged by Andrii ButenkoMVP, Moderator Monday, July 30, 2012 8:08 PM
-
Monday, July 30, 2012 8:06 PMModerator
Hello Srikanth,
The only way I know is described at following article - http://mscrm4ever.blogspot.com/2009/07/crm-40-logging-user-login-information.html
To get invocation url you should access HttpRequest and analyse Url property - http://msdn.microsoft.com/en-us/library/system.web.httprequest
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed As Answer by Andrii ButenkoMVP, Moderator Monday, July 30, 2012 8:06 PM
- Proposed As Answer by Andrii ButenkoMVP, Moderator Monday, July 30, 2012 8:09 PM
-
Tuesday, July 31, 2012 2:47 PMThanks for your help, It's solved!!!
-
Tuesday, July 31, 2012 2:57 PMModerator
Thanks for your help, It's solved!!!
So may be you will mark reply ans answer?Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)

