Posts

Caller form refresh task refresh #task

    FormDataSource fds;     FormRun fr;         #Task  fr  =element.args().caller();     if (fr != null)    {        fds = fr.dataSource();        PurchTableDlv = fds.getFirst(1);         ttsbegin;         PurchTableDlv.selectForUpdate(true);         PurchTableDlv.update();         PurchTableDlv = fds.getNext();         ttscommit;         fr.task(#TaskRefresh);     }     element.closeOk();                    

Find credit note original sales order on sales order invoice report

 [ExtensionOf(classStr(SalesInvoiceDP))] final class HIGSalesInvoiceDP_Extension {     protected void populateSalesInvoiceHeaderFooterTmp(CustInvoiceJour _custInvoiceJour, CompanyInfo _companyInfo)     {         CustInvoiceTrans custInvoiceTrans,custInvoiceTransOrig;         SalesLine salesLine;         InventTransOrigin  transOrigin,transOriginOrig;         InventTrans inventTrans;         next   populateSalesInvoiceHeaderFooterTmp(_custInvoiceJour,_companyInfo);         salesInvoiceHeaderFooterTmp.BuyerAddress = _custInvoiceJour.deliveryAddress();         salesInvoiceHeaderFooterTmp.BuyerName = _custInvoiceJour.DeliveryName;         salesInvoiceHeaderFooterTmp.CompanyAddress = strReplace(salesInvoiceHeaderFooterTmp.CompanyAddress,"\n",",");         salesInvoiceHeaderFo...

ODATA API test with postman app

Image
  F&O   ODATA   API Consume   through Postman   To consume F&O API , Majorly need follow below steps 1.    Firstly we need to get access token with static URL 2.    And then we need to push data(JSON Body) with access token as a authorization token ,F&O URL   Get   access Token Static URL -    https://login.microsoftonline.com/ Command -   POST Body KEY  VALUE client_id CLIENT ID value from app registration grant_type client_credentials resource D365FO URL client_secret SECRET KEY from app registration         Tenant_id                                will provide from azure app   ...

Integration concepts / patterns d365fo

Image

Recurring integration file pick and download from one drive/ FTP or SFTP/sharepoint/File folder (on premises)/oneDrive folder (DMF ) F&O using power automate

Image
  Secret value which is masked with * - Download file

Runbase with query parameters, runtime lookup selection on dialog

 /// <summary> /// The <c>PayrollPayStatementJournalizeBase</c> handles the dialog logic /// that is common to all pay statement journalizing actions, such as posting /// and generating vendor invoices. /// </summary> class CMCTimeSheetGenerateInquiryDataService extends RunBaseBatch {     QueryRun                        queryRun;          FormBuildComboBoxControl        toDateBuildComboBox;     FormComboBoxControl             toDateComboBox;     TSTimesheetPeriod  timeSheetWk;     container periodFromList,periodToList;     TransDate periodFrom,periodTo;     HcmWorker worker;              private const str toDateListControl = 'ToDateListControl';     #DEFINE.CurrentVersion(1)     #LOCALMACRO.CurrentList ...

Logistics address, postal address, address phone fax contact information

// Find primary address by roles  LogisticsPostalAddress postalAddr;  postalAddr = DirParty::findPostalAddressByRole(DirPartyTable::find(companyInfo::find().PartyNumber).RecId,LogisticsLocationRoleType::Invoice); Get Description/ name of location LogisticsLocation::find(postalAddrInvoice.Location).Description // Find contact information (Generic one) DirPartyContactInfoView contactInfoView; contactInfoView = DirPartyContactInfoView::find(partyRecId, _location); // Find primary address by roles regardless primary or not public  LogisticsPostalAddress getPostalAddressByType(DirPartyRecId _party, LogisticsLocationRoleType _type)     {         DirPartyLocation        partyLocation;         DirPartyLocationRole    partyLocationRole;         LogisticsLocation       location;         LogisticsLocationRole   locationRole;   ...