Skip to main content

soql-for-view-and-for-reference

Use when a SOQL query that serves a custom record-viewing surface (custom LWC/Aura/Visualforce page, mobile app, or API client) must make the retrieved records show up in the user's Recent Items and global-search auto-complete by writing LastViewedDate / LastReferencedDate and a RecentlyViewed row via the optional FOR VIEW / FOR REFERENCE clauses. Covers which clause to pick, correct grammar placement, the misuse warning, the RecentlyViewed 90-day / 200-per-object lifecycle, and the custom-object custom-tab prerequisite. NOT for standard Lightning record pages (the platform already writes recency there), NOT for FOR UPDATE row locking (see record-locking-and-contention), NOT for reading recent records with USING SCOPE mru (that is the read side — see soql-using-scope-clause), and NOT for general SOQL grammar (see soql-fundamentals).

الانتقال إلى التثبيت

معلومات المصدر

المستودع
PranavNagrecha/AwesomeSalesforceSkills
آخر نشاط في المصدر
٨ يوليو ٢٠٢٦ في ٢٢:١٢
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
١١
التفرعات
٣

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.