Default Dimension Value

static void DefaultDiemsion(Args _args)
{

    DefaultDimensionView        ddv;

        select NAME,DISPLAYVALUE from ddv
            where ddv.DefaultDimension == 5637151332 // defaultdimension is the dimensionid
                    && ddv.Name == 'Department';   /// cost code is the default dimension  as Department, costcenter
    {
        info(ddv.DisplayValue);
    }


}

Comments

Popular posts from this blog

Create RFQ through X++

Base enum values in Dynamics 365

Project Id through X++ code