Thursday, April 4, 2019

How to get the primary table from Data Entity in D365F&O

Overview - How to get the primary table from an entity in D365F&O

 public static TableName getPrimaryTable(TableName _tableName)
    {
        TableName                       tableName;
        Query                               q;
        QueryBuildDataSource   dataSource;

        DictDataEntity dictEntity = new  DictDataEntity(tableName2Id(_tableName));
        if (dictEntity)
        {
            q = dictEntity.query();
            if (q.dataSourceCount() >= 1)
            {
                dataSource = q.dataSourceNo(1);
                if (dataSource)
                {
                    tableName = tableId2Name(dataSource.table());
                }
            }
        }
         
        return tableName;
    }

And if we need all tables from the data entity, we can loop the data source count.

#D365F&O #AX #Entities

10 comments:


  1. I have gone through your post and came to know that it is regarding the illusion of control. But this concept is not at all clear to me. I would like to know more on this topic. Please provide itjogos friv gratis 2019
    Jogos 2019
    jogos friv

    ReplyDelete
  2. I had HIV I was told there was no cure except medication that can control it, I totally lost hope, all I could think was losing my life because I was so depressed and confused about the whole situation , few weeks ago I read about Dr Ojie natural herbal medicine which was guaranteed, I ordered the medicine after using it for 2 weeks I went for test and I tested negative I am so excited to share my testimony thank you so much dr Ojie you can also contact dr Ojie via WhatsApp or call +2349015357322 Email doctorojie1@yahoo.com Dr ojie also have medications for, Kidney failure ,Herpes 1/2, CANCER, ALS (Lou Gehrig’s disease), Hepatitis A/B, chronic pancreatitis, Emphysema, COPD (Chronic , Obstructive Pulmonary Disease), asthma, Acute angle-closure Glaucoma, Diabetes, CHRONIC PANCREATITIS thanks everyone God bless.

    ReplyDelete
  3. I was diagnosed as HEPATITIS B carrier in 2013 with fibrosis of the
    liver already present. I started on antiviral medications which
    reduced the viral load initially. After a couple of years the virus
    became resistant. I started on HEPATITIS B Herbal treatment from
    ULTIMATE LIFE CLINIC (www.ultimatelifeclinic.com) in March, 2020. Their
    treatment totally reversed the virus. I did another blood test after
    the 6 months long treatment and tested negative to the virus. Amazing
    treatment! This treatment is a breakthrough for all HBV carriers.

    ReplyDelete
  4. I've been treating herpes virus for several years with different medications until I saw a post on how a young lady got cured from herpes, Out of desperation I decided to contact him with little or no hope of a solution after taken his herbal medications reluctantly to my biggest surprise I tested negative, God bless you Dr ubarlo drubarlohome@gmail.com or Whatsapp +2348119508814 for his wonderful work

    ReplyDelete
  5. MY HIV HEALING TESTIMONY

    My mouth is short of words, i am so happy because Dr voodoo has healed me
    from HIV which i have been suffering from the past 5years now, i have
    spend a lot when getting drugs from the hospital to keep me healthy, i have
    tried all means in life to always i can become HIV negative one day, but
    there was no answer until i found Dr voodoo the parish of African who
    provide me some healing herbs that i uses , now i am glad telling everyone
    that i am now HIV Negative, i am very happy, thank you Dr voodoo for
    helping my life comes back newly without any form of crisis, may the good
    lord that i serve blessed you Dr voodoo and equip you to the higher grade
    for healing my life. i am so amazed. so i will announced to everyone in
    this whole world that is HIV positive to please follow my advice and get
    healed on time, because we all knows that HIV disease is a deadly
    type,contact Dr voodoo for your HIV healing herbs today at:
    voodoospelltemple66@gmail.com He will be always happy to assist you
    online and ensure you get healed on time, contact Dr voodoo today for
    your healing hearbs immediately, you can also
    add him on whatsApp +2348140120719 thank you sir.

    ReplyDelete
  6. Greetings to the general public, I want to tell about how I was cured of
    HIV disease by a Doctor called Dr. voodoo . I was browsing the Internet
    searching for remedy on HIV and I saw a comment of people talking about how
    Doctor voodoo cured them. I was scared because I never believed in the
    Internet but i was convince to give him a try because i having no hope of
    been cured of HIV so I decided to contact him with his email that was
    listed on the comment voodoospelltemple66@gmail.com when I contacted
    him he gave me hope and send a Herbal medicine to me that I took and
    it seriously worked for me, am a free person now without problem,
    my HIV result came out negative. I pray for you Dr. voodoo God will give
    you everlasting life, you shall not die before your time for being sincere
    and great men. Am so happy, you can also contact him if you have any
    problem Email: voodoospelltemple66@gmail.com
    or Add him up on WhatsAp +2348140120719

    ReplyDelete
  7. I never thought i would be HIV negative again after been diagnosed in 2017, i have tried everything possible in life from one doctor to another, one hospital to another, series of tests, different kinds of medication, i had already lost hope until i meet Great Dr. OSAGIE online testimonies, a specialist in herbal medication from Africa, i contacted him (drosagiesolutiontemple@gmail.com OR DROSAGIESOULTIONTEMPLE@YAHOO.COM) and he prepared HIV herbal medication for me which i took for 14days and now i am completely cured. i want to use this medium to express my gratitude to him for saving my life and curing me from HIV, for taking away all my pains and sorrows, I''m indeed grateful and i am so happy I''m now HIV negative. i will continue to tell the good news of your great works to everyone, if you have HIV or other disease contact him, Email: his email: (drosagiesolutiontemple@gmail.com OR DROSAGIESOULTIONTEMPLE@YAHOO.COM ) or Whatsapp number: +2347030465649 DOCTOR OSAGIE CAN AS WELL HELP THE FOLLOWING PROBLEMS
    1. HIV/AIDS SPELL
    2. HERPES CURE OF KIND
    3. CANCER SPELL
    4 IF YOU WANT YOUR EX LOVER BACK SPELL
    5 IF YOU NEED A BABY SPELL him to solve
    6 LOW SPERM COUNT SPELL get all your problem solve. No problem is too big for him to solve.

    ReplyDelete
  8. My name is Olisa Blessing, I am so happy. I never believe I will be this happy again in life. I have worked as an air hostess ( cabin crew ) for 3years but early this year, I lost my job because of this deadly disease called Herpes virus (HSV). I never felt sick or notice any symptoms. Not until the day all workers were asked to bring their doctors report card, that was how I got tested and I found out that I'm HSV positive and that made me lose my job because it was considered as an STD and is an incurable disease. I was so depressed that I started thinking of suicide.
    I explained my situation to an older friend of mine, who often said to me 'a problem shared is a problem half solved. She felt so pity for me that she referred me to Dr. Utu Herbal Cure, that was how I contacted Dr. Utu and got the medication from him and was cured for real.
    I went back to my work a month later with another HSV negative test result and they carried out another test to be very sure and they found out I am herpes negative.
    Finally, the initial result was replaced with the new HSV negative test results and my position was reclaimed backc to me with an apology letter and a salary increase.
    Beware of impersonators,
    Dr. Utu can only be reached at:
    drutuherbalcure@gmail.com

    ReplyDelete
  9. I’d recommend using Dr. Utu Herbal Cure topically for instant pain and itch relief as well as accelerated healing of lesions and permanently stopping oral and genital herpes virus outbreaks. I have tried just about everything from acyclovir suppressive therapy to different natural oils, extracts, and other natural methods, some of which are EXTREMELY painful and exacerbate the problem (i.e. apple cider vinegar!). While vitamin E oil and suppressive therapy worked well for me, when I became pregnant I went back to trying to find a herbal cure. I was using vitamin E oil topically for a while but it was thin and difficult to use and only seemed to prevent further outbreaks rather than getting rid of it. I contacted Dr. Utu Herbal Cure through my friend. To my surprise, I could tell my outbreak was starting to heal within only a few hours! No more itching or pain! Dr. Utu Herbal Cure that I used was liquid herbs in bottles, so it was very easy to use. It simply whiffs, but it works so I don’t care! The best part is I successfully delivered a herpes-free beautiful daughter without further medication. Anyone who’s tried Dr. Utu Herbal Cure knows just how quickly those treatments can add up. So give it a go! Anyone can reach Dr. Utu through drutuherbalcure@gmail.com
    +2349072733661.

    ReplyDelete
  10. I have been suffering from (HERPES) disease for the last four years and had constant pain, especially in my knees. During the first year, I had faith in God that I would be healed someday.This disease started to circulate all over my body and I have been taking treatment from my doctor, a few weeks ago I came on search on the internet if I could get any information concerning the prevention of this disease, on my search I saw a testimony of someone who has been healed from (Hepatitis B and Cancer) by this Man Dr. Silver and she also gave the email address of this man and advise we should contact him for any sickness that he would be of help, so I wrote to Dr. Silver telling him about my (HERPES Virus) he told me not to worry that I was going to be cured!! hmm i never believed it,, well after all the procedures and remedy given to me by this man few weeks later I started experiencing changes all over me as the Dr. assured me that I have cured, after some time i went to my doctor to confirmed if I have been finally healed behold it was TRUE, So friends my advice is if you have such sickness or any other at all you can email Dr. Silver (drsilverhealingtemple@gmail.com) sir I am indeed grateful for the help I will forever recommend you to my friends!!! with your lovely Email Address ( drsilverhealingtemple@gmail.com you can contact him also on whatsapp +2348120513902

    ReplyDelete