/// <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)); }