Profile cover photo
Profile photo
Hasan Bilgin
Hasan's posts

Post has attachment
Approve Workflow by Code x++
WorkflowWorkItemTable WorkflowWorkItemTable;     while select WorkflowWorkItemTable     where         WorkflowWorkItemTable.UserId == ''     &&  workflowWorkItemTable.Type == WorkflowWorkItemType::WorkItem     &&  workflowWorkItemTable.Status == Wor...

Post has attachment
CIL generation errors and solutions
thansks blog.. Fix some errors from: CIL generation, Database Synchronize in AX 2012 1.) "A parameter could not be serialized": For a quick resolve: uncheck option "Excute ...

Post has attachment
Email drill-down link not working
Copy the AxHLink.Exe...

Post has attachment

Post has attachment
Document Attachment through X++
static void hb_attach(Args _args)


DocuRef docuRef;

DocuActionArchive archive;

CustTable _custtable;

str _name;




select RecId from _custtable where _custtable.AccountNum =="M0001";


if (_custtable!=null)




Post has attachment
Get full physical path on attachment AX 2012
select firstOnly  DocuRef order by docuRef.RecId DESC     where         DocuRef.RefRecId     == 645484     &&  docuRef.RefTableId   == 56446     &&  docuRef.RefCompanyId == curext();     filename            =   DocuRef.completeFilename();

Post has attachment
Send event by x++
static void Event_sendAlertByCode(Args _args) {     EventNotificationSource _source;     EventNotification       event = EventNotification::construct(EventNotificationSource::Sync);     InventTable             inventTable;     ;     inventTable = InventTabl...

Post has attachment
Send mail with outlook
    Description255             recipientEmail;     Notes                            emailBody;     Description255             subjectText;     Filename                       fileName;     SmmOutlookEmail         smmOutlookEmail = new SmmOutlookEmail();     ...

Post has attachment
progressbar sample
static void operationProgress_progressBars(Args _args) { #AviFiles SysOperationProgress progress = new SysOperationProgress(); int i; ; progress.setCaption("Progress bar example…"); progress.setAnimation(#AviUpdate); progress.setTotal(10000);     progress.g...

Post has attachment
Kill the excel
System.Collections.IEnumerable processes;
System.Collections.IEnumerator enumerator;
System.Diagnostics.Process process;

processes = System.Diagnostics.Process::GetProcessesByName("EXCEL");
enumerator = processes.GetEnumerator();

Wait while more posts are being loaded