Insource Systems
  • Intro
  • Change Log
  • API Reference
  • Insource Bot
    • Getting Started
    • Commands
      • Settings
      • Moderation
      • Info
      • Account
      • InStore
  • InStore
    • Getting Started
      • Linking Your Account
      • Create Your Store
      • Create a Product
    • Framework
      • RemoteEvent
        • Alert
        • LaunchProduct
      • RemoteFunction
        • GetCurrentUser
        • GetProductById
        • GetProducts
        • RequestPromptPurchase
      • Resources
        • Configuration
        • Product
        • Theme
        • User
      • Utils
        • TeleportToAccount
        • TimeStringToEpoch
    • API Resources
      • License
      • Product
      • Store
  • API Resources
    • User
Powered by GitBook
On this page

Was this helpful?

  1. InStore
  2. Framework
  3. RemoteFunction

GetProductById

Get a single InStore product by its ID.

PreviousGetCurrentUserNextGetProducts

Last updated 1 year ago

Was this helpful?

InvokeServer ('GetProductById', ProductId)

Get a single InStore product by its ID. Returns a object, nil if non-existent.

Parameters

Field
Type
Description

ProductId

string

the snowflake id of the product

Example Script

local RS = game.ReplicatedStorage:WaitForChild('InStore');
local RF = RS.Function; --> The InStore RemoteFunction

local Product = RF:InvokeServer('GetProductById', '619608638377562112'); --> Product object
Product