RE: eConnect: user defined fields
Sorry for being not clear enough in my earlier message!
My requirement is not specific to user defined fields.
My requirement is basically which I raised in other query: https://community.dynamics.com/gp/f/32/p/233196/637659#637659
We sync the entities from GP to and fro our application.
So for example if we sync a bill from GP to our application, the bill have the VCHRNMBR which is unique.
And say if a bill is syncing from our application to GP the bills are stored in the batch and later user may post a bill.
For normal bills (Purchasing->Transaction Entry) when we sync a bill from our application to GP, we get the nextVoucherNumber (using the stored procedure: taGetPMNextVoucherNumber) and set it in the taPMTransactionInsert VCHNUMWK field and we save this voucher number in our application DataBase as well.
Now we are implementing the POP invoice sync in our application.
So when we create a POP invoice in our application, we are syncing the bill to GP using taPopEnterMatchInvHdr and taPopEnterMatchInvLine_ItemsTaPopEnterMatchInvLine.
Here the API do not have a facility to set the nextVoucherNumber in these nodes.
So our application DB will not have the reference of this bill.
So what I was trying to do is:
if there is a column where I can set some value from our DB and later when the user posts the bill, if this column value is persistent (in PM20000 table) we can take the reference and send back the VCHRNMBR to our DB.
Hope this is now clear..