웹 서비스 API에서 특정 속성을 검색 할 수 있는지 궁금합니다. 내보내기 할 때 IN202500.AttributesAttributes.Value
을 시도했지만 인벤토리의 모든 속성을 나열했습니다. 나는 또한 속성이 테이블에 [AttributeName] _Attributes 인벤토리 테이블에 저장되어 있음을 발견했습니다. 검색하는 방법이 있습니까? Acumatica API의 StockItems에서 특성 필드를 검색하는 방법?
이
내가IN202500Content IN202500 = context.IN202500GetSchema();
context.IN202500Clear();
Command[] oCmd = new Command[] {
IN202500.StockItemSummary.ServiceCommands.EveryInventoryID,
IN202500.StockItemSummary.InventoryID,
IN202500.StockItemSummary.Description,
IN202500.StockItemSummary.ItemStatus,
IN202500.GeneralSettingsItemDefaults.ItemClass,
IN202500.GeneralSettingsItemDefaults.LotSerialClass,
new Field {
ObjectName = IN202500.StockItemSummary.InventoryID.ObjectName,
FieldName = "BARCODE_Attributes"},
new Field {
ObjectName = IN202500.StockItemSummary.InventoryID.ObjectName,
FieldName = "DfltReceiptLocationID"},
new Field {
ObjectName = IN202500.StockItemSummary.InventoryID.ObjectName,
FieldName = "LastModifiedDateTime"}
};
Filter[] oFilter = new Filter[] {
new Filter
{
Field = new Field {
ObjectName = IN202500.StockItemSummary.InventoryID.ObjectName,
FieldName = "LastModifiedDateTime"},
Condition = FilterCondition.Greater,
Value = SyncDate
}
};
String[][] sReturn = context.IN202500Export(oCmd, oFilter, 0, true, false);
그러나 반환 속성 필드는 빈 문자열 (는 속성을 검색 할 기대) 사용하고있는 코드입니다. 감사합니다, G
나는 매우 비슷한 것을 가지고 있지만 Attribute 필드는 문자열 배열에서 비어 있습니다. 또한, 나는 새로운 IN202500.Field (또는 IN202500.Value)를 할 수 없으며, 그냥 새로운 필드 또는 새로운 값으로 이동하지만 중요한 것은 아닐 것입니다. (데이터를 검색 할 수 있기 때문에 - 속성 제외) – GaGa
초기 게시물에서 실행 한 코드를 게시했는데 내가 잘못한 것을 말해 줄 수 있습니까? – GaGa
@Gavin 코드로 테스트 한 결과, 내 측면에서 잘 작동합니다 (BARCODE를 COLOR 속성으로 대체하여 DB와 일치). – Gabriel