Loading
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
          Add Data to the Generate Receipt Step (Managed Package)

          Add Data to the Generate Receipt Step (Managed Package)

          For the managed package runtime, the Messaging Framework of the Generate Receipt step stores the data format for the selected device. For the example, only the DeviceName is a merge field. The remaining values are hard-coded.

          Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

          1. Click the Generate Receipt step.
          2. In the Messaging Framework properties for the step, make sure the Window postMessage, Pub/Sub, and Session Storage boxes are checked.
          3. Add the following Message Key/Value pairs:

            Key

            Value

            eventName

            purchase

            currencyCode

            USD

            eventAction

            purchase

            category

            Ecommerce

            action

            Purchase

            transactionId

            T-%DeviceName%

            couponCode

            JUNE_SALE

            quantity

            1

            shipping

            19.9

            tax

            17.35

            revenue

            736.25

            productDetails

            (leave blank)

          4. Open the JSON Editor and replace the null value or empty quotes after the productDetails node with the following JSON array:
            [
              {
                "name": "%DeviceName%",
                "price": 699,
                "brand": "Apple",
                "category": "Mobile",
                "variant": "Black",
                "list": "Search Results",
                "quantity": 1,
                "shipping": 19.9,
                "tax": 17.35,
                "revenue": 736.25
              }
            ]
          5. Exit the JSON Editor.
          6. Click Activate Version.
           
          Loading
          Salesforce Help | Article