Skip to content

AMZSDD_WebSharedCodeUnits

Shared codeunit service for cross-platform business operations: document management, PDF generation, customer operations, payment processing, and work order posting.

Service Details

PropertyValue
Endpoint/Codeunit/AMZSDD_WebSharedCodeUnits
SOAP Namespaceurn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits
Full URL (Production)http://nav.amzs.si:7047/DynamicsNAV90-WSC/WS/AMZS%20d.d./Codeunit/AMZSDD_WebSharedCodeUnits

SOAP Action Pattern: All methods use the action format:

urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:{MethodName}

Authentication & User Management

AuthUser

Authenticates a user by username and password (or MD5 hash), returning whether the user exists and whether the account is blocked.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:AuthUser

Parameters

NameTypeDirectionDescription
userNameStringInUsername for authentication
passwordStringInPlaintext password
mD5PasswordStringInMD5-hashed password (alternative to plaintext)
blockedBooleanIn/OutWhether the account is blocked
existsBooleanIn/OutWhether the user exists in the system

Result: WSCDAuthUser_Result

FieldTypeDescription
return_valueBooleantrue if authentication succeeded
blockedBooleantrue if the account is blocked
existsBooleantrue if the user exists

GetUserRoles

Retrieves the roles and groups assigned to a user.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetUserRoles

Parameters

NameTypeDirectionDescription
userNameStringInUsername to look up
userRolesStringIn/OutComma-separated list of role codes
userGroupsStringIn/OutComma-separated list of group codes

Result: WSCDGetUserRoles_Result

FieldTypeDescription
userRolesStringAssigned role codes
userGroupsStringAssigned group codes

ChangeUserPassword

Changes the password for a user account.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ChangeUserPassword

Parameters

NameTypeDirectionDescription
userNameStringInUsername whose password is being changed
cPasswordStringInCurrent password
nPasswordStringInNew password
statusBooleanIn/Outtrue if the password change succeeded
webUserIDStringInID of the web user performing the action

Return

TypeDescription
BooleanReturns status -- true on success, false on failure

IsDefinitionCurrent

Checks whether the local definition data is still current compared to the server.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:IsDefinitionCurrent

Parameters

NameTypeDirectionDescription
lastDefinitionDateDateInThe date of the last definition update on the client

Return

TypeDescription
Booleantrue if the client's definition is still current

Customer Management

CreateCustomer

Creates a new customer record with full company/individual details.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateCustomer

Parameters

NameTypeDirectionDescription
noStringIn/OutCustomer number (empty to auto-assign; returns assigned number)
nameStringInCustomer name (line 1)
name2StringInCustomer name (line 2)
addressStringInStreet address (line 1)
address2StringInStreet address (line 2)
postCodeStringInPostal code
countryCodeStringInISO country code
vATRegistrationNoStringInVAT registration number
taxPayerBooleanInWhether the customer is a tax payer
foreignCompanyBooleanInWhether the customer is a foreign (non-EU) company
foreignEuCompanyBooleanInWhether the customer is a foreign EU company
memberNoStringInAMZS membership number (if applicable)
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe assigned customer number (no)

CreateMembershipCustomer

Creates a customer record from an existing AMZS membership.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateMembershipCustomer

Parameters

NameTypeDirectionDescription
noStringIn/OutCustomer number (returns assigned number)
membershipNoStringInMembership number to link
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe assigned customer number (no)

CheckMembershipExists

Checks whether a given membership number exists in the system.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckMembershipExists

Parameters

NameTypeDirectionDescription
membershipNoStringInMembership number to check

Return

TypeDescription
Booleantrue if the membership exists

GetCustomerNoFromMember

Looks up the customer number associated with a membership or parameter code.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetCustomerNoFromMember

Parameters

NameTypeDirectionDescription
parameterCodeStringInPrimary lookup code
parameterCode2StringIn/OutSecondary code; returns the customer number
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe customer number (returned via parameterCode2)

CheckMemberExpired

Checks whether a customer's membership has expired and returns an error message if so.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckMemberExpired

Parameters

NameTypeDirectionDescription
customerNoStringInCustomer number to check
errorTextStringIn/OutError text if membership is expired
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringError text (returned via errorText); empty if not expired

LinkCustomerFromMember

Links an existing customer record to a membership number.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:LinkCustomerFromMember

Parameters

NameTypeDirectionDescription
customerNoStringInCustomer number to link
memberNoStringInMembership number to associate
user_IDStringInID of the user performing the action

Return

TypeDescription
voidNo return value

CheckCustVatNo

Validates a customer's VAT registration number and returns updated customer information.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckCustVatNo

Parameters

NameTypeDirectionDescription
noStringIn/OutCustomer number
vATRegistrationNoStringInVAT registration number to validate
responseStringIn/OutValidation response message
webUserIDStringInID of the web user performing the action

Result: WSCDCheckCustVatNo_Result

FieldTypeDescription
noStringCustomer number
responseStringValidation response message

UpdateCustVatNo

Updates a customer's VAT registration number and associated company details.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:UpdateCustVatNo

Parameters

NameTypeDirectionDescription
noStringIn/OutCustomer number
nameStringIn/OutUpdated customer name (line 1)
name2StringIn/OutUpdated customer name (line 2)
addressStringIn/OutUpdated street address (line 1)
address2StringIn/OutUpdated street address (line 2)
postCodeStringIn/OutUpdated postal code
countryCodeStringIn/OutUpdated ISO country code
vATRegistrationNoStringInNew VAT registration number
webUserIDStringInID of the web user performing the action

Result: WSCDUpdateCustVatNo_Result

FieldTypeDescription
noStringCustomer number
nameStringUpdated name (line 1)
name2StringUpdated name (line 2)
addressStringUpdated address (line 1)
address2StringUpdated address (line 2)
postCodeStringUpdated postal code
countryCodeStringUpdated country code

GetAMClubByPostCode

Retrieves the AMZS club codes associated with a given postal code.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetAMClubByPostCode

Parameters

NameTypeDirectionDescription
postCodeNoStringInPostal code to look up
aMClubCodesStringIn/OutReturned club codes

Return

TypeDescription
StringClub codes for the postal code (returned via aMClubCodes)

Vehicle Management

CheckVehicleChassis

Checks whether a chassis number is valid and exists in the vehicle registry.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckVehicleChassis

Parameters

NameTypeDirectionDescription
chassisNoStringInChassis (VIN) number to check
isChassisBooleanIn/Outtrue if the chassis number is valid
webUserIDStringInID of the web user performing the action

Return

TypeDescription
BooleanReturns isChassis -- true if valid

TransferCustomerToChassis

Links a customer to a vehicle chassis record and returns the vehicle code.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:TransferCustomerToChassis

Parameters

NameTypeDirectionDescription
chassisNoStringInChassis (VIN) number
customerNoStringInCustomer number to link
vehicleCodeStringIn/OutReturns the vehicle code
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe vehicle code (returned via vehicleCode)

CreateNewVehicle

Creates a new vehicle record in the system.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateNewVehicle

Parameters

NameTypeDirectionDescription
chassisNoStringInChassis (VIN) number for the new vehicle
customerNoStringInOwner customer number
vehicleNoStringIn/OutReturns the assigned vehicle number
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe assigned vehicle number (returned via vehicleNo)

Document Creation

CreateWorkOrder

Creates a new work order document.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateWorkOrder

Parameters

NameTypeDirectionDescription
workOrderNoStringIn/OutReturns the assigned work order number
orderTypeIntegerInType of work order to create
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe assigned work order number (returned via workOrderNo)

CreateSalesInvoice

Creates a new sales invoice document.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateSalesInvoice

Parameters

NameTypeDirectionDescription
invoiceNoStringIn/OutReturns the assigned invoice number
documentTypeStringIn/OutDocument type code
webUserIDStringInID of the web user performing the action

Result: WSCDCreateSalesInvoice_Result

FieldTypeDescription
invoiceNoStringThe assigned invoice number
documentTypeStringThe document type code

CreateSalesQuote

Creates a new sales quote document.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateSalesQuote

Parameters

NameTypeDirectionDescription
quoteNoStringIn/OutReturns the assigned quote number
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe assigned quote number (returned via quoteNo)

CreatePurchaseOrder

Creates a new purchase order document.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreatePurchaseOrder

Parameters

NameTypeDirectionDescription
orderNoStringIn/OutReturns the assigned purchase order number
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe assigned order number (returned via orderNo)

CreateCashRegisterHeader

Creates a new cash register header record.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateCashRegisterHeader

Parameters

NameTypeDirectionDescription
cashRegisterNoStringIn/OutReturns the assigned cash register number
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe assigned cash register number (returned via cashRegisterNo)

CreateDrivingSchoolOrder

Creates a new driving school order document.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateDrivingSchoolOrder

Parameters

NameTypeDirectionDescription
drivingSchoolOrderNoStringIn/OutReturns the assigned driving school order number
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe assigned order number (returned via drivingSchoolOrderNo)

CreateCreditMemo

Creates a credit memo linked to an existing invoice.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateCreditMemo

Parameters

NameTypeDirectionDescription
documentNoStringIn/OutReturns the assigned credit memo number
invoiceNoStringIn/OutThe invoice number being credited
crMemoNoteStringInNote or reason for the credit memo
webUserIDStringInID of the web user performing the action

Result: WSCDCreateCreditMemo_Result

FieldTypeDescription
documentNoStringThe assigned credit memo number
invoiceNoStringThe referenced invoice number

CreateNewItem

Creates a new item (product/service) in the item catalog.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateNewItem

Parameters

NameTypeDirectionDescription
noStringIn/OutItem number (empty to auto-assign; returns assigned number)
descriptionStringInItem description
base_Unit_of_MeasureStringInBase unit of measure code
eAN_CodeStringInEAN barcode
item_Category_CodeStringInItem category code
product_Group_CodeStringInProduct group code
no_2StringInSecondary item number
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe assigned item number (returned via no)

Posting & Processing

PostSalesInvoice

Posts (finalizes) a sales invoice, generating the posted invoice number.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:PostSalesInvoice

Parameters

NameTypeDirectionDescription
noStringInSales invoice document number
invNumbecStringIn/OutReturns the posted invoice number
user_IDStringInID of the user performing the action

Return

TypeDescription
StringThe posted invoice number (returned via invNumbec)

PostPurcheseOrder

Posts (finalizes) a purchase order, generating the posted document number.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:PostPurcheseOrder

Parameters

NameTypeDirectionDescription
noStringInPurchase order document number
invNumbecStringIn/OutReturns the posted document number
user_IDStringInID of the user performing the action

Return

TypeDescription
StringThe posted document number (returned via invNumbec)

Note

The method name contains a typo (PostPurcheseOrder instead of PostPurchaseOrder). This reflects the actual SOAP endpoint name and must be used as-is.


PostWorkOrder

Posts a work order with a specified posting selection, returning the generated invoice and shipment numbers.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:PostWorkOrder

Parameters

NameTypeDirectionDescription
documentNoStringIn/OutWork order document number
postingSelectionStringIn/OutPosting selection code (e.g., ship, invoice, or both)
invoiceNoStringIn/OutReturns the posted invoice number
shipmentNoStringIn/OutReturns the posted shipment number
webUserIDStringInID of the web user performing the action

Result: WSCDPostWorkOrder_Result

FieldTypeDescription
documentNoStringThe work order document number
postingSelectionStringThe posting selection used
invoiceNoStringThe generated invoice number
shipmentNoStringThe generated shipment number

ChangePaymentMethod

Changes the payment method on a document.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ChangePaymentMethod

Parameters

NameTypeDirectionDescription
documentNoStringInDocument number to update
webUserIDStringInID of the web user performing the action

Return

TypeDescription
voidNo return value

SetSalesSerials

Sets serial number tracking on a sales document line.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:SetSalesSerials

Parameters

NameTypeDirectionDescription
documentTypeIntegerInDocument type identifier
documentNoStringInDocument number
documentLineNoIntegerInLine number within the document
serialLineNoIntegerInSerial line number to assign
webUserIDStringInID of the web user performing the action

Return

TypeDescription
voidNo return value

CheckCashRegisterPayments

Validates payments on a cash register document, including insurance agency details.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckCashRegisterPayments

Parameters

NameTypeDirectionDescription
docNoStringInCash register document number
insAgencyCodeStringInInsurance agency code
insLineNoIntegerInInsurance line number
user_IDStringInID of the user performing the action

Return

TypeDescription
voidNo return value

WorkOrderCorrection

Applies a correction to a posted work order with a comment explaining the change.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:WorkOrderCorrection

Parameters

NameTypeDirectionDescription
docNoStringInWork order document number
commentStringInExplanation for the correction
user_IDStringInID of the user performing the action

Return

TypeDescription
voidNo return value

CheckWorkOrderHours

Validates the recorded hours on a work order.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckWorkOrderHours

Parameters

NameTypeDirectionDescription
docNoStringInWork order document number
user_IDStringInID of the user performing the action

Return

TypeDescription
voidNo return value

ReleaseSalesQuote

Releases a sales quote, changing its status from open to released.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ReleaseSalesQuote

Parameters

NameTypeDirectionDescription
noStringInSales quote document number
user_IDStringIn/OutID of the user performing the action

Return

TypeDescription
StringReturns user_ID

ReopenSalesQuote

Reopens a previously released sales quote, reverting its status to open.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ReopenSalesQuote

Parameters

NameTypeDirectionDescription
noStringInSales quote document number
user_IDStringIn/OutID of the user performing the action

Return

TypeDescription
StringReturns user_ID

ChangeResCenterOnWO

Changes the responsibility center assigned to a work order.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ChangeResCenterOnWO

Parameters

NameTypeDirectionDescription
workOrderNoStringInWork order number
newResCenterStringIn/OutNew responsibility center code
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringThe updated responsibility center code (returned via newResCenter)

UpdateTireLocation

Updates the tire storage location for a work order and returns a user message.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:UpdateTireLocation

Parameters

NameTypeDirectionDescription
docNoStringInDocument number
userMessageStringIn/OutReturns a status message to display to the user
webUserIDStringInID of the web user performing the action

Return

TypeDescription
StringStatus message (returned via userMessage)

DrivingSchoolTaskChange

Updates a task assignment on a driving school order line.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:DrivingSchoolTaskChange

Parameters

NameTypeDirectionDescription
document_Noa46StringInDocument number
document_Line_Noa46IntegerInDocument line number
usage_Document_Line_Noa46IntegerInUsage document line number
task_CodeStringInNew task code to assign
respCenterStringInResponsibility center code
user_IDStringInID of the user performing the action

Return

TypeDescription
voidNo return value

Payment Amounts

ShowPaymentAmount

Calculates and returns the payment breakdown for a sales invoice, including total, differential amount, and cash return.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ShowPaymentAmount

Parameters

NameTypeDirectionDescription
noStringInInvoice document number
totalAmountBigDecimalIn/OutTotal amount due
differentAmountToPayBigDecimalIn/OutDifferential amount to pay
cashAcceptedBigDecimalInAmount of cash accepted from the customer
cashToReturnBigDecimalIn/OutAmount of cash to return to the customer
user_IDStringIn/OutID of the user performing the action

Result: WSCDShowPaymentAmount_Result

FieldTypeDescription
totalAmountBigDecimalTotal amount due
differentAmountToPayBigDecimalDifferential amount to pay
cashToReturnBigDecimalCash to return to the customer
user_IDStringUser ID

ShowPaymentAmountOrder

Calculates and returns the payment breakdown for a work order.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ShowPaymentAmountOrder

Parameters

NameTypeDirectionDescription
noStringInWork order document number
totalAmountBigDecimalIn/OutTotal amount due
differentAmountToPayBigDecimalIn/OutDifferential amount to pay
cashAcceptedBigDecimalInAmount of cash accepted from the customer
cashToReturnBigDecimalIn/OutAmount of cash to return to the customer
webUserIDStringInID of the web user performing the action

Result: WSCDShowPaymentAmountOrder_Result

FieldTypeDescription
totalAmountBigDecimalTotal amount due
differentAmountToPayBigDecimalDifferential amount to pay
cashToReturnBigDecimalCash to return to the customer

ShowPaymentAmountQuote

Calculates and returns the payment breakdown for a sales quote.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ShowPaymentAmountQuote

Parameters

NameTypeDirectionDescription
noStringInSales quote document number
totalAmountBigDecimalIn/OutTotal amount due
differentAmountToPayBigDecimalIn/OutDifferential amount to pay
cashAcceptedBigDecimalInAmount of cash accepted from the customer
cashToReturnBigDecimalIn/OutAmount of cash to return to the customer
user_IDStringIn/OutID of the user performing the action

Result: WSCDShowPaymentAmountQuote_Result

FieldTypeDescription
totalAmountBigDecimalTotal amount due
differentAmountToPayBigDecimalDifferential amount to pay
cashToReturnBigDecimalCash to return to the customer
user_IDStringUser ID

Gift Cards

CheckGiftCard

Checks whether a gift card serial number exists and returns its type.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckGiftCard

Parameters

NameTypeDirectionDescription
serialNoStringInGift card serial number
existsBooleanIn/Outtrue if the gift card exists
typeIntegerIn/OutGift card type code
user_IDStringInID of the user performing the action

Result: WSCDCheckGiftCard_Result

FieldTypeDescription
existsBooleanWhether the gift card was found
typeIntegerGift card type code

ConsumeGiftCard

Consumes (redeems) a gift card against a document for a specified amount.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ConsumeGiftCard

Parameters

NameTypeDirectionDescription
serialNoStringInGift card serial number
documentNoStringInDocument number to apply the gift card to
documentDateDateInDocument date
consumationAmountBigDecimalInAmount to consume from the gift card
user_IDStringInID of the user performing the action

Return

TypeDescription
voidNo return value

Metadata

GetTableMetadata

Retrieves metadata for a NAV table by its numeric ID.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetTableMetadata

Parameters

NameTypeDirectionDescription
tableIdIntegerInNAV table ID
dataStringIn/OutReturns the metadata as a serialized string

Return

TypeDescription
StringTable metadata (returned via data)

GetTableMetadataFromWSName

Retrieves metadata for a NAV table by its web service name.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetTableMetadataFromWSName

Parameters

NameTypeDirectionDescription
wSNameStringInWeb service name of the table
metaDataStringIn/OutReturns the metadata as a serialized string

Return

TypeDescription
StringTable metadata (returned via metaData)

GetLookupRecords

Retrieves lookup records based on a structured request object.

SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetLookupRecords

Parameters

NameTypeDirectionDescription
GetLookupRecordsWSCDGetLookupRecordsInStructured lookup request object

Return

TypeDescription
StringThe lookup result (returned via resoult field)

PDF Generation

Base64-Encoded PDF Content

All PDF generation methods return the document as a base64-encoded string in the pDF field. Decode this value to obtain the raw PDF binary data. The mime field will typically be application/pdf, and documentName provides the suggested filename.

All 15 PDF methods share a common pattern for parameters and response structure. They generate a PDF representation of the specified document and return it along with metadata and printer settings.

Common Parameters

NameTypeDirectionDescription
noStringInDocument number to generate the PDF for
user_IDStringInID of the user requesting the PDF
pDFStringIn/OutReturns the base64-encoded PDF content
documentNameStringIn/OutReturns the suggested document filename
mimeStringIn/OutReturns the MIME type (typically application/pdf)
printerSettingsStringIn/OutReturns printer configuration settings

Common Result Fields

FieldTypeDescription
pDFStringBase64-encoded PDF binary content
documentNameStringSuggested filename for the document
mimeStringMIME type of the content
printerSettingsStringPrinter configuration settings

PDF Methods Reference

#MethodSOAP ActionResult TypeDescription
46GetInvoicePDF...:GetInvoicePDFWSCDGetInvoicePDF_ResultPosted sales invoice PDF
47GetInvoice2PDF...:GetInvoice2PDFWSCDGetInvoice2PDF_ResultAlternative posted sales invoice PDF (variant layout)
48GetSalesQuotePDF...:GetSalesQuotePDFWSCDGetSalesQuotePDF_ResultSales quote document PDF
49GetQuotePDF...:GetQuotePDFWSCDGetQuotePDF_ResultQuote document PDF
50GetWorkOrderPDF...:GetWorkOrderPDFWSCDGetWorkOrderPDF_ResultWork order document PDF (page 1)
51GetWorkOrderPage2PDF...:GetWorkOrderPage2PDFWSCDGetWorkOrderPage2PDF_ResultWork order document PDF (page 2)
52GetWorkOrderBothPage2PDF...:GetWorkOrderBothPage2PDFWSCDGetWorkOrderBothPage2PDF_ResultWork order document PDF (both pages combined)
53GetWOInvoicePDF...:GetWOInvoicePDFWSCDGetWOInvoicePDF_ResultWork order posted invoice PDF
54GetWOShipmentPDF...:GetWOShipmentPDFWSCDGetWOShipmentPDF_ResultWork order posted shipment PDF
55GetStorageReceivePDF...:GetStorageReceivePDFWSCDGetStorageReceivePDF_ResultStorage receive document PDF
56GetStorageOutputPDF...:GetStorageOutputPDFWSCDGetStorageOutputPDF_ResultStorage output document PDF
57GetCreditMemoPDF...:GetCreditMemoPDFWSCDGetCreditMemoPDF_ResultPosted credit memo PDF
58GetReceiptPDF...:GetReceiptPDFWSCDGetReceiptPDF_ResultCash receipt PDF
59GetDrivSchoolOrderPDF...:GetDrivSchoolOrderPDFWSCDGetDrivSchoolOrderPDF_ResultDriving school order PDF
60GetBalanceOverviewPDF...:GetBalanceOverviewPDFWSCDGetBalanceOverviewPDF_ResultBalance overview report PDF

SOAP Action Prefix

In the table above, ... represents urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits. The full SOAP action for each method follows the pattern: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:{MethodName}

GetBalanceOverviewPDF -- Special Parameters

GetBalanceOverviewPDF (method 60) differs from the other PDF methods in that it accepts date filter parameters instead of a single document number.

NameTypeDirectionDescription
dateFilterStringInDate range filter for the balance overview
documentDatefilterStringInDocument date range filter
user_IDStringInID of the user requesting the PDF
pDFStringIn/OutReturns the base64-encoded PDF content
documentNameStringIn/OutReturns the suggested document filename
mimeStringIn/OutReturns the MIME type
printerSettingsStringIn/OutReturns printer configuration settings