Person =================== .. py:function:: model.AddRole(query, role) :param str query: see :doc:`QueryParameter` :param str role: The name of the role to be added to the persons in the query. If a user does not exist, the user will be created. The user will have to use forgot password to be emailed a link to set their password. The role itself must exist, prior to calling this method. The following roles will not be allowed: admin, manageapplication, backgroundcheck, creditcheck, delete, developer, finance, financeadmin, manager, manager2, membership, managetransactions, memberdocs, .. py:function:: model.AddTag(query, tagName, ownerId, clear) :param str query: see :doc:`QueryParameter` :param str tagName: the name of the tag. :param str ownerId: the PeopleId for the owner of the tag. :param bool clear: if ``True`` and the tag already exists, it will first be cleared of previous content; default is ``False``. The tag will be added to if it already exists. .. py:function:: model.AgeInMonths(birthdate, asof) :param date birthdate : The birthdate. :param date asof: The as of date. This will return the age in months given the two dates. Fractional months are not considered. .. py:function:: model.ClearTag(tagName, ownerId) :param str tagName: the name of the tag. :param str ownerId: the PeopleId for the owner of the tag. Removes the content of the tag. .. py:function:: model.PeopleIds(query) :return: a list of PeopleIds from a query :rtype: an enumerable list of int :param str query: See :doc:`QueryParameter` Example:: pids = model.PeopleIds("") for pid in pids: p = model.GetPerson(pid) print p.Name .. py:function:: model.RemoveRole(query, role) :param str query: see :doc:`QueryParameter` :param str role: The name of the role to be removed from the persons in the query. .. py:function:: model.UpdateCampus(query, campus) :param str query: see :doc:`QueryParameter` :param int,str campus: The CampusId or the campus name (use exact spelling to match an existing campus) .. py:function:: model.UpdateMemberStatus(query, status) :param str query: see :doc:`QueryParameter` :param int,str status: The MemberStatusId or the member status description (use exact spelling to match existing status) .. py:function:: model.UpdateNamedField(query, field, value) :param str query: see :doc:`QueryParameter` :param str field: The name of the field to update. See :doc:`../ObjectTables/PeopleTable` :param int,str campus: The CampusId or the campus name (use exact spelling to match an existing campus) .. py:function:: model.UpdateNewMemberClassDate(query, date) :param str query: see :doc:`QueryParameter` :param str,date date: The date value .. py:function:: model.UpdateNewMemberClassDateIfNullForLastAttended(query, orgid) :param str query: see :doc:`QueryParameter` :param str orgid: The OrganizationId for the last attend meeting This will find the most recent attended date for each person in the specified Organization and update the person's NewMemberClassDate with that date. .. py:function:: model.UpdateNewMemberClassStatus(query, status) :param str query: see :doc:`QueryParameter` :param int,str status: The NewMemberClassStatusId or the new member class status description (use exact spelling to match existing status) .. py:function:: model.UpdateContributionOption(query, option) :param str query: see :doc:`QueryParameter` :param int,str option: The Id of the option or the full name of the option as indicated in the table below This determines what type of statement a person wants, Joint with spouse, or Individual, or None. .. py:function:: model.UpdateEnvelopeOption(query, option) :param str query: see :doc:`QueryParameter` :param int,str option: The Id of the option or the full name of the option as indicated in the table below This determines whether the person wants envelopes: either Joint with spouse, or Individual, or None. .. py:function:: model.UpdateElectronicStatement(query, truefalse) :param str query: see :doc:`QueryParameter` :param bool truefalse: True for wants statements via secure web-site access only. False if wants printed statements. Statement/Envelope Options -------------------------- == ============= Id Option == ============= 0 Not Specified 1 Individual 2 Joint 9 None == ============= | | +--------------------+------------------+ | **Latest Update** | **1/28/2023** | +--------------------+------------------+ Add ClearTag function and update AddTag function with **clear** parameter. Moved TaskNote functions to their own page.