0

I have created a compute field named x of type text.I used ah field y in compute expression which is of numeric .Basically i want to output to be 'y'+"some text" which would be used as dimension.But the Dataflow fails saying Incompatible types: NUMERIC and STRING .How to achieve concatenation using compute fields ???

0

If you using a formula then use

Text(Numeric_field_Name__C) + text_Field__c

If you are trying it in apex code and want to store result in text field then use

string.valueOf(Numeric_field_Name__C) + text_Field__c

0

you can directly refer the y field since its numeric and then the rest as your are using it before. y + "Sometext"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.