710 · opportunityproductsnewfromce
Technisches Mapping des Jobs
opportunityproductsnewfromce (CEOpportunityProducts).| Eigenschaft | Wert |
|---|---|
| Order | 710 |
| Job | opportunityproductsnewfromce |
| Mapping | CEOpportunityProducts |
| Richtung | CE → BC |
| Quellverbindung | CRM_Test |
| Zielverbindung | BC_Test |
| Quelltabelle (API) | opportunityproduct aus BC_Test-seitig, kein API-Pfad |
| Zieltabelle | acdopportunitycalculationelements |
| Zeitplan | 0 */3 * * * * |
| Filter | JSON-Filter: IsNull(wysa_bcsystemid) UND OptionSetValue(wysa_synctobc=799840000) |
| Watermark | — |
| Response-Job | opportunityproductsresponsefrombc |
| Fachliche Doku | Neue Verkaufschancen-Position nach BC |
Feldzuordnung
| Quellfeld | Zielfeld | Operation | Details |
|---|---|---|---|
description | description | — | — |
wysa_margin | profitLCY | — | — |
wysa_bcamount | amountLCY | — | — |
wysa_bcamountvat | amountIncludingVATLCY | — | — |
_opportunityid.wysa_bcopportunitynumber | opportunityNo | LookupValue | liest wysa_bcopportunitynumber aus opportunity über opportunityid (kein Cache) |
_productid.wysa_bccode | opportunityElementCode | LookupValue | liest wysa_bccode aus product über productid |
quantity | quantity | — | — |
wysa_bcsystemid | systemId | — · Schlüssel | — |
Alternate Key
{
"keyType": "Id",
"keyName": "wysa_bcsystemid",
"ignoreEmptySourceKey": false,
"keyRank": 0
}
Weitere technische Details
Transformationen im Detail
Beide Lookups mit LookupType: Attribute:
| Quellfeld | Nachschlagetabelle | Nachschlagefeld | Zielfeld |
|---|---|---|---|
opportunityid | opportunity | wysa_bcopportunitynumber | opportunityNo |
productid | product | wysa_bccode | opportunityElementCode |
{
"Operations": [{
"Name": "LookupValue",
"Parameters": {
"LookupType": "Attribute",
"SourceField": "opportunityid",
"LookupTable": "opportunity",
"LookupField": "wysa_bcopportunitynumber",
"UseCache": false
}
}, {
"Name": "LookupValue",
"Parameters": {
"LookupType": "Attribute",
"SourceField": "productid",
"LookupTable": "product",
"LookupField": "wysa_bccode",
"UseCache": true
}
}]
}
Die beiden Lookups unterscheiden sich im Cache-Verhalten: Die Verkaufschancennummer wird
ohne Cache aufgelöst (UseCache: false), der Produktcode mit Cache
(UseCache: true). Genau diese beiden Auflösungen begründen die Reihenfolgeabhängigkeit: opportunity
liefert die Nummer erst nach opportunitiesresponsefrombc (261), product den Code
erst nach dem Abgleich in opportunityelementsfrombc (190). Beide Vorgänger laufen im
Zwei-Minuten-Takt, dieser Job im Drei-Minuten-Takt.
Beobachtungen
- Das Feld
wysa_bcsystemidwird aufsystemIdgemappt und dient als Schlüssel — obwohl der Filter des Jobs voraussetzt, dass es leer ist. Es gibt keinendataverseId-Umweg wie bei Firma, Kontakt und Verkaufschance. - Dieser Job schreibt den Schlüssel in das BC-Feld
systemId, der Jobopportunityproductsupdatesfromcein das Feldid— dieselbe API Page, zwei verschiedene Feldnamen. - Der Filter verwendet
wysa_synctobcohne „2", abweichend vom Feldnamenwysa_sync2bcan der Verkaufschance.