Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › Dynamic SOQL Queries and Managed Namespaces

    Tagged: Account, Dynamic Query, Namespace, Salesforce Apex, Salesforce Query, Salesforce SOQL, SOQL

    • Salesforce® Discussions

      Dynamic SOQL Queries and Managed Namespaces

      Posted by Piyush on April 30, 2016 at 6:27 PM

      If I create a dynamic SOQL query (via strings, to be used with Database.query) in an unmanaged code environment, and then the code is converted to a managed environment, are namespace considerations taken into account? Or do I need to ensure I've prefixed my managed object names with the namespace of the managed package while assembling the dynamic SOQL query.

      Pramod replied 10 years, 5 months ago 2 Members · 1 Reply
      • Account
      • Dynamic Query
      • Namespace
      • Salesforce Apex
      • Salesforce Query
      • Salesforce SOQL
      • SOQL
    • 1 Reply
    • Pramod

      Member
      May 11, 2016 at 11:10 AM

      You don't need to explicitly consider the package namespace in the dynamic queries, Salesforce itself prefixed the object names with the Namespace of managed package in the Dynamic SOQL.

       

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    Controllers in Salesforce

    The Complete Guide to Controllers in Salesforce

    Blog in Salesforce, Salesforce Products

    Salesforce controllers connect with the database and pull the information from the database to see the information through a page made by the summit page.…

    API, Child Objects, Contact to Account, Controller Extension, Controller Page
    Ayush Sep 22, 2020
    7,474  Views
    Apex Replay Debugger

    Apex Replay Debugger - Salesforce Developer Guide

    Blog in Salesforce Apex

    In this blog, we are going to discuss the apex replay debugger. Before starting the discussion about apex replay debugger let’s learn some basic knowledge…

    Apex Replay Debugger, Call Stack, Create a Project, Debug Logs, Debugger Session
    Shweta Jun 8, 2021
    13,410  Views

    Top Salesforce Winter '23 Service Cloud Features

    Blog in Salesforce Releases

    Now you can provide efficient and flexible services with Salesforce's latest Winter ‘23 expanded set of Service Cloud features. Not only that, you can handle…

    Case Classification and Flows, Connect Salesforce with Slack, Custom Actions, Customer Emails, Customer Issues
    Apphienz Sep 15, 2022
    2,066  Views

    Popular Salesforce Videos

    Introducing the New gRPC-based Pub Sub API | Salesforce Developer Quick Takes

    Introducing the New gRPC-based Pub Sub API | Salesforce Developer Quick Takes

    Video in Salesforce Stories

    Learn about the Pub Sub API, a new gRPC-based API that exposes the power of the Salesforce Event Bus. Discover the technology, its use cases,…

    Salesforce Training, Salesforce Developer, Salesforce Event, Salesforce Video, Salesforce Learning
    Pooja Jul 7, 2022
    1,776  Views
    Salesforce Rest API | Http Methods | Salesforce Integration

    Salesforce Rest API | Http Methods | Salesforce Integration

    Video in Salesforce Integration

    This video we will discuss - What is API Different API In Salesforce Rest API in Salesforce HTTP Request HTTP methods Workbench to make HTTP…

    Salesforce Training, Salesforce Tutorial, Salesforce Integration, Salesforce Rest API, salesforce
    kanika Jan 10, 2022
    2,962  Views
    What are Custom Page Layout in Salesforce?

    What are Custom Page Layout in Salesforce?

    Video in Salesforce Training, Salesforce Admin

    Custom Page Layout is creating its own layout and modifying the same layout which we have created. Watch this video to learn all about Custom…

    Salesforce Administration, Salesforce Online Training, Page Layouts, Custom Fields, Salesforce Courses
    CRS Feb 8, 2022
    2,232  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.