Hi,
I have an issue regarding the custom attributes that I added in SalesLine. When I am using Query, it was not included the custom attribute when I run the queryRun.
Here is the Sample Code.
-Entity [SalesLine]
- SalesOrderType // Custom Attributes.
----------------------------------------------------------------------------------------------------------------
Sample Code:
Query query;
Query queryRun;
QueryBuildDataSource qbds;
query = new Query();
query.alloCrossCompany(true);
qbds = query.addDataSource(tablenum("SalesLine"));
qbr = qbds.addRange(fieldNum(SalesLine,SalesId));
qbr.value("= SO00001");
queryRun = new Query(query);
while(queryRun.next())
{
SalesLine line = queryRun.get(tablenum(SalesLine));
if(line)
{
var salesorderType = line.SalesOrderType;
}
}
Thank you for your reply.
Regards,
CJ