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

Convert Call stack to readable format in D365FO X++

//Input --container _xppCallStack = xSession::xppCallStack();  Public static str POL_formatXppCallStack(container _xppCallStack, int _skipFr...