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      = "www.microsoft.com";
    contactView.Type         = LogisticsElectronicAddressMethodType::URL;
    contactView.Party        = party;
    contactView.IsPrimary    = false;
    contactView.LocatorExtension = "";

    role = LogisticsLocationRole::findBytype(LogisticsLocationRoleType::Business).RecId;
    dirParty = dirParty::constructFromPartyRecId(party);
    dirParty.createOrUpdateContactInfo(contactView,[role]);

}

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

http://www.elmasryelasel.com/vb/member.php?u=32510
http://www.mpl486.milion-za-darmo.pl/tag/ekonomiczne
http://polskikatalogturysty.pl/opole-stolica-wojewodztwa-opolskiego-i-polskiej-piosenki.html
http://mahmedia.pl/informacje-i-konsumenci
http://htmlek.pl/polska,regiony,swiat/licea,dla,doroslych,warszawa,s,4839/