Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          isSfOnDemandDataAvailabilityAsync(nftName, objectId)

          isSfOnDemandDataAvailabilityAsync(nftName, objectId)

          Checks the download status of a Named Fetch Tree (NFT).

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Parameters

          nftName: Name of the named fetch Tree. For example, NFT_Attachment/NFT_Job_Definition_List/NFT_Product_Assortment/NFT_Call_Attachment.

          objectId: The root ID for the NFT.

          Returns

          • result(promise): The API returns a promise. In case an error occurs, the promise is rejected. The result contains a boolean value (True/False).
          • If the record information isn’t available, the promise is resolved with a boolean false.

          Example

          
          Facade.isSfOnDemandDataAvailableAsync("NFT_Attachment", "0010Y00000HUYBsQCP").then(function (state) {
                               console.log("state="+state);// retuens one of : {true, false}
                    }, (error) => {
                               console.log("error="+error);
                    });
          
           
          Loading
          Salesforce Help | Article