how to write x++ code to get the ProjId from ProjControlPeriodTable for those the Purchase Requisition has been created in PurchReqTable using x++ code in D365fo
I have create a custom Form where i brings all records from ProjControlPeriod Form with Range Estimate Status should be in Created Status,
but for this form i need one filter more that it's filter those ProjId , for those the Purchase Requistion has been created ,
I found the relation
ProjControlPeriodTable.ProjIdNew = ProjTable.ProjId
ProjTable.ProjId = PurchReqTable.PurchId
But in my case we don'nt use projidnew field , so we can't use this realtion
Can please suggest me the x++ code to get the ProjId , for those the Purchase Requistion has been created.
Thanks
Sam D.