Thursday, February 23, 2017

Outlook integration with AX Auto Sync for User Specific (Not in Batch)

static void AutoOutookSync(Args _args)
{
    smmOutlookSync  smmOutlookSync;
    TransDateTime _synchronizeFromDateTime = DateTimeUtil::minValue();
    TransDateTime _synchronizeToDateTime = DateTimeUtil::maxValue();
    smmOutlookSync = smmOutlookSync::construct(smmOutlookMappingTypes::Appointments);
    smmOutlookSync.init();
   
    smmOutlookSync.setSynchronizeFromDateTime(_synchronizeFromDateTime);
    smmOutlookSync.setSynchronizeToDateTime(_synchronizeToDateTime);
    smmOutlookSync.synchronize();
}

No comments:

Post a Comment

Search hierarchy for a match (TableALLGroup) X++

  Table1 ppt;  select firstonly ppt  order ItemCode, ItemRelation, AccountCode, AccountRelation where      (ppt.ItemCode == TableGroupAll::T...