Unfortunately, getting data from Apex class does not work in my omniscript. I did it exactly like in exapmle. Omniscript is active. Any ideas what else could I do? Any additional settings? Incompatible versions? Is it possible to check if my function is called? Logs or something?
Thank you so much. Very clear tutorial. Quick Question: For me, the picklist field using the Custom Apex does not work when the OS is deactivated. It only works when Activated. Anyone else encountered this issue, and anyone else know how to resolve it?
Hey, thank you so much for your videos. I have an issue regarding depending picklists/radio buttons, I cannot seem to make the controlling field work when the dependency uses a Checkbox as a controlling field, it will simply won't show the options like it would if I were using a picklist as a controlling field.
Has anything changed in multi select or radio in 2023 ? I tried the custom option for multiselect but classname.methodname under Source field does not seem to work. I have tried with both activating and deactivating the omniscript but still nothing. I do have account data in my org.
I have 2 issues with custom select, 1st is not getting omniscript input data in apex method as parameter, 2nd not able to see invocable class in debug logs even after setting finest traces. Any help how to get debug log for invocable class from custom select?
The Custom option source is not working the way it was presented. I've downloaded his own files and yet it didn't work. Something might have been updated in OmniStudio.
Explanation: The Callable Interface is up-to-date and widely recommended for Vlocity customizations and other Salesforce development scenarios. The VlocityOpenInterface and VlocityOpenInterface2 in Salesforce Vlocity, but they are no longer considered the standard for new developments.
How to pass input value to the soql , like my omniscript form will be fired on clicking new button , and i should show the values in picklist based on the parent record.
@Vishnu Kumar.... In continuation of 5his video can we make on select account ...render related contacts as radio image??? If yes can I have video deemo on it?
Thanks for the well explained videos. I have a question: For Sobject picklist field. we write the sobject.fieldname. How can we achieve this if we want to fetch values for specific record type as the picklist value can be some active and inactive values based on the record type?
It was great learning video. I just have one question, Can we pass dynamic RecordId from omniscript to our apex class to fetch only required picklist values??
This was very helpful, especially the custom select with the Apex class you provided. I have one question, when I add the Apex class to a change set the code coverage keeps failing at 72%. Have you built a test class for this type of Apex class and would you be willing to share it?
Is it possible to use a DataRaptor response as source to the option of the Select Element? Example, I transformed the value of the fields 1 (Value A), 2 (B) and 3 (C) into an output array list that I called "Field4"... Now I have a Field4 that is an array with the values "A, B, C"... And I want to display it in a select element, So the User can choose if he wants A, B or C... Can I do this? I think I've tried everything :(
@@ArnoJansen17 Yeah!! And unfortunately nobody helps me, I couldn't find the answer all long the whole internet, neither in the oficial documentations neither in the forums, videos and etc... just had to try a lot of things. You should first query the fields that you desire to enlist (my case I achieved all of them in a DR Extract), then you'll create a Set Values, and this is the secret, in the Set values you'll create a random input and then you'll edit it in Json, to transform it in an Array, like this: "elementValueMap": { "Telefone": [ "%TelefonesContatoTitular:Telefone1%", "%TelefonesContatoTitular:Telefone2%", "%TelefonesContatoTitular:Telefone3%" ] }, At this point you should NOT USE a Select Element, instead, use a Typeahead Block. In this block, flag the options "Use Data Json", "Lookup Mode" and "Disable Data Filter". Fill the field "Data Json Path" with the name of the array (which in my case is "Telefone") It worked for me.
@@ArnoJansen17 I'm still working how to handle the null values, but It will works with you at least at moment, perhaps you could help me resolve that :)
@@lucasbarros1995 I got a "work around solution" . In my DataRaptor I created an array with a "options" structure like "OptionsList": [ { "value": "123", "label": "A" }, { "value": "456", "label": "B" }, { "value": "768", "label": "C" } Then in the FlexCard I didn't add any Options but added a custom Attribute in the "Custom Properties" Attribute: Options Value: {OptionsList} This will then add the values, and label as options dynamically to your radio button component. Just make sure that the value you want to display is "label" and the return value is "value" in the DataRaptor. Hope this will help.
@@0to1Code Yes, it says Invalid type: vlocity_Ins.vlocityOpenInterface Here is my starting bit of the Apex Class: global class MyPicklistOptions implements vlocity_Ins.vlocityOpenInterface{}
@@cuckeo0106 If you go to installed packages in quick find you will see your package name for Vlocity, Mine was OmniStudio so I added OmniStudio.VlocityOpenInterface and it worked.
All your videos are great. I learned a lot about omnistudio. I was trying to call apex class method from omniscript for one of the above examples. But I am getting an Invalid type error for the VlocityOpenInterface interface. Do we need to give permission to the user to access this interface?
Thanks for the well explained videos. I have a question: For Sobject picklist field. we write the sobject.fieldname. How can we achieve this if we want to fetch values for specific record type as the picklist value can be some active and inactive values based on the record type?
Unfortunately, getting data from Apex class does not work in my omniscript. I did it exactly like in exapmle. Omniscript is active. Any ideas what else could I do? Any additional settings? Incompatible versions? Is it possible to check if my function is called? Logs or something?
I'm same problem
Thank you so much. Very clear tutorial.
Quick Question: For me, the picklist field using the Custom Apex does not work when the OS is deactivated. It only works when Activated. Anyone else encountered this issue, and anyone else know how to resolve it?
I have encountered same issue
God bless you. You saved my time :)
have you find the solution, i have implemented "omnistudio.VlocityOpenInterface".
And what is OS.
Can we send input parameters to the apex method while selecting custom data source to Radio input element?
Do you find something about the input parameters??
How can we create dependent picklist? Please make one video on it.
Hey, thank you so much for your videos.
I have an issue regarding depending picklists/radio buttons, I cannot seem to make the controlling field work when the dependency uses a Checkbox as a controlling field, it will simply won't show the options like it would if I were using a picklist as a controlling field.
Has anything changed in multi select or radio in 2023 ? I tried the custom option for multiselect but classname.methodname under Source field does not seem to work. I have tried with both activating and deactivating the omniscript but still nothing. I do have account data in my org.
I bumped into the same roadblock. I've downloaded his own files and yet it didn't work. Something might have been updated in OmniStudio.
can you set a property in your tempMap for default value ? so when it returns, one of the options is preselected ?
I have 2 issues with custom select, 1st is not getting omniscript input data in apex method as parameter, 2nd not able to see invocable class in debug logs even after setting finest traces. Any help how to get debug log for invocable class from custom select?
I'm same problem
The Custom option source is not working the way it was presented. I've downloaded his own files and yet it didn't work. Something might have been updated in OmniStudio.
Explanation: The Callable Interface is up-to-date and widely recommended for Vlocity customizations and other Salesforce development scenarios. The VlocityOpenInterface and VlocityOpenInterface2 in Salesforce Vlocity, but they are no longer considered the standard for new developments.
How to pass input value to the soql , like my omniscript form will be fired on clicking new button , and i should show the values in picklist based on the parent record.
I need the same
@Vishnu Kumar.... In continuation of 5his video can we make on select account ...render related contacts as radio image??? If yes can I have video deemo on it?
would it be possible to use a dataraptor to get the values i want to display as a custom source?
How can I get the selected option's label in a formula. When label and value are different for an option.
Something like %Option1.label%
Thanks for the well explained videos. I have a question: For Sobject picklist field. we write the sobject.fieldname. How can we achieve this if we want to fetch values for specific record type as the picklist value can be some active and inactive values based on the record type?
It was great learning video. I just have one question, Can we pass dynamic RecordId from omniscript to our apex class to fetch only required picklist values??
Check out the next video on the lookup element. I believe you can do without apex class for record types.
This was very helpful, especially the custom select with the Apex class you provided. I have one question, when I add the Apex class to a change set the code coverage keeps failing at 72%. Have you built a test class for this type of Apex class and would you be willing to share it?
Hi Ken, I don't have the test class for it.
Is it possible to use a DataRaptor response as source to the option of the Select Element? Example, I transformed the value of the fields 1 (Value A), 2 (B) and 3 (C) into an output array list that I called "Field4"... Now I have a Field4 that is an array with the values "A, B, C"... And I want to display it in a select element, So the User can choose if he wants A, B or C... Can I do this? I think I've tried everything :(
Did you manage to get a solution? Sitting with the same issue
@@ArnoJansen17 Yeah!! And unfortunately nobody helps me, I couldn't find the answer all long the whole internet, neither in the oficial documentations neither in the forums, videos and etc... just had to try a lot of things. You should first query the fields that you desire to enlist (my case I achieved all of them in a DR Extract), then you'll create a Set Values, and this is the secret, in the Set values you'll create a random input and then you'll edit it in Json, to transform it in an Array, like this:
"elementValueMap": {
"Telefone": [
"%TelefonesContatoTitular:Telefone1%",
"%TelefonesContatoTitular:Telefone2%",
"%TelefonesContatoTitular:Telefone3%"
]
},
At this point you should NOT USE a Select Element, instead, use a Typeahead Block. In this block, flag the options "Use Data Json", "Lookup Mode" and "Disable Data Filter". Fill the field "Data Json Path" with the name of the array (which in my case is "Telefone")
It worked for me.
@@ArnoJansen17 I'm still working how to handle the null values, but It will works with you at least at moment, perhaps you could help me resolve that :)
@@lucasbarros1995 I got a "work around solution" . In my DataRaptor I created an array with a "options" structure like "OptionsList": [
{
"value": "123",
"label": "A"
},
{
"value": "456",
"label": "B"
},
{
"value": "768",
"label": "C"
}
Then in the FlexCard I didn't add any Options but added a custom Attribute in the "Custom Properties"
Attribute: Options
Value: {OptionsList}
This will then add the values, and label as options dynamically to your radio button component.
Just make sure that the value you want to display is "label" and the return value is "value" in the DataRaptor. Hope this will help.
When I tried to implement the VlocityOpenInterface, it says Invalid type. Do you know how to fix it?
Did you use vlocity_Ins.vlocityOpenInterface?
@@0to1Code Yes, it says Invalid type: vlocity_Ins.vlocityOpenInterface
Here is my starting bit of the Apex Class: global class MyPicklistOptions implements vlocity_Ins.vlocityOpenInterface{}
@@cuckeo0106 Can you please check what version is installed for the OmniStudio. I have Vlocity Insurance V890.283 with vlocity_ins namespace.
@@0to1Code Version Number 234.4 is what I have. I use the Dev Org suggested by Trailhead
@@cuckeo0106 If you go to installed packages in quick find you will see your package name for Vlocity, Mine was OmniStudio so I added OmniStudio.VlocityOpenInterface and it worked.
how to pass parameter to this method?
All your videos are great. I learned a lot about omnistudio. I was trying to call apex class method from omniscript for one of the above examples. But I am getting an Invalid type error for the VlocityOpenInterface interface. Do we need to give permission to the user to access this interface?
Thanks for the well explained videos. I have a question: For Sobject picklist field. we write the sobject.fieldname. How can we achieve this if we want to fetch values for specific record type as the picklist value can be some active and inactive values based on the record type?