Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Further reading
Microsoft Dynamics AX 2012 for Developers [AX 2012] SDK Download
3. Add the minimum required fields such as Carrier name and general Charges.
4. On the Accounts fast tab, click on Add. 5. Add Account Code and Carrier Account Number along with currency. (The sample carrier adapters provided in CRT do not use these fields except for currency.)
Figure 3. Click on Configuration after entering Account Code and Account Number.
6. Click on Configuration. 7. The Carrier Account Configuration form is a table of option name and option value pairs that can be used to specify any values that are required for the external carrier adapter in CRT to function. Example values would include: web service URL of external shipping carrier, log in credentials for web service, etc. Sample values are show in figure X.
Figure 4. Name value pairs are used to specify Carrier Account Configuration.
Additions can be made to the table using the following sample AX job code:
static void AddRetailShippingCarrier(Args _args) { RetailShipCarrierInterfaceId carrierAdapterId = 'Contoso'; str carrierDescription = "Contoso Shipping Adapter"; RetailShipCarrierInterface loc_RetailShipCarrierInterface; ttsBegin; select forUpdate loc_RetailShipCarrierInterface where loc_RetailShipCarrierInterface.CarrierAdapterId == carrierAdapterId; if (loc_RetailShipCarrierInterface.RecId == 0) { loc_RetailShipCarrierInterface.CarrierAdapterId = carrierAdapterId; loc_RetailShipCarrierInterface.Description = carrierDescription; loc_RetailShipCarrierInterface.insert(); } ttsCommit; }
6. From the RetailInterfaceId column dropdown list, choose the external shipping adapter in CRT that you want to associate with this carrier identifier.
Figure 6. Map Carrier ID to Retail Carrier Interface ID which is the same as the name of an external shipping adapter in CRT.
2. Select a pre-existing delivery mode or create a new one. (For more information on creating delivery modes please refer to the related how-to). 3. Under Setup fast tab, choose Ground or Air from the Services drop down list. This should enable the Carrier ID field below. 4. Now choose the carrier id that was created earlier in this how-to. This will automatically populate the Carrier Company and Account Code fields. 5. If multiple accounts are associated with Carrier Company, then choose the correct account code that has the associated adapter configuration. 6. Close the form.
8. Click on Process Delivery Modes. Press OK. 9. Click on Create Actions. 10. Now push the latest configuration down to CRT database by running A-1120_OC/N-1120_OC synch jobs.
11. The following tables must be synced for the latest configuration to be visible to CRT: a. RetailShipCarrierAccountConfiguration b. ShipCarrierCompanyAccounts c. RetailShipCarrierInterface d. ShipCarrierTable e. DlvMode