PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 5/13/2020 11:19 AM by  Will Strohl
Which API function returns the promotion product
 5 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages





Basic Member






--
7/6/2019 9:20 AM
    Hi
    Can any one tell me which API function returning the promotion products information

    Regards





    Veteran Member






    --
    7/6/2019 3:42 PM
    [quote=RB;1157]
    Can any one tell me which API function returning the promotion products information
    [/quote]

    What information are you specifically hoping to see returned? Maybe an example could help. :)
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    7/13/2019 11:11 AM
    [quote=Will Strohl;1158][quote=RB;1157]
    Can any one tell me which API function returning the promotion products information
    [/quote]

    What information are you specifically hoping to see returned? Maybe an example could help. :)[/quote]

    I already read the list of promotion items by sql table thanks





    Veteran Member






    --
    7/25/2019 2:05 PM
    I wouldn't recommend directly querying the database in any third-party application. The database is never part of the API and is subject to breaking changes during any and all upgrades.

    When this happens, it not only makes the application look bad, but oftentimes also the developer(s) involved - causing the organization to question why they used either in the first place. This scenario becomes dangerous and costly very quickly for all parties.

    Alternatively, it's always better to use whatever API options are available.
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    5/12/2020 6:09 PM
    I already change it from the db to the API it's by the help of the following code and it's working fine thanks

    var HccApp = HccAppHelper.InitHccApp();
    var all_featuredProducts = HccApp.CatalogServices.Products.FindFeatured(1, 50000);
    var listResult = all_featuredProducts.AsEnumerable().OrderByDescending(i => i.CreationDateUtc).Take(3).ToList();
    You are not authorized to post a reply.
    Page 1 of 212 > >>


    Loading
    • Sign-up for the Hotcakes Community Newsletter: