0

I have a custom field(partner type)which is of field type-text and whenever the field value is "sh" in it,I want to update a custom field named "House number" with the value of a standard field "billing street"..How can I achieve this?

3
  • did you tried with before insert, before update trigger? I can provide the sample code for that.
    – Himanshu
    Commented Oct 28, 2015 at 9:41
  • Yes,but is there any way to do it using workflows? Commented Oct 28, 2015 at 9:44
  • yes. you can use Process builder to achieve the same.
    – Himanshu
    Commented Oct 28, 2015 at 9:45

1 Answer 1

1

You can use the CONTAINS function as part a workflow rule or process builder.

Bsed on your requirement, you want a workflow rule that will update a custom field called House number when the value in the billing street field contains 'sh'

The formula is as follows: CONTAINS('sh',Partner_Custom_Field)

The formula return type should be a checkbox so it will return true or false and based on that the workflow will trigger.

Hope it helps.

4
  • Nope its not working,because the custom field(House Number) is of type text and the value of the standard field(Billing street) is of type Address???Sorry that I have forgot to mention that Commented Oct 28, 2015 at 10:02
  • Updated my answer Commented Oct 28, 2015 at 11:42
  • -No,Value in the partner type custom field should be "sh" only then, the billing street value should be updated on the House number field. Commented Oct 28, 2015 at 12:22
  • Ok, just replace billing street in the function above with the partner field and when you create the action for the workflow you will attach to the house number field the billing street. Commented Oct 28, 2015 at 12:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .