public SessionProposalsModel EditAdvanced(string orgCode, int sessionProposalId) { SessionProposalsModel sessionProposal = APIUtil.GetSessionProposal(USISDKClient, orgCode, sessionProposalId); sessionProposal.Status = 89; // change status to approved return(APIUtil.UpdateSessionProposal(USISDKClient, sessionProposal)); }
/// <summary> /// A basic edit example /// </summary> public SessionProposalsModel Edit(string orgCode, int sessionProposalId, string newTitle, string newUserText) { SessionProposalsModel sessionProposal = APIUtil.GetSessionProposal(USISDKClient, orgCode, sessionProposalId); sessionProposal.SessionProposalTitle = newTitle; //User Defined Fields can also be changed. The set picked here is arbitrary, but we recommend selecting based on the IssueType property. if (sessionProposal.SessionProposalUserFields == null) { sessionProposal.SessionProposalUserFields = new UserFields(); } sessionProposal.SessionProposalUserFields.UserText02 = newUserText; // set UDF address field return(APIUtil.UpdateSessionProposal(USISDKClient, sessionProposal)); }
/// <summary> /// A basic add example /// </summary> /// <param name="orgCode">Organization code</param> /// <param name="eventId">Event ID of the event the session proposal is associated with.</param> /// <param name="sessionProposalTitle">Title of the session proposal</param> /// <param name="statusId">Status of an session proposal</param> /// <param name="presentationTypeId">Sequence number of the presentation type associated with the session proposal</param> /// <param name="topicId">Id of the topic the session proposal is associated with</param> /// <param name="htmlText">Session proposal text with all of its HTML formatting codes</param> /// <param name="submitterId">Submitter account code</param> /// <param name="submissionForm">Session proposal web configuration ID</param> /// <returns></returns> public SessionProposalsModel Add(string orgCode, int eventId, string sessionProposalTitle, int statusId, int presentationTypeId, int topicId, string htmlText, string submitterId, int submissionForm) { SessionProposalsModel sessionProposal = new SessionProposalsModel() { OrganizationCode = orgCode, Event = eventId, SessionProposalTitle = sessionProposalTitle, Status = statusId, PresentationType = presentationTypeId, Topic = topicId, HTMLText = htmlText, Submitter = submitterId, SubmissionForm = submissionForm }; return(APIUtil.AddSessionProposal(USISDKClient, sessionProposal)); }
/// <summary> /// Here's how to add a user field set with values to a new event /// </summary> /// <param name="orgCode">Organization code</param> /// <param name="eventId"></param> /// <param name="sessionProposalTitle"></param> /// <param name="statusId">Status of an session proposal</param> /// <param name="presentationTypeId">Sequence number of the presentation type associated with the session proposal</param> /// <param name="topicId">Id of the topic the session proposal is associated with</param> /// <param name="htmlText">Session proposal text with all of its HTML formatting codes</param> /// <param name="submitterId">Submitter account code</param> /// <param name="submissionForm">Session proposal web configuration ID</param> /// <param name="issueType"></param> /// <param name="userText02Value">This is just an example of the user fields you can set</param> public SessionProposalsModel AddWithUserFields(string orgCode, int eventId, string sessionProposalTitle, int statusId, int presentationTypeId, int topicId, string htmlText, string submitterId, int submissionForm, string issueType, string userText02Value) { SessionProposalsModel sessionProposal = new SessionProposalsModel() { OrganizationCode = orgCode, Event = eventId, SessionProposalTitle = sessionProposalTitle, Status = statusId, PresentationType = presentationTypeId, Topic = topicId, HTMLText = htmlText, Submitter = submitterId, SubmissionForm = submissionForm }; sessionProposal.SessionProposalUserFields = new UserFields { Type = issueType, UserText02 = userText02Value //Set the value in the user field property (here we are using UDF address field) }; return(APIUtil.AddSessionProposal(USISDKClient, sessionProposal)); }