5

I created a Platform Event, and now I'm building a process that is triggered by the Platform Event. The Platform Event parameters either contain a ContactId or a LeadId, but not both.

The process I'm building creates a Task Record, and I want to assign either the ContactId or LeadId to the whoIs field. So I'm trying to create it with a formula that checks isBlank on the ContactId, but I can't figure out how to access the Platform Event parameters from the Formula builder.

I can access the fields of the associated object record, but that record doesn't have the contact/lead ids.

Does Formula builder not have access to the Event params?

3
  • 1
    Is there a reason you can't add fields to the event to store the Id of the record? Commented Sep 7, 2018 at 19:42
  • That's what I ended up doing. Commented Sep 9, 2018 at 3:04
  • Note that you can launch a flow, pass the event payload to the flow, and then use the payload in formulas inside the flow. Commented Feb 23, 2019 at 21:28

1 Answer 1

4

No, formulas in Process Builder don't support Platform Event fields (yet).

Sorry :(

https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_process_considerations.htm

1
  • 1
    True, but note that you can launch a flow, pass the event payload to the flow, and then use the payload in formulas inside the flow. Commented Feb 23, 2019 at 21:28

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.