Pass value to lwc from flex card

  Рет қаралды 328

Dipankar

Dipankar

Күн бұрын

Пікірлер: 7
@manishchowdhury8959
@manishchowdhury8959 2 ай бұрын
Hi Dipankar, could you create a video on Product modeling, Rating, and quote. Actually in FSC trial Org not able to see the UI as mentioned in Salesforce Help site, not even on vlocity trial Org. so if you could create such video or guide how to get such trial Org for Product modeling, Rating, and quote. Thank you.
@RVAraghav
@RVAraghav 2 ай бұрын
Thanks Dipankar for answering my question. I didn't know about {records} and {record}. Is this documented somewhere? Also, if my public property is jsonData, I passed the attribute in flexcard as jsonData directly and not as json-data and it still works. So I am confused if we need to pass it in the kabab case format. Thank you.
@dipankarsfdc
@dipankarsfdc 2 ай бұрын
Yes, you have to pass the attributes in kebab-case format inside lwc. And this is the list of Context variables in flexcard where record and records is mentioned, help.salesforce.com/s/articleView?id=sf.os_flexcards_context_variables.htm&type=5. Look for those in which it is mentioned that this can be passed to custom lightning web component. And I guess you can access few other variables as well, for example, User. Please don some hands on to know more.
@RVAraghav
@RVAraghav 2 ай бұрын
@@dipankarsfdc I just tested it now. If you pass {records}, I am getting the data but I just want to pass a node from the entire json. How do I do that? This is my json. I want to just pass accountList: So if I pass attribute value as {accountList}, the data is not passed. { "accountList": [ { "AccountId": "0018500000NGJmIAAX", "AccountName": "Test" }, { "AccountId": "0018500000NGfdfIAAX", "AccountName": "Test 2" } ] }
@RVAraghav
@RVAraghav 2 ай бұрын
kebab case only works if it is {record} or {records}. If you are passing a node, let's say {accountList}, Attribute name should just be pascal case. This is my latest finding and it works.
@awesomekj5812
@awesomekj5812 2 ай бұрын
@@RVAraghav can you post it here what was the attribute name and the value you passed from Json node ? Thanks
@dipankarsfdc
@dipankarsfdc 2 ай бұрын
It can be simple in camelCase for the node you want (string/Object). For ex: if I want to pass Name, the attribute can be myAccountName and the value can be {Name}
Business Rules Engine in Salesforce
19:53
Dipankar
Рет қаралды 4,2 М.
6- Omnistudio Integration Procedure Loop Block and List Action
18:34
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 14 МЛН
Каха и лужа  #непосредственнокаха
00:15
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 56 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 200 МЛН
How does UPI really work?
17:54
Mehul - Codedamn
Рет қаралды 10 М.
Vlocity CPQ Context Rule (Qualification ContextRule - Salesforce)
15:20
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 400 М.
Can you build a web app with vanilla Web Components in 2024?!?
30:16
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 14 МЛН