Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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 9 years, 8 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

    application solution

    Popular Salesforce Blogs

    Injection Attacks

    Prevent Cross-Site Scripting and Injection Attacks | Salesforce Developer Guide

    Blog in Salesforce Stories

    What Are External Attacks?  Outer assaults happen when somebody outside your association's frameworks figures out how to acquire passage to exact harm. There are numerous…

    Apex Weaknesses, Application, Archive Object Model, Business Data, Classified Data
    MOHIT Jul 6, 2021
    10,113  Views
    Reporting Snapshots

    Defining Reporting Snapshots | Salesforce Guide

    Blog in Others, Salesforce

    A reporting picture helps you to record historic records. Authorized customers can keep tabular or summary document outcomes to fields on a custom object, then…

    API Versions, Aura Components, Custom Item, Custom Item's Fields, custom object
    Anjali Apr 27, 2021
    6,398  Views

    Working with Files in Salesforce

    Blog in Others

    Most data in Salesforce is stored as records in the Salesforce database for your organization (technically, Salesforce uses a multi-tenant architecture that uses a combined…

    Data Access, File Sharing, Files, Salesforce Cloud, Salesforce Data
    PowerUser Apr 17, 2019
    28,042  Views

    Popular Salesforce Videos

    Salesforce Field Service Scheduling Optimization | AblyPro Webinar

    Salesforce Field Service Scheduling Optimization | AblyPro Webinar

    Video in Salesforce Field Service Platform

    Revolutionize and Level Up Your Game in Services Business With Field Service With Salesforce Field Service on your side, businesses can reduce travel time, improve…

    Salesforce Training, Salesforce Tutorial, Salesforce Webinar, Salesforce Video, Salesforce Field Service
    AblyPro Oct 11, 2023
    962  Views
    Control Access to the Org | Data Security | Salesforce

    Control Access to the Org | Data Security | Salesforce

    Video in Salesforce Security

    In this video, wonder Studies explains how to control access to your Salesforce org and the data security measures you can take to protect your…

    Salesforce Training, Salesforce Tutorial, Salesforce Security, salesforce, Salesforce Org
    Mayra Nov 1, 2022
    1,640  Views
    How Users Set Up Einstein Activity Capture | Salesforce Tutorial

    How Users Set Up Einstein Activity Capture | Salesforce Tutorial

    Video in Salesforce Einstein, Salesforce Training

    Say goodbye to busy work. Say hello to smarter selling. When you connect your email and calendar to Salesforce with Einstein Activity Capture, their email…

    Salesforce Training, Salesforce Tutorial, Salesforce Records, salesforce, Salesforce Video
    Abhishek Feb 9, 2021
    6,355  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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.