In my Apex controller class, I was able to query RecordType using:
SELECT Id, Name FROM RecordType WHERE SObjectType = 'Department__c'
I am trying to create a record to a specific record type in the Departments custom object and I am not sure how can I specify that record type(with combination of aura:Iteration and aura:if.
In my Lightning Component(cmp), I am trying this:
<aura:iteration items="{!v.recType}" var="recordType" >
<aura:if isTrue="{!v.recordType.Name == 'Finance'}">
Success!
<aura:set attribute="else">
False
</aura:set>
</aura:if>
I know this will only go to else statement, but how can I get to the specific recordtype? Is there any contains formula function which I can use in the if statement?