Create financial dimensions by X++

Hi All,

I want to know the way to create new custom financial dimension in General Ledger > Financial Dimensions > Financial Dimensions by using X++. I have a task to create new Financial Dimensions, but when I tried to create new record in DimensionAttribute table, it isn’t work. Can anyone give me an example for this.

You might not have filled some of the required fields correctly.
I would create one manually and check and how it is been inserted into DimensionAttribute table.