Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

using AIF services to query data

$
0
0

Hi,
I am using the following code to query Purchase Orders from AX 2012 R2.

string time = "12/7/2008 08:32:51";
QueryCriteria qc = new QueryCriteria();
CriteriaElement ce = new CriteriaElement();
ce.DataSourceName = "PurchTable";
ce.FieldName = "modifiedDateTime";
ce.Operator = Operator.Equal;
ce.Value1 = time;
CriteriaElement[] cce = new CriteriaElement[1];

cce[0] = ce;
qc.CriteriaElement = cce;
PO = svcClient.find(callContext, qc);

but i am geting the error UTC date\time string is not in the expected format. have anyone tried this and can tell me the correct format?

i can fetch data using other fields but i want to use the modified date time field.

Please Help

Thanks


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>