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

Update Customer Status

$
0
0

Hi Guys,

I have a request that I need to update the customer's Classification Id to " Inactive " through a job if below three conditions are met.

1. There is no record exists in the table ForecastSales with this customer for the last 12 months ( we have fields end date and start date in this table)

2. There is no open orders for this customer Account in the sales table

3. There is nothing invoiced to this customer account for the last 12 months 

how can I check these conditions and update the customer status  through X++ Code.

Thanks in Advance.


Viewing all articles
Browse latest Browse all 175888

Trending Articles



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