I have an integration which makes a POST (read-only) to a database. The returned value is a string formatted in pascal-case.
There are a total of 25 possible string value responses, here are some examples from the 25 possibilities:
"DeferredStudentLoan"
"LeasePayment"
"PersonalLoan"
I need to convert these strings from the above pascal-case to standard-case (I guess you call it that?).
"DeferredStudentLoan" should be converted to "Deferred Student Loan"
"LeasePayment" should be converted to "Lease Payment"
"PersonalLoan" should be converted to "Personal Loan"
Here are some snippets of code...
a!localVariables( local!line4_addedLines: 1, local!PostCall: rule!EI_FieldReader_CDpg3_UCD_Sec_K_Line4(), ........
local!PostCall: rule!EI_FieldReader_CDpg3_UCD_Sec_K_Line4() creates a dictionary of the post call made in the integration (not shown anywhere in this thread).
I call upon a specific result from the dictionary using this example code (refer to 'value').
a!sideBySideItem( item: a!richTextDisplayField( label: "Adjustment Type", labelPosition: "ABOVE", value: {index(local!PostCall.result.body.value,10)} ) )
'value' returns one of the pascal-case strings from up top. This is the value I need to convert.
Thanks for your time!
Mica
Discussion posts and replies are publicly visible
Funny, someone asked basically the same thing just within the past few weeks.
I tried :( - Spent about 45 minutes google'ing and trying different functions, also read through suggested posts when creating the topic :( haha.
I was only able to find that thread (despite its recency) by searching on a keyword I knew I'd used and filtering to just threads I've participated in, so I don't blame you there.