Skip to main content

#Salesforce Developer토론 중인 항목 382개

Hi everyone,

I am looking for the best approach in Salesforce to detect a chain of characters or multiple keywords with fuzzy logic. Specifically, I want to identify text patterns that have the same meaning but may not be exact matches. For example, if the text says, "Visit to the next garage is requested", I would also want to detect similar phrases like "A visit to the nearest garage is required" or "Next garage visit needed".

What are the best available options in Salesforce for this? Some considerations:

  1. Apex Code: Are there any built-in Apex functionalities or libraries for fuzzy matching?
  2. Einstein AI/NLP: Would Einstein AI or another NLP service be a better approach for this type of semantic analysis?
  3. SOQL/SOSL: Can SOQL or SOSL be leveraged for fuzzy searches?
  4. Third-Party Integrations: Are there any AppExchange solutions or external APIs that integrate well with Salesforce for this type of text processing?

I'd appreciate any insights or recommendations from the community on the best approach for this use case.

Thanks in advance! 

답변 5개
  1. 오늘 오후 12:49

    Hi @Jean Baptiste, 

     

    Here are my thoughts: 

     1. Apex — no built-in fuzzy/semantic matching. You can have some options for typo-tolerance, but that wont serve the purpose for your example usecases. Apex can be skipped for this. 

    2. SOQL/SOSL

     — SOSL gives you basic fuzzy text search (stemming, wildcards) but won't catch reordered/paraphrased meaning like your examples. Fine for simple "contains this keyword roughly" checks, not for what you're describing. 

    3.  Einstein/NLP — this is the right layer. If data is already in Data360, then creating semantic layers could help. If data is in CRM, i suggest you to try prompt templates that  could classify/compare intent semantically. I personally like Prompt Templates as they are easy to debug and work with. Much less overhead than building your own embedding/cosine-similarity layer.  

    4. AppExchange  — a few text-analytics/NLP AppExchange packages exist but most just wrap external NLP APIs, and supposedly would incure additional costs as well.  

     

    Hope this helps. 

0/9000

When in my dev hub am trying to link the namespace, then getting the error below. The connected app is disabled by Salesforce; that's why I cannot uncheck the PKCE validation. Tried with tooling api also, did not able to do it. 

 

How to link the namespace? Is there any alternate way? 

 

#Salesforce Developer  #Salesforce Admin

답변 4개
  1. 8월 18일 오후 4:23

    Thanks for testing those, Souvik - since browser, My Domain, and admin are all ruled out, that error is almost certainly coming from one specific org-wide setting: 'Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows' in Setup > OAuth and OpenID Connect Settings. 

     

    Here's the trap: you mentioned enabling PKCE there. When that org-wide toggle is on, the org forces a code_challenge on every supported authorization flow - but the internal namespace-linking flow doesn't send one, so it fails with exactly 'missing required code_challenge'. So that setting being enabled is what's breaking the link, not something you're missing. 

     

    The fix: turn that setting off (Setup > OAuth and OpenID Connect Settings) in the org that owns the namespace - and in the Dev Hub too if it's enabled there - then retry the namespace link. Once it's linked, you can switch it back on if you want PKCE enforced for your own apps. Note this org-wide toggle is separate from the greyed-out PKCE box on the Salesforce-managed connected app you can't edit - this one you do control. 

     

    If it's already off and still fails, then it's on Salesforce's side (the managed linking app), and the right path is a Partner Support case referencing the error - it's a managed flow you can't patch yourself. But I'd bet on the org-wide setting; toggle it off and the link should go through. 

     

    Hope that finally clears it! 

     

    And if this resolves it, please mark it as the Best Answer so it helps the next person who hits this - thanks! 🙂

0/9000
Please suggest me the official step to Backup Gmail to PC. So that I can secure my Gmail messages in case I loose access to my Gmail account.
답변 88개
  1. 오늘 오전 11:34

    The SysTools Gmail Backup Tool can be used to back up Gmail emails to your PC and keep a separate local copy. It supports email backup with attachments and allows you to select specific folders, apply date filters, and save the data in formats such as PST, MBOX, EML, MSG, and PDF. This can be useful if you want to preserve your Gmail messages in case you lose access to the account. 

0/9000

In salesforce revenue cloud. I am facing an issue in Cardinality. 

GrandParent Product(Bundle) -> Parent Product (Bundle) -> Child Product. 

I want the cardinality of all the 3 products via CML. 

Is there any possibility? 

 

 

#Salesforce Revenue Cloud  #Salesforce Developer  #Trailhead Challenges  #Trailhead  #TrailblazerCommunity

0/9000

I’m currently trying to create a Managed Package from an enabled Dev Hub Org

, following the  

 

Salesforce documentation for registering a namespace: 

 

https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_reg_namespace.htm

 

However, I consistently receive an error when trying to complete the configuration/create the managed package.

Issue Creating a Managed Package from a Dev Hub Org

 

I would like to understand the following:

  1. Is this error related to the Spring ’26 Connected App changes, specifically the restriction on creating new Connected Apps?
  2. If it is not related, could there be any missing or incorrect configuration in my Dev Hub Org, namespace, packaging org, or user permissions?
  3. Is there any updated Salesforce-recommended process for creating Managed Packages now that new Connected Apps can no longer be created?
  4. Is there an alternative approach or updated documentation that I should follow for creating and managing a package in the current Salesforce release?

I have already enabled Dev Hub

and followed the namespace registration steps in the Salesforce documentation, but I’m still unable to proceed. 

 

 

#Salesforce Developer  #Generation Managed Package

0/9000

 I have a custom LWC where I display the details of a record. When I click Edit Owner, Salesforce opens the standard Change Owner

popup, as shown in the attached screenshot.  

 

I have now created a custom page/LWC with a

Change Owner button. I would like this button to open the same standard Salesforce Change Owner popup directly.

Is there a supported way to invoke the standard Change Owner dialog from a custom LWC button?

I am looking for a solution that opens the standard Salesforce popup rather than creating a custom Change Owner modal myself.

Screenshot:

 

The attached screenshot shows the standard Change Owner popup that I want to open from my custom button.

If this is possible, could someone please provide an example using LWC/Apex/navigation, or explain the supported approach?

How can I open the standard Change Owner popup from a custom LWC button?

 

 

#Salesforce Developer

답변 1개
  1. 오늘 오전 9:43

    Hi @Shubham Kukreti,  

    As far as I know, Salesforce doesn't provide a supported LWC API to directly launch the standard Change Owner modal that appears on record pages.

    The standard dialog is tied to Salesforce's internal UI actions and isn't exposed through NavigationMixin, Lightning Data Service, or Apex.

    Your can try below options:

    • Use the standard Change Owner action on the record page.
    • Navigate users to a standard Salesforce page/action if the object supports it.
    • Build a custom LWC modal that updates the OwnerId field and handles any additional options such as email notifications.

    One thing I'd be interested to know is whether anyone has found a supported navigation pattern similar to standard quick actions that opens this specific dialog. I haven't seen documentation exposing the Change Owner popup directly to custom LWCs.

0/9000

Same agent version behaves differently depending on channel, and I can't find any 

configuration difference to explain it. 

 

SETUP 

- Agentforce Service Agent built in the new Agentforce Builder (Agent Script) 

- One subagent, "Food Order", set as the start_agent 

- It owns one Flow action, "Process Customer Request" 

- Exposed on an Experience Cloud site via Embedded Messaging (Enhanced, Web/WebV1) 

- Routing: Messaging Channel > Omni-Flow > Route Work > Agentforce Service Agent 

- Messaging connection added in Agentforce Builder; its Inbound Routing section 

  correctly shows the Omni-Channel flow as Active 

 

WHAT WORKS — Builder Live Test (same active version) 

  Input > Reasoning: Food Order > Action: Process Customer Request 

        > Reasoning: Food Order > Output Evaluation: GROUNDED 

Returns the customer's real records correctly. 

 

WHAT FAILS — Experience Cloud portal (Channel: SCRT2 - EmbeddedMessaging) 

  Agent Interaction 

    __current_date_time__ 

    Miscellaneous_Category        <- Span: ClassifierStep 

    Reasoning 

    InstructionAdherence: LOW 

    Reasoning 

Subagents column: NOT_SET. No "Available Actions" span. Action never invoked, 

Flow never executes. Because no action is available, the model answers from 

generation only. 

 

REPRODUCED ACROSS 5 VERSIONS — classifier result never changed 

  V35  baseline (Top Agent > Router > Food Order)        Miscellaneous_Category 

  V36  classification description rewritten to explicitly name orders, recent 

       order, order history, order numbers (FO-00003), refunds, chargebacks, 

       returns, payment disputes, cases, Case IDs, support tickets — and to 

       say it must be preferred over general/miscellaneous handling 

                                                          Miscellaneous_Category 

  V37  action output binding changed                      Miscellaneous_Category 

  V38  Router deleted, Food Order made start_agent        Miscellaneous_Category 

  V39  Messaging connection added                         Miscellaneous_Category 

 

ALREADY VERIFIED (so these are not the cause) 

- Flow works: debugged with the portal's own MessagingSession record Id, returns 

  the correct records 

- Agent runtime user permissions, permission set licences, Flow and object access 

- Session > MessagingEndUser > User > Contact > Account resolution works on the 

  portal (authenticated user, correct Contact and Account) 

- Deployment Active, Messaging Channel Active, Omni-Flow Active and pointing at 

  the correct agent, fallback queue set 

- Only one agent version is Active; Einstein Bots is off, so no version pinning 

- No custom LWC components on the chat, no pre-chat field that alters the message 

- Miscellaneous_Category does not appear anywhere in the agent definition and 

  Setup exposes no control to remove, disable or deprioritise it 

 

QUESTIONS 

1. Why does the SCRT2 / Embedded Messaging entry path run a ClassifierStep that 

   selects the built-in Miscellaneous_Category instead of entering the agent's 

   configured start_agent, when the identical version in Builder Live Test enters 

   it correctly? 

2. Is there a configuration requirement for a custom subagent to be selectable by 

   the classifier on this channel that I've missed? 

3. Can Miscellaneous_Category be removed, disabled or deprioritised for an agent? 

4. Is this a known limitation of agents built in the new Agentforce Builder 

   (Agent Script) when deployed to Enhanced Chat V1 / Embedded Messaging? 

 

Has anyone got an Agent Script agent successfully entering a custom subagent on 

Embedded Messaging? 

 

#Salesforce Developer

답변 1개
  1. 오늘 오전 9:18

    Hi Kanchana,

     

    This is one of the most frustrating discrepancies when moving from the isolated testing harness to live channel execution.

     

    Here is the breakdown of why this happens, what Miscellaneous_Category represents, and how to fix it:

     

    Why Builder Test Works While SCRT2 / Embedded Messaging Fails

    • The Test Harness Bypasses the Channel Ingestion Pipeline: In Agentforce Builder Live Test, you are testing in a sanitized, pre-scoped runtime sandbox. The canvas test runner directly feeds your input text into the agent runtime orchestrator with start_agent already instantiated in memory.

     

    • The SCRT2 Intake Pipeline Injects Channel System Metadata: When an inbound message arrives via SCRT2 / Embedded Messaging, Salesforce's runtime prepends channel, transcript, and identity metadata envelopes into the initial LLM prompt payload.

     

    • What Miscellaneous_Category Actually Is: In the underlying Service Cloud Real-Time / SCRT2 classification tier, Miscellaneous_Category (or "General / Uncategorized") is the default intent catch-all evaluated before intent handoff to specialized subagents occurs.

     

    • If the pre-routing classifier cannot determine intent with high statistical confidence—or if the prompt framing triggers ambiguity due to the channel context wrapper—it flags the utterance as Miscellaneous_Category. Because that fallback category owns no actions or subagents, execution gets trapped in root-level generation (Subagents: NOT_SET, InstructionAdherence: LOW).

     

    Direct Answers to Your Questions

    1. Why does it select Miscellaneous_Category?

     

    The initial classifier evaluates the combined message payload and context against topic/subagent descriptions. Because Live Test lacks the SCRT2 wrapper, the raw prompt directly matched your subagent. In live chat, the presence of the channel wrapper diluted the match confidence, tripping the platform's default fallback guardrail.

     

    2. Is there a configuration requirement for custom subagents on this channel?

     

    Yes: Explicit Channel / Topic Scope Definition and Context Mapping. On live channels, if an agent has only one subagent and no broader system scope, the classifier struggles to resolve context. The top-level agent must contain an overarching instruction set that defines the agent's core identity and explicitly delegates execution to the subagent.

     

    3. Can Miscellaneous_Category be removed or disabled?

     

    No. It is a hardcoded system fallback inside the SCRT2/Einstein AI runtime layer designed to prevent an agent from invoking unvetted actions when semantic confidence falls below threshold. You cannot turn it off in Setup, but you can prevent the model from landing in it.

     

    4. Is this a known limitation?

     

    It is a known architectural nuance between the low-level Agent Script runtime and the enhanced channel gateway (SCRT2).

     

    How to Fix It

    Step 1: Elevate Intent Scope to the Top-Level Agent Instructions

    Do not rely exclusively on the description within the subagent. The channel router evaluates the Top-Level Agent Instructions first.

     

    • In your top-level Agent definition, explicitly define the domain boundary:

     

    Step 2: Check Pre-Chat & Transcript Passing in Omni-Channel Flow

    • In your Omni-Channel Flow, inspect the Route Work element.

     

    • Verify if you are passing the input_transcript or Chat Transcript record properly into the Agent input variables. If the routing payload delivers an empty or malformed string on initial handshake, the classifier evaluates an empty prompt, automatically dumping the session into Miscellaneous_Category.

     

    Step 3: Add a Fallback Classification Rule

    If the subagent is still ignored on turn 1, configure a secondary topic or instruction:

     

    • Under your Agent's primary topic instructions, add:
0/9000
Lena Wong 님이 #Trailhead에 질문했습니다

Hi everyone,

I’m experiencing a persistent WebAuthn loop during MFA setup in one specific Salesforce organization, and I’d really appreciate the community’s technical insight into what could be causing the discrepancy.

 

I have two independent Salesforce environments running on the same Windows 11 laptop and using the same browsers (Chrome/Edge). 

 

Org A 

Everything works as expected:

  • When I go to Advanced User Details → Built-In Authenticators → Add, Windows Security displays the native “Sign in with a passkey” prompt.
  • It correctly recognizes the credential for my Salesforce user.
  • The credential is associated with the expected Salesforce domain 
  • I can authenticate immediately using my local Windows Hello PIN.

Org B 

The behavior is completely different:

  • Under Advanced User Details → Built-In Authenticators → Add, Windows Security does not offer the local “This Device” / Windows Hello platform authenticator.
  • Instead, it immediately launches the roaming/cross-platform authenticator flow and displays the Mobile Phone / QR-code prompt.
  • Selecting “Choose a different passkey” or “Save another way” does not expose Windows Hello; it simply returns me to the same QR-code flow.
  • As a result, I am effectively stuck in an unskippable WebAuthn registration loop.

Settings already verified in Org B

I have checked the relevant Salesforce configuration and cannot identify an obvious organizational restriction:

  1. Identity Verification Settings 

    “Let users verify their identity with a built-in authenticator (passkey) such as Touch ID or Windows Hello” is explicitly enabled.
  2. Session Security Level Policies 

    Administrative operations, including Profile and Permission Set management, are configured with

    None for High Assurance session step-up requirements.
  3. Browser extensions 

    The Microsoft Authenticator extension is enabled in both environments, so extension differences do not appear to explain the behavior.

I would appreciate any suggestion as I am running in loops and have always to use my iphone to scan a QR Code because Salesforce is asking me for a passkey. I can not use my PIN in Windows Hello. 

 

@Salesforce Administrators & Developers, @Salesforce Administrators and Developers, @APAC Architects

 

 

#Trailhead  #Salesforce Developer  #Salesforce Admin  #TrailblazerCommunity

답변 3개
  1. 어제 오후 3:58

    Hi Lena, since both orgs are on the same laptop/browser and your Salesforce config in Org B genuinely looks correct, this is very likely a browser/Windows-side caching issue tied to the different origin (domain), not a Salesforce policy difference. A few things worth checking: 

     

    1. Check Windows' own Passkey manager for a stale entry. Go to Windows Settings → Accounts → Passkeys (or Sign-in options → Passkeys). Look for any existing entry tied to Org B's domain — even a partial/failed registration attempt from earlier can cause Windows to skip the "create new" platform flow and jump straight to the cross-device/roaming flow instead. Delete any entry there for Org B's domain, then retry from Salesforce. 

     

    2. Clear the browser's per-site permissions for Org B's domain. Chrome/Edge cache a "last used transport" preference per relying-party origin. In Chrome: Settings → Privacy and security → Site settings → search for Org B's domain → Clear data/reset permissions. This forces the browser to re-evaluate available authenticators instead of defaulting to whatever you (or a prior session) picked before. 

     

    3. Confirm Org B's My Domain is fully deployed, not just the default login URL. WebAuthn ties credentials to the Relying Party ID (essentially your domain). If Org B is still on a default/undeployed domain or recently changed its My Domain, the RP ID Salesforce sends can differ from what you'd expect, which changes how the browser matches existing/available authenticators. 

     

    4. Try a fully fresh browser profile/incognito window against Org B only, to rule out any extension (you mentioned Microsoft Authenticator extension is on in both — try disabling it just for this test) or cached state interfering specifically with that origin. 

     

    5. As a last resort, use "Disconnect a passkey that isn't working" from your Salesforce personal settings (Advanced User Details → Built-In Authenticators → Del on any existing/broken entry for Org B), then try Add again from a clean state. 

     

    If none of that breaks the loop, this is worth escalating to Salesforce Support directly with both orgs' IDs — a same-device, same-browser, config-identical discrepancy between two orgs isn't something Setup-level settings can explain, and Support can check server-side registration options (like exclude-credential lists) that aren't visible from the UI. 

     

    Reference:

    https://help.salesforce.com/s/articleView?id=005390721&language=en_US&type=1

0/9000

Hi Salesforce Community,

I'm currently exploring Salesforce Agentforce licensing and am trying to better understand the difference between Metered and Unmetered licenses.

From the documentation and various discussions, I understand that both licensing models support Agentforce capabilities, but I'm looking for more practical guidance on when each model should be used.

Specifically, I'd appreciate clarification on the following:

  1. What exactly is considered a "metered" interaction or consumption in Agentforce?
  2. How does Salesforce measure usage under a Metered License (conversations, actions, tokens, requests, etc.)?
  3. What are the limits and cost implications of Metered Licensing?
  4. How does an Unmetered License work in comparison?
  5. Are all Agentforce features available under both licensing models?
  6. What are the recommended use cases for choosing Metered vs. Unmetered licensing?
  7. For a scenario with:
    • Internal Employee Agents
    • Customer-facing Service Agents
    • High-volume automated interactions
  8. Which licensing model would be more cost-effective?
  9. Is there any way to monitor or forecast Agentforce consumption before deciding on a licensing strategy?

If anyone has real-world implementation experience, licensing guidance from Salesforce, or lessons learned from customer deployments, I would greatly appreciate your insights.

Thanks in advance! 

 

#Agentforce #SalesforceAI #SalesforceArchitect #Salesforce Developer #Salesforce Admin

답변 2개
  1. 오늘 오전 7:53
    •  Metered: Agentforce usage is charged based on consumption; for agentic usage, the main unit is generally actions, not simply tokens or conversations.  
    • Flex Credits: A standard Agentforce action currently consumes 20 Flex Credits, while custom actions are also measured by the number of actions called. 
    • Unmetered: Certain licensed users/features can use qualifying Agentforce capabilities without consuming Flex Credits, when the required licensing, permissions, and execution conditions are satisfied. 
    • Important: “Unmetered” does not mean everything in the agent is free; underlying services such as Data 360 can still consume credits. 
    • Employee Agents: Agentforce add-ons provide unmetered Agentforce usage for employees; the Agentforce User License, by contrast, provides metered employee usage and requires Flex Credits. 
    • Customer-facing Agents: Salesforce currently offers both Flex Credits (pay per action) and Conversations (pay per conversation) for customer-facing agents. 
    • High-volume usage: Consumption-based pricing makes the cost depend on actual usage, so action/conversation volume and the specific features used need to be estimated rather than assuming one fixed cost. 
    • Monitoring: Use Digital Wallet to monitor Agentforce consumption and usage in the org. 
    • Forecasting: Salesforce recommends reviewing actual Digital Wallet consumption and working with your Salesforce Account Executive for contract-specific pricing and usage estimates. 
    • Bottom line: Metered = pay according to usage; Unmetered = qualifying usage included through specific licenses/permissions. Which is more cost-effective depends on your users, volume, features, and contract—not simply whether the agent is internal or external. 

    Also, go through the doc it helps you--->

     Agentforce and Generative AI Usage and Billing | Salesforce Help

      

    Considerations for Agentforce Employee Agent | Salesforce Help

      

    Metering for Agentforce and Generative AI Usage | Salesforce Help

      

    Salesforce Agentforce Pricing | Salesforce 

0/9000

Hi,

We currently manage municipalities as Accounts and elected officials as Contacts, with their roles, start dates, and end dates tracked through Account Contact Relationships. Every four years, we add new contacts and update existing records to reflect election changes.

Is there an app available on the Salesforce AppExchange (or marketplace) that can help manage this process more efficiently? If anyone has experience with a similar setup or can recommend a solution, your guidance would be greatly appreciated.

Thank you! 

 

#Salesforce Developer

답변 1개
  1. 9월 17일 오후 5:01

    Hi @Uma Kotha

     

    You can explore KnowWho for Salesforce, which provides elected official and staff contact data within Salesforce.

    For tracking roles, term start/end dates, and election-cycle changes, you could also consider creating a custom Election Term object related to Accounts and Contacts, with Salesforce Flow to automate updates.

    🔗 KnowWho for Salesforce

    Please verify whether KnowWho supports your specific term-management requirements.

    Hope this helps!  

     If you find this response helpful, please mark it as the Accepted Answer, as it may also help other Trailblazers. 😊 

0/9000