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.
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.
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.
@@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" } ] }
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.
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}
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.
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.
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.
@@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"
}
]
}
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.
@@RVAraghav can you post it here what was the attribute name and the value you passed from Json node ? Thanks
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}