Wednesday, February 20, 2013

Create contact by code

static void ContactCreate(Args _args)
    DirPartyRecId               party;
    DirPartyContactInfoView     contactView;
    DirParty                    dirParty;
    LogisticsLocationRoleRecId  role;
    LogisticsLocationRole       LogisticsLocationRole;

    party = CustTable::find('CUSTOMER ID').Party;

    contactView.LocationName = "Name";
    contactView.Locator      = "";
    contactView.Type         = LogisticsElectronicAddressMethodType::URL;
    contactView.Party        = party;
    contactView.IsPrimary    = false;
    contactView.LocatorExtension = "";

    role = LogisticsLocationRole::findBytype(LogisticsLocationRoleType::Business).RecId;
    dirParty = dirParty::constructFromPartyRecId(party);


1 comment:

Anonymous said...

This is statutory control from the Sphere exchange for Education. Local authorities (LAs) be compelled acquire involve to it when carrying minus their excise to align proper full-time tutoring (or part-time when boost for the offspring’s needs) suited for children who are unfit to go to a mainstream or special fashion because of their constitution,regiony,swiat/licea,dla,doroslych,warszawa,s,4839/