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");
}


No comments:

Post a Comment

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 ...