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
          Facade

          Facade

          The facade acts as an interface between the proxies and the application.

          • Facade.isAgentForceAvailable()
            Verifies whether Agentforce is available to use in the Consumer Goods Cloud mobile app.
          • Facade.getBatchSfOnDemandDataAvailabilityAsync()
            Looks for all the Named Fetch Trees within a BatchNftRequest object. Verifies whether the NFTs are available, downloaded, or pending download.
          • Facade.getLastFirstSyncOfDayTimestampAsync()
            Consumer Goods Cloud Mobile App Framework provides a method, Facade.getLastFirstSyncOfDayTimestampAsync, that enables you to get the timestamp of the last successful First Sync of the Day synchronization performed on the device. The timestamp is in the ANSI format (YYYY-MM-DD hh:mm:ss).
          • Facade.launchAgentForce()
            Sends specific context details to the agent dynamically during the Agentforce conversation in the Consumer Goods Cloud mobile app.
          • Facade.putTrackedObjectInTransaction(object description)
            This asynchronous method stores an object change related information in a queue and commits it as part of the next save action triggered by an Consumer Good (CG) Cloud offline mobile app user.
          • Facade.requestBatchNftDataAndWait()
            Performs a bulk named fetch trees (NFTs) request. This method completes after all the requested NFTs are processed.
          • Facade.requestSfDataOnDemandAsync(<nft name>, <array of nft ids>)
            When Consumer Goods offline mobile app is launched, the devices are synced and Consumer Goods Cloud Mobile App Framework automatically checks for and downloads new or modified tracked objects. A BoSfReplicationCallback.requestOnDemandDataAsync method is called to trigger the named fetch tree (NFT) sync. This method retrieves the IDs of all the mandatory NFTs and calls the Facade.requestSfDataOnDemandAsync method to request for NFT synchronization.
          • Facade.requestBatchNftDataAndContinue()
            Performs a bulk Named Fetch Trees request. This method completes immediately and the NFT requests are handled in the backend.
          • Facade.saveTrackedObject(object description)
            This asynchronous method immediately commits the changes to an object when a save action is triggered in the Consumer Goods (CG) Cloud offline mobile app.
          • Facade.selectBatchSQLAsync()
            Performs a bulk SQL select request.
           
          Loading
          Salesforce Help | Article