Hi,
I need to create Free Text Invoice from X++ code, as a customize web API will save data in staging table. Then my code will create FTI with the help of given data. In FTI lines we have Project and when from front end we create FTI and select project, it auto put financial dimension for project and the funding source.
I have create FTI by x++ code but its not picking the financial dimension and funding source for project in FTI lines. I need help is there a way we can get these default dimensions? Which are already defined with project and can be auto populated. If there no way then I need to get the project default dismensions and need to create its financial dimension and then use that dimension in line.
But if the wheel is already there then why I need to reinvent it.
So please help. I will post the code which I am using for lines and screen shot for better understanding.
My code is inspired by the following URL ;) but I need some++
Thanks!