- SuperOffice.CRM.Data
- SuperOffice.Data
- SuperOffice.Data.SQL
Example 1
SelectionMemberTableInfo object since we know that the data gets inserted into the SelectionMember table.
If you analyze the above code carefully, you can observe that we have used a class called Sequence to get the next sequence of the SelectionMember table. This class will help you to get the next sequence number of any table if you provide the correct table info.
Example 2
In example 1, you may have noticed that we have only added one member to the static selection. If we want to add more than one member, we cannot do it with only the above mechanisms you will have to use some other ways to do it.- We created a new insert object and added the second member through that
- We created a new object calling the batch save
SelectionMember table with the correct selection member ID.
If you are adding members to a static selection by hard coding the contact ID and the person ID, or if you are getting these values from a user interface input, you must make sure that the person ID belongs to a person that belongs to the contact ID you are specifying for a given
SelectionMemberRow.