Is it possible to use schema class in Salesforce Flow without calling Apex? For example, is it possible to declare a variable, or a record choice set by using for example:
Lead.SObjectType.getDescribe().getRecordTypeInfos()
Or this has to do only with Apex coding ?
In my org users can change their locale and use Greek or English Language. So what i want to do is to get the Record Types of Lead and also to show their name field in the respective language (English or greek depending on the user's locale). I have tried to get the Record Types of the Lead Object and store them in a record choice set. I am doing it, but the name field is always in English.
Then, i tried to use the RecordTypeLocalization object, but my problem is that i cannot ensure somehow that i will take the Lead's Record Types. It will actually get all the record types for all objects, since i, unfortunately, do not have the ability on my fiters to set Parent.Sobject = 'Lead'. Any suggestions on how i could solve my issue?