Tuesday, June 30, 2015

Code for inserting 10 records in a table for an integer field and string field through the job

static void shiv_autoincrement2(Args _args)
{
 auto_s autoinc;
    int i;
    int j;
    int k;
    int l=1;
    str alpha;
    ;
    j=97;
    for(i=1;i<=10;i++)
    {
        autoinc.Autoid=i;
        for(k=0;k<i;k++)
        {
        alpha+=num2char(j);
        }
        autoinc.autoname=alpha;
        alpha="";
        j++;
        autoinc.insert();
    }
    info("inserted");
}


Thursday, June 25, 2015

code for inserting 10 records at a time with auto increment via job in a table

static void shiv_autoincrement(Args _args)
{
    auto_s auto; //table declaration
    int i ;
    ;
     for(i=0;i<=10;i++)

    {
        auto.Autoid=i; //inserting “i” value to the field “Autoid”
        auto.insert();
        info("inserted");
    }


}




Export a copy of the standard user acceptance testing (UAT) database

 Reference link: Export a copy of the standard user acceptance testing (UAT) database - Finance & Operations | Dynamics 365 | Microsoft ...