Answered by:
set organizer in appointment's form through url parameter javascript in mscrm 2011

Question
-
dear ALL;
on the custom button click i am opening the appointment through javascript passing the url and its parameters, everything is working fine a part from setting up the organizer on the appointment's form how can i set the organizer field through url parameters
Thursday, January 31, 2013 11:31 AM
Answers
-
Ok, In this case you will have to use following workaround with custom parameters - http://www.crmnerd.com/customizations/using-xrm.utility.openentityform-with-custom-parameters/
- Marked as answer by anwar_addi Thursday, January 31, 2013 2:41 PM
Thursday, January 31, 2013 2:09 PMModerator
All replies
-
Please check the following link
http://garethtuckercrm.com/2012/07/31/duplicate-record-button-using-jscript-in-microsoft-crm-2011/
http://mubashersharif.blogspot.com/2012/07/xrmutility-reference-microsoft-dynamics.html
I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful.
Mubasher Sharif
Check out my about.me profile!
http://mubashersharif.blogspot.com
Linked-In Profile
Follow me on Twitter!
- Edited by MubasherSharif Thursday, January 31, 2013 11:44 AM
- Proposed as answer by MubasherSharif Thursday, January 31, 2013 1:20 PM
Thursday, January 31, 2013 11:42 AM -
Hi Mubasher Sharif
the appointment's is being open with pre filled fields but i am unable to populate the organizer field on the appointnement form
- Edited by Andrii ButenkoMVP, Moderator Thursday, January 31, 2013 12:41 PM Wrong Name
Thursday, January 31, 2013 12:26 PM -
Hello,
You should check my article - http://a33ik.blogspot.ru/2013/01/open-new-activity-form-with-regarding.html
Thursday, January 31, 2013 12:33 PMModerator -
Hi anwar Please correct my name its not muhbhashri its Mubasher Sharif..
Are you using below functionality to open an entity record
Xrm.Utility.openEntityForm(name,id,parameters)
?
and in parameters
parameters[
"organizer"
] = OrganizerId;
as mentioned in above belogs.I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful.
Mubasher Sharif
Check out my about.me profile!
http://mubashersharif.blogspot.com
Linked-In Profile
Follow me on Twitter!Thursday, January 31, 2013 12:40 PM -
Hi Mubasher;
Sorry for spelling your name wrong
i am doing in this way
extraqs +="&organizerid="+organizer[0].id;
extraqs += "&organizeridname="+organizer[0].name;
extraqs += "&organizeridtype="+organizer[0].typename;and then window .open method
Thursday, January 31, 2013 12:52 PM -
Please open your entity with
Xrm.Utility.openEntityForm(name,id,parameters) as mentioned by Andrii too
and for reference please check the following post
http://mubashersharif.blogspot.com/2012/07/xrmutility-reference-microsoft-dynamics.htmlI hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful.
Mubasher Sharif
Check out my about.me profile!
http://mubashersharif.blogspot.com
Linked-In Profile
Follow me on Twitter!- Proposed as answer by MubasherSharif Thursday, January 31, 2013 1:20 PM
Thursday, January 31, 2013 1:20 PM -
Hi mubasher;
now i am doing with XRM.utility
parameters["organizerid"]=owner[0].id;
parameters["organizeridname"]=owner[0].name;
parameters["organizeridtype"]=owner[0].typename;but again for organizer i can not get through,i think the organizer is the party list i am doing regarding and attendece with party list (using party id etc) but dont no how would i do it for organizer
Thursday, January 31, 2013 1:42 PM -
This code works for me.
var params = { partyid: "{1ECF8E47-5961-E211-8096-08002791F36D}", partyname: "Andrii Butenko", partytype: 8 }; Xrm.Utility.openEntityForm("appointment", null, params);
Thursday, January 31, 2013 2:01 PMModerator -
Hi andrii ; yes you are right that is putting the value in the attendee field of appointment not the organizer field on appointmentThursday, January 31, 2013 2:04 PM
-
Ok, In this case you will have to use following workaround with custom parameters - http://www.crmnerd.com/customizations/using-xrm.utility.openentityform-with-custom-parameters/
- Marked as answer by anwar_addi Thursday, January 31, 2013 2:41 PM
Thursday, January 31, 2013 2:09 PMModerator