PlentySearchOrders ohne Artikel

Hallo,

können wir am PlentySearchOrders-Step einen Schalter bekommen um die Aufträge ohne Artikel abzurufen?


Im Großteil der Fälle rufe ich Aufträge ab und verwerfe dann alle Zeilen ohne OrderHeadOrderType, weil mich egtl nur die Kopfzeilen interessieren.


Ohne Artikel geht mit dem addOrderItems=false Parameter:

/rest/orders?addOrderItems=false
/rest/orders/{orderId}?addOrderItems=false

Das würde zwar wohl keine Calls sparen, aber immerhin Traffic...


Danke Daniel


Hallo Daniel,


wir bauen dafür eine neue Option in den PlentySearchOrders Step ein. Wird voraussichtlich Anfang/Mitte nächster Woche Live gehen.


Viele Grüße

Torsten


Hallo Daniel,


das ging doch schneller als erwartet. Du kannst die Aufträge jetzt ohne die Artikel abrufen.



Viele Grüße

Torsten

Super Torsten, eure schnellen Entwicklungszyklen begeistern mich immer wieder, vielen Dank!

Hi Torsten (@synestysupport),
kann es sein dass das Feature wieder zerbrochen ist?

Ich habe die Option deaktiviert, aber die einzelnen Positionen kommen trotzdem mit:
2021-07-09 16_15_23-Step Configuration - Synesty Studio - https___apps.synesty.com_studio_jobControl

Grüße Daniel

Hi Daniel,

ich hoffe nicht. Mit unserem Testsystem funktioniert das Feature noch. Kannst du mir vielleicht die Einstellungen deines PlentySearchOrders Steps schicken ? Eventuell haben wir noch ein Problem bei einer Kombination von Einstellungen.

VG Torsten

PS. Falls du es noch nicht kennst: Die Einstellungen deines PlentySearchOrders Steps kannst du dir in die Zwischenablage kopieren und per Ticket schicken oder hier posten.

1 „Gefällt mir“

Das war mit neu, nützliches Detail :ok_hand:

Mein Step
{
  "executorflowuniqename" : "",
  "description" : "",
  "name" : "PlentySearchOrders",
  "condition" : "",
  "rank" : 0,
  "active" : true,
  "permaId" : 1,
  "stepprovider" : "PlentySearchOrders@com.synesty.stepesty.plugin.steps.plentymarkets",
  "stepproviderversion" : "5.0",
  "stepProperty" : [ {
    "value" : "SH plentyAPIUser",
    "key" : "account",
    "type" : "IN",
    "datatype" : "ACCOUNT",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "amountType",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "contactID",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "countryID",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "false",
    "key" : "enableCustomerNotes",
    "type" : "IN",
    "datatype" : "BOOLEAN",
    "contextkey" : null
  }, {
    "value" : "false",
    "key" : "enableDocuments",
    "type" : "IN",
    "datatype" : "BOOLEAN",
    "contextkey" : null
  }, {
    "value" : "false",
    "key" : "enableLocation",
    "type" : "IN",
    "datatype" : "BOOLEAN",
    "contextkey" : null
  }, {
    "value" : "false",
    "key" : "enableOrderItems",
    "type" : "IN",
    "datatype" : "BOOLEAN",
    "contextkey" : null
  }, {
    "value" : "false",
    "key" : "enableOrderNotes",
    "type" : "IN",
    "datatype" : "BOOLEAN",
    "contextkey" : null
  }, {
    "value" : "false",
    "key" : "enablePackageNumbers",
    "type" : "IN",
    "datatype" : "BOOLEAN",
    "contextkey" : null
  }, {
    "value" : "false",
    "key" : "enablePaymentInformations",
    "type" : "IN",
    "datatype" : "BOOLEAN",
    "contextkey" : null
  }, {
    "value" : "false",
    "key" : "enableStorageLocations",
    "type" : "IN",
    "datatype" : "BOOLEAN",
    "contextkey" : null
  }, {
    "value" : "false",
    "key" : "enableVariationBarcodes",
    "type" : "IN",
    "datatype" : "BOOLEAN",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "externalOrderID",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "25",
    "key" : "limitItems",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : "limit"
  }, {
    "value" : "",
    "key" : "mappingDefinition",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderCompletedDateFrom",
    "type" : "IN",
    "datatype" : "DATETIME",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderCompletedDateTo",
    "type" : "IN",
    "datatype" : "DATETIME",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderID",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderIdSpreadsheet",
    "type" : "IN",
    "datatype" : "SPREADSHEET",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderInsertDateFrom",
    "type" : "IN",
    "datatype" : "DATETIME",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderInsertDateTo",
    "type" : "IN",
    "datatype" : "DATETIME",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderLastUpdateFrom",
    "type" : "IN",
    "datatype" : "DATETIME",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderLastUpdateTo",
    "type" : "IN",
    "datatype" : "DATETIME",
    "contextkey" : null
  }, {
    "value" : "3.03",
    "key" : "orderStatus",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderStatusFrom",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderStatusTo",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "orderWarehouseID",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "paymentStatus",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "referrerID",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "shippingProfileId",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "",
    "key" : "storeID",
    "type" : "IN",
    "datatype" : "STRING",
    "contextkey" : null
  }, {
    "value" : "[\"1\"]",
    "key" : "type",
    "type" : "IN",
    "datatype" : "STRINGLIST",
    "contextkey" : null
  } ],
  "steptype" : "DEFAULT",
  "uiColor" : null
}

ist egtl ziemlich standard. Filter entfernen ändert nichts, Step neu einfügen zeigt das selbe Ergebnis.

Aaaaber: weil mich das stutzig gemacht hab, hab ich den selben Step mit einem anderen Plenty-Zielsystem ausgeführt, und siehe da: dort geht es :crazy_face:

Die sollten beide auf Plenty stable sein, aber beim einen funktioniert der Filter, und beim anderen nicht.
—> ich trag den Fall mal ins Plenty-Forum und erwähn euch dort

Grüße Daniel

Hallo Daniel,

vielen Dank für die Infos und die Einstellungen des Steps. Bei uns im Testsystem funktioniert es natürlich auch (es kommen keine Positionen).
Meine Vermutung geht aktuell Richtung Benutzer bzw. Benutzerberechtigungen. Wir hatten letzte Woche einen Fall bei einem anderen Plentysystem. Da kamen allerdings von einem Tag auf den anderen gar keine Orders mehr.

Am einfachsten wäre es vermutlich, wenn du mit dem Nutzer/API Token den Request mal im Postman ausführst und die Response vom Abruf an Plenty schickst.

Der Request deines PlentySearchOrders ist:

GET /rest/orders/?orderType=1&addOrderItems=false&with[1]=relation&statusTo=3.03&with[0]=addresses&statusFrom=3.03&itemsPerPage=50&page=1

Falls du keine Möglichkeit hast es im Postman auszuprobieren, kannst du auch gerne den Flow Debug Modus aktivieren und mir den Log per Ticket schicken.

VG Torsten

1 „Gefällt mir“

In Postman kommt dein genannter Request mit OrderItems mit, der deutlich simplere Request https://www.samenhaus.de/rest/orders/980405?addOrderItems=false hingegen ohne

Allerdings hab ich noch einen Ansatzpunkt: unseren Reverse Proxy der die Requests weiter reicht. Muss ich aber noch ein paar Stunden warten bis ich den testweise deaktivieren kann…

Ich berichte drüben :v:

1 „Gefällt mir“

Des Rätsels Lösung war, dass Plenty eine neue Auftragssuche nach und nach ausrollt (und der Filter da kaputt ist). Unser System war schon umgestellt, eures nicht. Wir sind wieder zurück gestellt, das Problem wird gefixt :+1:

1 „Gefällt mir“