Skip to main content

#LWC35 人がディスカッション中

Hello Guys, 

 

I am using accApi and trying to open an agent from LWC but facing issue as the agent is not opening only the agentforce window is opening - after that as i select the agent -conversation starts. 

 

So basically in the lwc  : 

1. i am calling   --  import { open, execute, close } from 'lightning/accApi';  

2. and after getting the agent id from my apex class i doing below :  

 

           

await open(this.resolvedBotId); // i am getting the id from apex.

            console.log('Agent panel opened successfully.');

            const utterance = "Start";

            await execute(utterance, this.resolvedBotId);

            console.log('Agent successfully invoked with utterance:', utterance);

 

But i can open the agent window but proper agent is not selecting. 

 

#Agentforce  #LWC  #AgenticAI

6 件の回答
  1. 9月11日 16:28

    @Manas Datta

     

     

    Thanks for testing that - a correct id still landing on the bare panel actually rules the id out and points to an enablement gap. open() drives the SAME native Agentforce side panel you'd get manually, and botId is only optional targeting - if that agent isn't the one wired to the panel for your running user, open() falls back to the default panel/picker no matter which id you pass. 

     

    Quick way to confirm: open the native Agentforce panel manually (the Agentforce icon, not your LWC). If it also drops you on a picker or the wrong agent, it's the setup, not your code - check the agent is Active, is the one enabled for the Agentforce panel in that org, and your running user has access to it (permission set + the agent's assigned users). Fix that and open(botId) will land on it. 

     

    If you need a specific agent guaranteed every time regardless of the panel, skip accApi and use the Agent API instead (Connect REST /einstein/ai-agent, or its Apex wrapper): you start a session against the exact agent id server-side and render the replies in your own LWC chat UI - no panel, no picker, fully deterministic.

0/9000

🎥 I've started a YouTube channel — SalesforceDevDaily! 

 

Sharing the concepts, hacks, and lessons I've learned working as a Salesforce Developer — Apex, LWC, and real project tips. 

Channel Link:-

https://youtube.com/@salesforcedevdaily?si=33wpFFurKxhWvBEI

 

 

Subscribe and let's learn together! 🚀 

#Salesforce #Apex #LWC #Trailblazer

4 件のコメント
  1. 9月11日 13:47

    Congratulations on starting SalesforceDevDaily! 🎉 This is a great initiative, especially for developers looking to strengthen their Apex and LWC skills with practical, real-world insights. 

    Looking forward to learning from your content and seeing the upcoming videos. Wishing you lots of success with the channel! 🚀👏 

0/9000
junran jiao が「#Salesforce」で質問

Google Chrome を使用した際に、ボタンのスタイルに実線の枠が表示されるのですが、どのように解消すればよいでしょうか。 

Google Chrome を使用した際に、ボタンのスタイルに実線の枠が表示されるのですが、どのように解消すればよいでしょうか。

 

 

 

#Salesforce  #LWC  #Trailhead

1 件の回答
  1. 9月7日 16:07

    こんにちは、 

     

    これは公式のSalesforceドキュメントで確認できた事例ではありませんが、画像のパターンから判断すると、ページのCSS(スタイルシート)が正しく読み込まれず、ブラウザのデフォルトスタイルが表示されている可能性が高いです。「ユーザー名」「パスワード」が実線で囲まれた形で表示されるのは、HTMLの<fieldset><legend>要素にCSSが適用されない場合のブラウザ標準(未装飾)表示によく見られるパターンです。 

     

    確認・対処方法: 

    1. シークレットウィンドウ(Ctrl+Shift+N)で同じログインページを開いて再現するか確認 — 拡張機能やキャッシュの影響を切り分けられます。 

    2. Chrome拡張機能(特に広告ブロッカー、翻訳ツール、WhatFixなどの業務用拡張機能)を一時的に無効化して再読み込み — 拡張機能がページのCSS読み込みを妨げているケースが報告されています。 

    3. ブラウザのキャッシュとCookieをクリアしてから再読み込み。 

    4. 会社のプロキシ/セキュリティソフトが外部CSSリソースをブロックしていないか、社内IT部門に確認(企業ネットワーク環境でよくある原因です)。 

     

    上記で解決しない場合は、具体的な原因を断定できる公式情報が見つからなかったため、Salesforceサポートへの問い合わせをおすすめします。

0/9000

Hi Everyone,

I have an Experience Cloud site where the users are using the Customer Community Plus license.

I have a requirement to create a new Customer Community Plus user from an LWC/Apex component. As part of the user creation process, I need to select the appropriate Customer Community Plus Profile.

To populate the Profile selection, I need to fetch the available Profiles from the org using Apex.

I tried the following SOQL:

List<Profile> profiles = [

SELECT Id, Name

FROM Profile

];

However, when this code executes in the context of a Customer Community Plus user, I receive the following error:

sObject type 'Profile' is not supported

I also understand that Experience Cloud users have restrictions on accessing certain standard objects.

My questions are:

  1. Is there any way to grant a Customer Community Plus user access to the Profile sObject through a Profile, Permission Set, or any other Salesforce configuration?
  2. If direct access to the Profile object is not supported for Customer Community Plus users, what is the recommended Salesforce approach for retrieving the appropriate Customer Community Plus Profile when creating another user?
  3. Is there any supported Apex/API approach to retrieve the available Customer Community Plus Profiles without directly querying the Profile object?

My requirement is specifically:

Existing Customer Community Plus user → LWC/Apex → Create a new Customer Community Plus user → Select the appropriate Customer Community Plus Profile

Any guidance or recommended approach would be greatly appreciated.

Thanks! 

 

#Salesforce Developer  #LWC  #Profiles  #Experience Cloud

7 件の回答
  1. 9月7日 10:13

    I am getting this below error  when I use Site.createExternalUser() .

    common.apex.runtime.impl.ExecutionException: [You are already logged in.]

      

    Please suggest

0/9000
4 件の回答
  1. 9月3日 11:37

    Hi @Hitesh Sharma

      

    You can use 

    VS Code with the Salesforce Extension Pack and Salesforce CLI to retrieve Apex, LWC, and other metadata from your Salesforce org. 

    After authorizing the org, use SFDX: Retrieve Source from Org in VS Code to retrieve the required components. 

    For JSON files, it depends on where they are stored: 

    • Static Resource/LWC bundle → retrieve the corresponding metadata. 
    • Salesforce record/data → use SOQL, Data Loader, or another data-export tool. 

     

    Hope this helps! 

0/9000

Welcome to the #TrailblazerCommunity! 👋 Take a moment to introduce yourself below. 💙 

 

Tell us all about YOU:

What are you passionate about? 

What are you looking to learn? 

Where are you located? 

 

Feel free to connect with others in the thread! 👇 

 

UPDATE: To mute this post, click on the arrow on the top right then "Mute."

2,014 件のコメント
  1. 8月31日 3:10

    Why have I been auto subscribed, please remove me

0/9000

Hello Everyone, 

 

I’ve been working as an End User for Salesforce for more than a year and recently  completed by training in Salesforce Admin, Apex and LWC concepts. I've also successfully completed Admin and PD1 certifications. 

 

I've been on a job trail for about 3 months and don't see any open positions for Freshers or juniors in the market. 

 

Would it be possible for anyone of you to refer me for any open roles in your esteemed  

organizations ? 

 

I'm happy to work in start-ups if given an opportunity. 

 

Thank you for your help in advance. 

 

#Salesforce Admin  #Salesforce Developer  #End Users  #Other Salesforce Applications

 

 

#Apex  #LWC

4 件の回答
  1. 8月18日 5:24

    Great work on completing your Salesforce Admin and PD1 certifications, @Avinash Tellakula. Your hands-on End User experience combined with Apex and LWC training is a good foundation for starting a Salesforce career.

    The entry-level market can definitely be challenging, but don’t lose momentum. I’d be happy to take a look at your profile/resume and see if I come across any suitable opportunities within my network. Best of luck with your job search!

0/9000

Hi Everyone :)  

 

Is there a way to add a fixed 'banner' to an embedded service deployment so that there's a constant disclaimer on the chat? Similar to the 'Powered by Agentforce' but customised text? 

 

#Agentforce  #Embedded Service Deployment  #LWC  #Trailhead  #Help

2 件の回答
  1. 8月19日 16:58

    Hey Megan, 

     

    Adding one thing to Himanshu's answer since it's mostly right but slightly understates option 2: Salesforce actually has a fully supported LWC-based header customization for Messaging (lightningSnapin__MessagingHeader target), you extend the base chat header component and can add whatever fixed text/markup you want inside it. This is documented and stays visible for the whole conversation, unlike the greeting-message approach, which scrolls away. 

     

    So realistically you have two solid, supported paths: 

    1. Custom LWC header (extends BaseChatHeader/MessagingHeader), gives you a persistent banner area inside the actual chat window that Salesforce won't overwrite on releases, since it's a supported customization point, not DOM hacking 

    2. A banner on your host page around the widget (Himanshu's option 1), simplest if the disclaimer doesn't need to be inside the chat window itself 

     

    Both are supported. The custom header route is probably closer to what you're picturing since it sits inside the widget alongside "Powered by Agentforce," not just around it. 

     

    Reference:

    https://developer.salesforce.com/docs/service/messaging-web/guide/customize-header.html

0/9000

Available for freelance and project work — Salesforce Solution Architect, 5x certified, Double Star Ranger 

 

One of the biggest pain points I hear from Salesforce orgs isn't what they want to build — it's that nobody fully understands what they already have. Undocumented automations, mystery Apex, flows nobody wants to touch, integrations with no runbook. If that sounds familiar, this might be for you. 

 

I offer:

  • Org assessments with full documentation of your processes, automation, and architecture
  • Process Builder & Workflow migration to modern Flow — or Apex where Flow hits its limits. If your org is still running on deprecated automation, that's a ticking clock
  • Builds, integrations, Health Cloud, Experience Cloud, MuleSoft, Apex and LWC development

15 years on the platform, PwC consulting background, currently the sole architect for a 200-user org with ERP integration and Data Cloud pipelines.  

 

Drop a comment or message me if you want a second set of eyes on your org.

 

Trailhead: https://trailblazer.me/id/egentile2

LinkedIn: https://www.linkedin.com/in/eileengentile/

 

#Freelance Project Work  #Flow  #ApexDevelopment  #LWC

#Job Postings  #Open Jobs  #Jobopportunities  

0/9000

Hi, I am using servlet.shepherd to downlaod multiple files from a LWC at once . If one of the files, has a special character, it is getting downloaded inside the zip file with its content version Id as its name,  

On the other hand, if a single file with special character is downloaded, it is getting downloaded successfully with the original name,  

Can anybody help. Is this a standard behaviour or we have a way out to handle this. 

 

#Trailhead  #Salesforce Admin  #Salesforce Developer  #LWC  #LWC Component  #Files Section

1 件のコメント
0/9000