Value Expression

On the Replication Document Elements form, if the Value Type is set to Literal, specify the literal expression or macro expression in this field.

These macro expressions are supported:

Macro Description
ACTION() Used with TABLE! BODs
  • For an insert operation that fired the replication, this expression gets the value Add.
  • For an update operation, this expression gets the value Change.

Delete is currently undefined and substitutes to an empty string.

PARMS( table.column ) Resolves to the value of the specified table or column
FPARMS Behaves similar to PARMS, but encloses the result in single quotes, for filters
P(property) The value of an IDO property
FP(property) Behaves similar to P(), but encloses the result in single quotes, for filters
Pn Used for method parameters

Method parameters are referenced by numerical order, rather than by a specific property name. For example, P7 indicates the seventh method parameter.

FPn Used for method parameters

Behaves similar to Pn, but encloses the result in single quotes

NIDID(property|param|literal) Resolves to the value of the NID with the location left blank

Specify a property name, an invoke parameter name, or a literal string with substitution keywords. The macro then retrieves the rest of the information required for the NID from the system.

LNIDID(property|param|literal) Resolves to the value of the NID including the location or the "from" site

Specify a property name, an invoke parameter name, or a literal string with substitution keywords. The macro then retrieves the rest of the information required for the NID from the system.

TNIDID(property|param|literal) Behaves similar to the NIDID keyword, but does not include accounting entity or location in the return value

Specify a property name, an invoke parameter name, or a literal string with substitution keywords. The macro then retrieves the rest of the information required for the NID from the system.

BODNOUN() or BODVERB() Resolves to the value of the BOD noun and verb from the linked Replication Document Inbound Cross-References form or Replication Document Outbound Cross-Reference form

On Replication Document Elements form, the BODNOUN and BODVERB keywords are honored in these fields:

  • Value Expression
  • BOD Tag Name
  • Attribute

Use these keywords to use the replication document as a template and resolve to a different outer XML element, which depends on the noun and verb combination selected on the cross reference form.

For example, the Purchase Order Sync BOD must specify SyncPurchaseOrder as the outermost XML element name. The Purchase Order Process BOD must specify ProcessPurchaseOrder as the outermost XML element name. Instead of specifying this information, use BODVERB()BODNOUN() to specify the verb and noun in the PurchaseOrder replication document's BOD Tag Name. This method allows you to use the same replication document for both verbs.

Be careful not to include blanks when using these keywords for tag and attribute names, because blanks are not allowed in XML names.

BODXML() Allows inbound BODs metadata to pass the entire XML to a method

For example, UPD(SaveCallSp(BODXML()))

FROMLOGICALID() Resolves to the value of site.message_bus_logical_id for the site that is the source of the original outbound message, and then appends the parms.site value for that site.

For example, infor.mongoose.oh

FROMLOGICALIDWITHOVERRIDE() Behaves similar to the site logical ID

If there is a value for the process default property Outbound SUM Role LID Override, then the override value is used. If there is no value in the process default property and no override is specified, the value returns to the same value as FROMLOGICALID().

BODCURDATETIME() Resolves to the current server-based date or time, formatted for BOD-enabled applications
VARIATIONID() Resolves to a 64-bit integer value that is guaranteed to be unique
TENANTID() Resolves to the Tenant ID value set on the Sites or Sites/Entities, or Intranets form
FROMSITEINTRANET() Behaves similar to TENANTID
URIFROMSITEINTRANET() URI encoded FROMSITEINTRANET so that URI characters, such as "/" are escaped
URITENANTID() URI encoded TENANTID so that URI characters, such as "/" are escaped
CDATA() Wraps the entire element so that all XML tags are ignored using the XML CDATA construct

The CDATA() must be at the beginning of the element. Otherwise, CDATA() is ignored. If CDATA() is found at the start of an element value, then the value will be made a CDATA section. For example, CDATA()P(P3).